Skip to content

Conversation

@ksobolew
Copy link
Contributor

@ksobolew ksobolew commented Jan 27, 2025

Description

Sometimes the new and old way were mixed in a single method. It also makes createTestTableForWrites reuse this method to avoid duplication.

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jan 27, 2025
@ksobolew ksobolew force-pushed the kudi/new-trino-table-pk branch from 6a7f80f to 4afec8f Compare January 27, 2025 13:45
@github-actions github-actions bot added iceberg Iceberg connector delta-lake Delta Lake connector labels Jan 27, 2025
@ksobolew ksobolew force-pushed the kudi/new-trino-table-pk branch 2 times, most recently from c6351db to d7a837d Compare January 27, 2025 15:04
Copy link
Member

@kokosing kokosing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice clean up. Let me know when it is ready to merge.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I really like that these methods are now in sync.

@ksobolew
Copy link
Contributor Author

Nice clean up. Let me know when it is ready to merge.

There's one timeout in tests, but it looks like I'm racing with new uses that are creating conflicts...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the primary-key variants should be dedicated methods with names making clear that they are to be used with MERGE-related tests.

I suggest newTrinoTableForMerge?

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % comment about names vs new overloads

@ksobolew
Copy link
Contributor Author

@chenjian2664 looks like you fixed the problem I wanted to fix with this :) I'll just keep the cleanups.

Sometimes the new and old way were mixed in a single method. It also
makes `createTestTableForWrites` reuse this method to avoid duplication.
@ksobolew ksobolew force-pushed the kudi/new-trino-table-pk branch from d7a837d to 2c350bd Compare January 28, 2025 08:13
@ksobolew ksobolew changed the title Allow to create primary keys in test tables Use newTrinoTable in more places Jan 28, 2025
@ksobolew
Copy link
Contributor Author

I eventually dropped the unification of the two methods, so only the last commit remains (and is amended a little).

@kokosing kokosing merged commit 9364e80 into trinodb:master Jan 28, 2025
92 checks passed
@github-actions github-actions bot added this to the 470 milestone Jan 28, 2025
@ksobolew ksobolew deleted the kudi/new-trino-table-pk branch January 28, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed delta-lake Delta Lake connector iceberg Iceberg connector

Development

Successfully merging this pull request may close these issues.

5 participants