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

Explicitly set nullability #1022

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Explicitly set nullability #1022

wants to merge 1 commit into from

Conversation

mbroecheler
Copy link
Contributor

No description provided.

@@ -452,7 +452,7 @@ public static void addFilteredDeduplication(RelBuilder relB, int timestampIdx, L

//Compute the lag for all columns other than the order and timestamp column, ordered by timestamp
Function<Integer, RexNode> lagFunction = idx -> rexBuilder.makeOver(
Copy link
Contributor

Choose a reason for hiding this comment

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

relBuilder has an 'aggregateCall' builder for making rex ops which has extra return type inference built in. In this specific issue, we're not looking at the lower bound frame when doing the inference.

see https://github.com/apache/calcite/blob/c49792f9c72159571f898c5fca1e26cba9870b07/core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java#L6072

and

https://github.com/apache/calcite/blob/ec0dc3c886ef06020294dc80971c29ec3b90fa44/core/src/main/java/org/apache/calcite/tools/RelBuilder.java#L4649

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.

2 participants