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-29742][sql-gateway] Support completing statement in SqlGatewayService. #21141

Merged
merged 3 commits into from
Dec 12, 2022

Conversation

yuzelin
Copy link
Contributor

@yuzelin yuzelin commented Oct 25, 2022

What is the purpose of the change

Implement SqlGatewayService#completeStatement described in FLIP-91.

Brief change log

(for example:)

  • Implement SqlGatewayService#completeStatement.
  • Add test testCompleteStatement in SqlGatewayServiceITCase.

Verifying this change

This change added tests and can be verified as follows:

  • testCompleteStatement in SqlGatewayServiceITCase.

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

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

Documentation

  • Does this pull request introduce a new feature? yes
  • If yes, how is the feature documented? JavaDocs

@yuzelin yuzelin changed the title [FLINK-29742] Support completing statement in SqlGatewayService. [FLINK-29742][sql-gateway] Support completing statement in SqlGatewayService. Oct 25, 2022
@flinkbot
Copy link
Collaborator

flinkbot commented Oct 25, 2022

CI report:

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

@yuzelin
Copy link
Contributor Author

yuzelin commented Oct 27, 2022

@flinkbot run azure

1 similar comment
@yuzelin
Copy link
Contributor Author

yuzelin commented Oct 27, 2022

@flinkbot run azure

@yuzelin
Copy link
Contributor Author

yuzelin commented Nov 9, 2022

cc @fsk119

Copy link
Contributor

@jnh5y jnh5y left a comment

Choose a reason for hiding this comment

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

This PR also looks good to me!

Copy link
Member

@fsk119 fsk119 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution. I left some comments.

@yuzelin yuzelin force-pushed the completeStatement branch 6 times, most recently from 04d96e1 to fdfa3ce Compare December 7, 2022 12:06
Arrays.asList(
"default_catalog.default_database.Table1",
"default_catalog.default_database.Table2");
String incompleteSql = "SELECT * FROM Ta";
Copy link
Member

Choose a reason for hiding this comment

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

I think we can inline incompleteSql and expectedTableHints.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Improved.

Copy link
Member

@fsk119 fsk119 left a comment

Choose a reason for hiding this comment

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

LGTM

@fsk119 fsk119 merged commit dc3ea82 into apache:master Dec 12, 2022
@yuzelin yuzelin deleted the completeStatement branch January 10, 2023 08:43
chucheng92 pushed a commit to chucheng92/flink that referenced this pull request Feb 3, 2023
akkinenivijay pushed a commit to krisnaru/flink that referenced this pull request Feb 11, 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
4 participants