Skip to content

Add pluggable QueryAnalyzer interface#19093

Merged
jainxrohit merged 1 commit intoprestodb:masterfrom
jainxrohit:rj_query_analyzer
Feb 23, 2023
Merged

Add pluggable QueryAnalyzer interface#19093
jainxrohit merged 1 commit intoprestodb:masterfrom
jainxrohit:rj_query_analyzer

Conversation

@jainxrohit
Copy link
Contributor

@jainxrohit jainxrohit commented Feb 22, 2023

This commit adds a pluggable QueryAnalyzer interface for analyzing queries and creating logical plans.

This change also integrates the default built-in analyzer in the pluggable analyzer interface.

At this moment only SQLQueryExecutionFactory is enabled with pluggable analyzer interfaces. SessionDefinition and DDLDefinition still works with hardcoded builtInAnalyzer.

== RELEASE NOTES ==

General Changes
* Added a pluggable ``QueryAnalyzer``  interface for analyzing queries and creating logical plans. This interface can be implemented to add additional analyzers. 

@jainxrohit jainxrohit force-pushed the rj_query_analyzer branch 2 times, most recently from d905538 to ca679f7 Compare February 22, 2023 04:49
@jainxrohit jainxrohit changed the title commit2 Add QueryAnalyzer interface Feb 22, 2023
@jainxrohit jainxrohit marked this pull request as ready for review February 22, 2023 05:02
@jainxrohit jainxrohit requested a review from a team as a code owner February 22, 2023 05:02
@jainxrohit jainxrohit requested review from mlyublena and pranjalssh and removed request for pranjalssh February 22, 2023 05:02
Copy link
Contributor

@rschlussel rschlussel left a comment

Choose a reason for hiding this comment

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

i like this approach. Can you add some context about this change to the body of the commit message.

@jainxrohit jainxrohit changed the title Add QueryAnalyzer interface Add pluggable QueryAnalyzer interface Feb 22, 2023
@jainxrohit jainxrohit force-pushed the rj_query_analyzer branch 5 times, most recently from b01a9a2 to 561dfc7 Compare February 22, 2023 23:03
Copy link
Contributor

@rschlussel rschlussel left a comment

Choose a reason for hiding this comment

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

other than the comment about variableAllocator, the rest looks good.

This commit adds a pluggable QueryAnalyzer interface for analyzing
queries and creating logical plans.

This change also integrates the default built-in analyzer in the
pluggable analyzer interface.

At this moment only SQLQueryExecutionFactory is enabled with
pluggable analyzer interfaces. SessionDefinition and DDLDefinition
still works with hardcoded builtInAnalyzer.
@jainxrohit jainxrohit merged commit c5b3bed into prestodb:master Feb 23, 2023
@jainxrohit jainxrohit deleted the rj_query_analyzer branch February 23, 2023 18:28
@wanglinsong wanglinsong mentioned this pull request Feb 25, 2023
12 tasks
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.

4 participants