Skip to content

[CALCITE-2422] Query with unnest of column from nested subquery fails when dynamic table is used#768

Closed
vvysotskyi wants to merge 1 commit intoapache:masterfrom
vvysotskyi:CALCITE-2422
Closed

[CALCITE-2422] Query with unnest of column from nested subquery fails when dynamic table is used#768
vvysotskyi wants to merge 1 commit intoapache:masterfrom
vvysotskyi:CALCITE-2422

Conversation

@vvysotskyi
Copy link
Member

No description provided.

protected void validateUnnest(SqlCall call, SqlValidatorScope scope, RelDataType targetRowType) {
for (int i = 0; i < call.operandCount(); i++) {
SqlNode expandedItem = expand(call.operand(i), scope);
call.setOperand(i++, expandedItem);
Copy link
Contributor

Choose a reason for hiding this comment

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

Not clear why it is required one more increment here. May be add an extra comment

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I forget to remove it when replaced for each loop with for i. There shouldn't be one more increment. Thanks for pointing this.

@snuyanzin
Copy link
Contributor

looks good from my side

@asfgit asfgit closed this in 41a0677 Jul 30, 2018
vvysotskyi added a commit to vvysotskyi/calcite that referenced this pull request Jul 30, 2018
… when dynamic table is used

Close apache#768

(cherry picked from commit 41a0677)
vvysotskyi added a commit to mapr/incubator-calcite that referenced this pull request Jul 31, 2018
… when dynamic table is used

Close apache#768

(cherry picked from commit 41a0677)
sergeyT2 pushed a commit to sergeyT2/calcite that referenced this pull request Aug 29, 2018
sergeyT2 pushed a commit to sergeyT2/calcite that referenced this pull request Aug 29, 2018
vvysotskyi added a commit to vvysotskyi/calcite that referenced this pull request Dec 17, 2018
… when dynamic table is used

Close apache#768

(cherry picked from commit 41a0677)
wangxlong pushed a commit to wangxlong/calcite that referenced this pull request Feb 13, 2020
jamesstarr pushed a commit to jamesstarr/calcite that referenced this pull request Aug 28, 2025
… when dynamic table is used

Close apache#768

Change-Id: Idfbe59fb42aa1fcd9f372f61641aacfec8993643
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