Skip to content

[CALCITE-3297] PigToSqlAggregateRule should be applied on multi-set projection to produce an optimal plan#1420

Closed
ihuzenko wants to merge 1 commit intoapache:masterfrom
ihuzenko:CALCITE-3297
Closed

[CALCITE-3297] PigToSqlAggregateRule should be applied on multi-set projection to produce an optimal plan#1420
ihuzenko wants to merge 1 commit intoapache:masterfrom
ihuzenko:CALCITE-3297

Conversation

@ihuzenko
Copy link
Member

Hello @julianhyde , the PigToSqlAggregateRule was affected by my additional check that I added to rel builder in scope of CALCITE-3138. At that time I thought that merging restructuring project (project which collects flattened fields back into struct here ) and flattening projects added ,for example, on top of scan makes work performed by RelStructuredTypeFlattener redundant. Please look at test updates in the PR. The final expressions in projects looks really redundant for me, for example ROW($2.OTHERS.A, $2.OTHERS.B) could be simply $2.OTHERS, and other results, like flattening and collecting back results of ITEM(...) look weird.

@danny0405
Copy link
Contributor

Thanks @ihuzenko ,the AppVeyor is still failing, does this patch solve the problem ?

@ihuzenko
Copy link
Member Author

Hello @danny0405 , the fix enables one of Pig plan optimizations. Fails on AppVeyor is another env specific issue.

@julianhyde
Copy link
Contributor

Yes, I logged https://issues.apache.org/jira/browse/CALCITE-3307 for the AppVeyor issue.

@asfgit asfgit closed this in c1b042f Aug 30, 2019
wangxlong pushed a commit to wangxlong/calcite that referenced this pull request Feb 13, 2020
…rojection to produce an optimal plan (Igor Guzenko)

Close apache#1420
jamesstarr pushed a commit to jamesstarr/calcite that referenced this pull request Aug 28, 2025
…rojection to produce an optimal plan (Igor Guzenko)

Close apache#1420

Change-Id: I3481e33f1e0926d70a2177624f6fa8be19fcdb73
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.

3 participants