-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and print the new IR program for each query
The new IR building and printing is tested in src/test/java/io/trino/sql/dialect/trino However, those unit tests have limited serialization capacity. Full serialization requires injected dependencies. With this change, each query run on the server will be rewritten into a new IR program and printed on the console. It will use dependencies for full serialization. Note that the queries are captured in SqlQueryExecution after they are planned and optimized, and right before they are fragmented. This is the moment where CTE reuse will kick in. Note also that some queries will fail in ProgramBuilder if they contain operations that we don't support yet.
- Loading branch information
Showing
1 changed file
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters