Skip to content

Conversation

@LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Nov 23, 2022

What changes were proposed in this pull request?

This pr add a sort when columnAlreadyExistsError will be thrown to make the result of SchemaUtils#checkColumnNameDuplication stable.

Why are the changes needed?

Fix COLUMN_ALREADY_EXISTS check failed with Scala 2.13

Does this PR introduce any user-facing change?

No

How was this patch tested?

  • Pass GA
  • Manual test:
dev/change-scala-version.sh 2.13
build/sbt clean "sql/testOnly org.apache.spark.sql.DataFrameSuite" -Pscala-2.13
build/sbt  "sql/testOnly org.apache.spark.sql.execution.datasources.json.JsonV1Suite" -Pscala-2.13
build/sbt  "sql/testOnly org.apache.spark.sql.execution.datasources.json.JsonV2Suite" -Pscala-2.13
build/sbt  "sql/testOnly org.apache.spark.sql.execution.datasources.json.JsonLegacyTimeParserSuite" -Pscala-2.13

All tests passed

@github-actions github-actions bot added the SQL label Nov 23, 2022
@LuciferYang LuciferYang changed the title [SPARK-41206][SQL][FOLLOWUP] Make result of checkColumnNameDuplication stable to fix COLUMN_ALREADY_EXISTS check with Scala 2.13 [SPARK-41206][SQL][FOLLOWUP] Make result of checkColumnNameDuplication stable to fix COLUMN_ALREADY_EXISTS check fail with Scala 2.13 Nov 23, 2022
@LuciferYang LuciferYang changed the title [SPARK-41206][SQL][FOLLOWUP] Make result of checkColumnNameDuplication stable to fix COLUMN_ALREADY_EXISTS check fail with Scala 2.13 [SPARK-41206][SQL][FOLLOWUP] Make result of checkColumnNameDuplication stable to fix COLUMN_ALREADY_EXISTS check failed with Scala 2.13 Nov 23, 2022
@LuciferYang
Copy link
Contributor Author

cc @HyukjinKwon try to fix #38685 (comment)

https://pipelines.actions.githubusercontent.com/serviceHosts/03398d36-4378-4d47-a936-fba0a5e8ccb9/_apis/pipelines/1/runs/197563/signedlogcontent/15?urlExpires=2022-11-23T02%3A27%3A31.4973482Z&urlSigningMethod=HMACV1&urlSignature=9ZuCXVZm%2FAAfuPXmBpFS1qunTFAC%2B2kN7XpW%2BZ2MnXg%3D

2022-11-22T20:55:45.2729890Z �[0m[�[0m�[31merror�[0m] �[0m�[0mFailed tests:�[0m
2022-11-22T20:55:45.2730467Z �[0m[�[0m�[31merror�[0m] �[0m�[0m	org.apache.spark.sql.DataFrameSuite�[0m
2022-11-22T20:55:45.2731402Z �[0m[�[0m�[31merror�[0m] �[0m�[0m	org.apache.spark.sql.execution.datasources.json.JsonV1Suite�[0m
2022-11-22T20:55:45.2732142Z �[0m[�[0m�[31merror�[0m] �[0m�[0m	org.apache.spark.sql.execution.datasources.json.JsonV2Suite�[0m
2022-11-22T20:55:45.2732893Z �[0m[�[0m�[31merror�[0m] �[0m�[0m	org.apache.spark.sql.execution.datasources.json.JsonLegacyTimeParserSuite�[0m

Let us waiting CI

@MaxGekk
Copy link
Member

MaxGekk commented Nov 23, 2022

+1, LGTM. Merging to master. All GAs passed.
Thank you, @LuciferYang and @HyukjinKwon for review.

@MaxGekk MaxGekk closed this in e42d383 Nov 23, 2022
@LuciferYang
Copy link
Contributor Author

Thanks @HyukjinKwon @MaxGekk

beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 15, 2022
…on` stable to fix `COLUMN_ALREADY_EXISTS` check failed with Scala 2.13

### What changes were proposed in this pull request?
This pr add a sort when `columnAlreadyExistsError` will be thrown to make the result of `SchemaUtils#checkColumnNameDuplication` stable.

### Why are the changes needed?
Fix `COLUMN_ALREADY_EXISTS` check failed with Scala 2.13

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

### How was this patch tested?

- Pass GA
- Manual test:

```
dev/change-scala-version.sh 2.13
build/sbt clean "sql/testOnly org.apache.spark.sql.DataFrameSuite" -Pscala-2.13
build/sbt  "sql/testOnly org.apache.spark.sql.execution.datasources.json.JsonV1Suite" -Pscala-2.13
build/sbt  "sql/testOnly org.apache.spark.sql.execution.datasources.json.JsonV2Suite" -Pscala-2.13
build/sbt  "sql/testOnly org.apache.spark.sql.execution.datasources.json.JsonLegacyTimeParserSuite" -Pscala-2.13
```
All tests passed

Closes apache#38764 from LuciferYang/SPARK-41206.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 18, 2022
…on` stable to fix `COLUMN_ALREADY_EXISTS` check failed with Scala 2.13

### What changes were proposed in this pull request?
This pr add a sort when `columnAlreadyExistsError` will be thrown to make the result of `SchemaUtils#checkColumnNameDuplication` stable.

### Why are the changes needed?
Fix `COLUMN_ALREADY_EXISTS` check failed with Scala 2.13

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

### How was this patch tested?

- Pass GA
- Manual test:

```
dev/change-scala-version.sh 2.13
build/sbt clean "sql/testOnly org.apache.spark.sql.DataFrameSuite" -Pscala-2.13
build/sbt  "sql/testOnly org.apache.spark.sql.execution.datasources.json.JsonV1Suite" -Pscala-2.13
build/sbt  "sql/testOnly org.apache.spark.sql.execution.datasources.json.JsonV2Suite" -Pscala-2.13
build/sbt  "sql/testOnly org.apache.spark.sql.execution.datasources.json.JsonLegacyTimeParserSuite" -Pscala-2.13
```
All tests passed

Closes apache#38764 from LuciferYang/SPARK-41206.

Authored-by: yangjie01 <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
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.

3 participants