Skip to content

CALCITE-2081 fix join two window function NPE#634

Closed
zinking wants to merge 1 commit intoapache:masterfrom
zinking:CALCITE-2081
Closed

CALCITE-2081 fix join two window function NPE#634
zinking wants to merge 1 commit intoapache:masterfrom
zinking:CALCITE-2081

Conversation

@zinking
Copy link
Contributor

@zinking zinking commented Feb 22, 2018

as Luis pointed out, the issue is because of the name collision between two window functions.
so adding a context to record the window function count to avoid collision is one possible fix.

julianhyde pushed a commit to julianhyde/calcite that referenced this pull request Feb 23, 2018
…OIN gives NullPointerException (Zhen Wang)

Introduced a counter so that the two windows would have distinct
variable names in generated code. Before this fix there was a
NullPointerException during code generation.

Remove an unused constant.

Close apache#634
@asfgit asfgit closed this in a1fe769 Feb 23, 2018
7mming7 pushed a commit to Kyligence/calcite that referenced this pull request Jan 23, 2021
…OIN throws NullPointerException (Zhen Wang)

Fixed by introducing a counter so that the two windows would have
distinct variable names in generated code. Before this fix there was
a NullPointerException during code generation.

Remove an unused constant.

Close apache#634
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.

1 participant