Skip to content

Refactorings on the JdbcClient methods#27848

Merged
chenjian2664 merged 4 commits intotrinodb:masterfrom
findinpath:findinpath/jdbc-refactorings
Mar 4, 2026
Merged

Refactorings on the JdbcClient methods#27848
chenjian2664 merged 4 commits intotrinodb:masterfrom
findinpath:findinpath/jdbc-refactorings

Conversation

@findinpath
Copy link
Contributor

Description

This is a follow-up PR generated by the discussions that happened after merging #27702

cc @findepi @chenjian2664

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 5, 2026
@github-actions github-actions bot added druid Druid connector exasol Exasol connector ignite Ignite connector labels Jan 5, 2026
@findepi
Copy link
Member

findepi commented Jan 5, 2026

This is a follow-up PR generated by the discussions that happened after merging #27702

Does this PR take #27794 into account, or is it meant to obsolete it?

public void rollbackTemporaryTableCreation(ConnectorSession session, JdbcOutputTableHandle handle)
{
stats.getRollbackCreateTable().wrap(() -> delegate().rollbackCreateTable(session, handle));
stats.getRollbackCreateTable().wrap(() -> delegate().rollbackTemporaryTableCreation(session, handle));
Copy link
Contributor

Choose a reason for hiding this comment

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

The stats needs to renamed as well, thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this need RN ?

Copy link
Contributor Author

@findinpath findinpath Jan 7, 2026

Choose a reason for hiding this comment

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

It feels a bit strange to have JdbcClientStats for rolling back temporary tables, but not for the destination tables.

Added rollbackDestinationTableCreation to JdbcStats

@findinpath
Copy link
Contributor Author

Does this PR take #27794 into account, or is it meant to obsolete it?

@findepi my intention is to build on top of the above mentioned PR. I'm hoping that #27794 will land before this PR and I'll adjust this one afterwards.

@findinpath findinpath force-pushed the findinpath/jdbc-refactorings branch 3 times, most recently from 24f9edf to 948d8a8 Compare January 12, 2026 10:16
@findinpath
Copy link
Contributor Author

Rebased on master to fix the code conflicts generated by the changes in #27794

@findinpath findinpath force-pushed the findinpath/jdbc-refactorings branch from 948d8a8 to e2d9265 Compare January 30, 2026 04:56
@findinpath
Copy link
Contributor Author

@chenjian2664 , @findepi could you look over this PR to close on the discussions that emerged from #27702 ?

@findepi findepi requested a review from ebyhr January 30, 2026 09:25
@github-actions
Copy link

This pull request has gone a while without any activity. Ask for help on #core-dev on Trino slack.

@github-actions github-actions bot added the stale label Feb 20, 2026
Copy link
Contributor

@chenjian2664 chenjian2664 left a comment

Choose a reason for hiding this comment

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

Looks good % last commit

@github-actions github-actions bot removed the stale label Feb 27, 2026
@findinpath findinpath force-pushed the findinpath/jdbc-refactorings branch from e2d9265 to a9c906f Compare March 3, 2026 09:47
@findinpath findinpath force-pushed the findinpath/jdbc-refactorings branch from a9c906f to 0421379 Compare March 3, 2026 09:47
@findinpath
Copy link
Contributor Author

@chenjian2664 AC

FYI
I've rebased the code to ensure that it is compatible with the latest master.

@chenjian2664 chenjian2664 merged commit c0d61c6 into trinodb:master Mar 4, 2026
71 checks passed
@github-actions github-actions bot added this to the 480 milestone Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed druid Druid connector exasol Exasol connector ignite Ignite connector

Development

Successfully merging this pull request may close these issues.

3 participants