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

chore: remove SqlFormatInjector as obsolete #8931

Merged
merged 6 commits into from
Mar 28, 2022

Conversation

vcrfxia
Copy link
Contributor

@vcrfxia vcrfxia commented Mar 25, 2022

Description

The SqlFormatInjector was introduced back when ksql executed existing queries from the sql statements themselves (see #3037 for context). At the time, it was important that statements were formatted prior to execution in QTT since they'd be formatted before being read back and executed live. Now that ksql executes existing queries from query plans rather than the raw sql statements, this is no longer necessary.

Besides cleaning up old code, this will allow us to relax the assumption that all the necessary info for executing a query is contained in the sql statement itself. For example, there might be configs or other properties specified outside the statement (e.g., by the ksql server or server version) that affect query execution as well. See #8934 for an example.

Testing done

The existing code is test-only, so removing this has no production impact.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

Copy link
Member

@lihaosky lihaosky left a comment

Choose a reason for hiding this comment

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

Nice finding!

thumup

@vcrfxia vcrfxia marked this pull request as ready for review March 25, 2022 22:08
@vcrfxia vcrfxia requested a review from a team as a code owner March 25, 2022 22:08
Copy link
Member

@pgaref pgaref left a comment

Choose a reason for hiding this comment

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

Good find indeed!

@vcrfxia vcrfxia merged commit 660c325 into confluentinc:master Mar 28, 2022
@vcrfxia vcrfxia deleted the remove-sql-format-injector branch March 28, 2022 19:27
vcrfxia added a commit to vcrfxia/ksql that referenced this pull request Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants