Skip to content

Conversation

@dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jun 10, 2022

What changes were proposed in this pull request?

This PR aims to update PlanStabilitySuite direction to prevent future mistakes.

  1. Add SPARK_ANSI_SQL_MODE=true explicitly because Apache Spark 3.3+ test coverage has ANSI and non-ANSI modes. We need to make it sure that both results are synced at the same time.
- SPARK_GENERATE_GOLDEN_FILES=1 build/sbt ...
+ SPARK_GENERATE_GOLDEN_FILES=1 build/sbt ...
+ SPARK_GENERATE_GOLDEN_FILES=1 SPARK_ANSI_SQL_MODE=true ...
  1. The existing commands are human-readable but is not working. So, we had better have more simple command which is copy-and-pasteable.
- build/sbt "sql/testOnly *PlanStability[WithStats]Suite"
+ build/sbt "sql/testOnly *PlanStability*Suite"

Why are the changes needed?

This will help us update the test results more easily by preventing mistakes.

Does this PR introduce any user-facing change?

No. This is a dev-only doc.

How was this patch tested?

Manual review.

@github-actions github-actions bot added the SQL label Jun 10, 2022
@dongjoon-hyun
Copy link
Member Author

dongjoon-hyun commented Jun 10, 2022

Could you review this, @gengliangwang, @Ngone51 , @cloud-fan ?

Copy link
Member

@gengliangwang gengliangwang left a comment

Choose a reason for hiding this comment

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

LGTM, I tried the commands manually.

@dongjoon-hyun
Copy link
Member Author

Thank you, @gengliangwang !

dongjoon-hyun added a commit that referenced this pull request Jun 11, 2022
…SPARK_ANSI_SQL_MODE`

### What changes were proposed in this pull request?

This PR aims to update `PlanStabilitySuite` direction to prevent future mistakes.

1. Add `SPARK_ANSI_SQL_MODE=true` explicitly because Apache Spark 3.3+ test coverage has ANSI and non-ANSI modes. We need to make it sure that both results are synced at the same time.
```
- SPARK_GENERATE_GOLDEN_FILES=1 build/sbt ...
+ SPARK_GENERATE_GOLDEN_FILES=1 build/sbt ...
+ SPARK_GENERATE_GOLDEN_FILES=1 SPARK_ANSI_SQL_MODE=true ...
```

2. The existing commands are human-readable but is not working. So, we had better have more simple command which is *copy-and-pasteable*.
```
- build/sbt "sql/testOnly *PlanStability[WithStats]Suite"
+ build/sbt "sql/testOnly *PlanStability*Suite"
```

### Why are the changes needed?

This will help us update the test results more easily by preventing mistakes.

### Does this PR introduce _any_ user-facing change?

No. This is a dev-only doc.

### How was this patch tested?

Manual review.

Closes #36839 from dongjoon-hyun/SPARK-39442.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit d426c10)
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun dongjoon-hyun deleted the SPARK-39442 branch June 11, 2022 02:50
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.

2 participants