Skip to content

[SPARK-38276][SQL] Add approved TPCDS plans under ANSI mode#35598

Closed
gengliangwang wants to merge 1 commit intoapache:masterfrom
gengliangwang:fixMoreStability
Closed

[SPARK-38276][SQL] Add approved TPCDS plans under ANSI mode#35598
gengliangwang wants to merge 1 commit intoapache:masterfrom
gengliangwang:fixMoreStability

Conversation

@gengliangwang
Copy link
Member

@gengliangwang gengliangwang commented Feb 21, 2022

What changes were proposed in this pull request?

q83 has a different plan output under ANSI mode. Because of the ANSI type coercion, it can actually push down a IN predicate into Parquet data source. The following screenshot contains all the differences between default plan(left) and ansi plan(right):
Screen Shot 2022-02-21 at 7 05 46 PM

This PR is to add approved TPCDS plans under ANSI mode so that we can set up a new job to run tests with ANSI mode on.

Why are the changes needed?

For passing TPCDS plan stability tests under ANSI mode. We are going to set up a new job to run tests with ANSI mode on https://issues.apache.org/jira/browse/SPARK-38154

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually turn on ANSI mode and run tests and check whether all the plan stability tests passed.

@gengliangwang
Copy link
Member Author

Merging to master

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thanks.

@dongjoon-hyun
Copy link
Member

Also, cc @huaxingao , @sunchao and @viirya , too

@viirya
Copy link
Member

viirya commented Feb 21, 2022

This looks good. One question, this only adds q83, if we make any change that causes difference between non-ansi and ansi plans in other queries, can we automatically detect it?

@gengliangwang
Copy link
Member Author

This looks good. One question, this only adds q83, if we make any change that causes difference between non-ansi and ansi plans in other queries, can we automatically detect it?

Yes, we will set up a new GA test job with ANSI on. In the beginning, the job will be executed after commits are merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants