-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
CALCITE-6465: Rework code generator to use Flink code splitter #3901
base: main
Are you sure you want to change the base?
Conversation
This builds but introduces a dependency on flink-core. Looking for a way around this. |
// more than 8K byte code." | ||
final int flinkDefaultMaxGeneratedCodeLength = 4000; | ||
|
||
// From Flink TableConfigOptions.MAX_MEMBERS_GENERATED_CODE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these Flink considerations seem inappropriate in Calcite, unless we can make them generic so we do not reference Flink at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed references to Flink here.
Integrate Flink Java code splitter and run it on all final Expressions when converting to Java code. Next step is to run it based on configuration options
JavaCodeSplitter needs it for Preconditions
@@ -51,7 +51,7 @@ public Type getType() { | |||
} | |||
|
|||
@Override public String toString() { | |||
ExpressionWriter writer = new ExpressionWriter(true); | |||
ExpressionWriter writer = new ExpressionWriter(true, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally this would read from the CalciteSystemProperty but calcite-core depends on linq4j so it can't be looked up here.
Quality Gate passedIssues Measures |
No description provided.