Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-31545][jdbc-driver] Create executor in flink connection #22289

Conversation

FangYongs
Copy link
Contributor

What is the purpose of the change

This PR aims to create Executor in FlinkConnection and supports catalog/schema related operations

Brief change log

  • Create Executor in FlinkConnection
  • Supports catalog/schema related operations
  • Supports cluster info in FlinkConnection

Verifying this change

This change added tests and can be verified as follows:

  • Added testCatalogSchema and testClientInfo in FlinkConnectionTest

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no) no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no) no
  • The serializers: (yes / no / don't know) no
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know) no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know) no
  • The S3 file system connector: (yes / no / don't know) no

Documentation

  • Does this pull request introduce a new feature? (yes / no) no
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot
Copy link
Collaborator

flinkbot commented Mar 29, 2023

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@FangYongs FangYongs force-pushed the FLINK-31545_connection_create_executor branch 2 times, most recently from bdc83df to da78097 Compare March 31, 2023 04:25
Copy link
Member

@libenchao libenchao left a comment

Choose a reason for hiding this comment

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

@FangYongs Thanks for your contribution, I've left my comments.

@FangYongs FangYongs force-pushed the FLINK-31545_connection_create_executor branch from da78097 to 20641fa Compare April 2, 2023 12:27
@FangYongs
Copy link
Contributor Author

Thanks @libenchao , I have rebased master and updated this PR

Copy link
Member

@libenchao libenchao left a comment

Choose a reason for hiding this comment

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

@FangYongs Thanks for the updating, it looks good to me. I only left one nit comment.


public FlinkConnection(DriverUri driverUri) {
this.driverUri = driverUri;
// TODO Support default context from map to get gid of flink core for jdbc driver
Copy link
Member

@libenchao libenchao Apr 3, 2023

Choose a reason for hiding this comment

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

It would be great if you also add the JIra link in the comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @libenchao , added the jira link

@libenchao
Copy link
Member

CI now fails due to the API compatibility problem, could you fix that.

Copy link
Member

@libenchao libenchao left a comment

Choose a reason for hiding this comment

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

+1, @FangYongs Thanks for your contribution!

@libenchao libenchao closed this in 8c44d58 Apr 4, 2023
xiangyuf pushed a commit to xiangyuf/flink that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants