Skip to content

Conversation

@vladimirg-db
Copy link
Contributor

@vladimirg-db vladimirg-db commented May 1, 2024

What changes were proposed in this pull request?

Improve test output for the actual query to be printed alongside of expected

Why are the changes needed?

To reduce confusion later

Does this PR introduce any user-facing change?

No

How was this patch tested?

testOnly org.apache.spark.sql.SQLQuerySuite -- -z SPARK-47939
testOnly org.apache.spark.sql.SQLQuerySuite -- -z SPARK-37965
testOnly org.apache.spark.sql.SQLQuerySuite -- -z SPARK-27442

Was this patch authored or co-authored using generative AI tooling?

No

@vladimirg-db vladimirg-db marked this pull request as ready for review May 1, 2024 09:26
@github-actions github-actions bot added the SQL label May 1, 2024
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-48072][SQL] Improve SQLQuerySuite test output [SPARK-48072][SQL][TESTS] Improve SQLQuerySuite test output May 1, 2024
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.

Given the scope, this is a follow-up of SPARK-47939 instead of a new JIRA.

Could you find more instances like this in SQLQuerySuite? If you can fix more places, we can keep the AS-IS PR title and JIRA ID.

@vladimirg-db
Copy link
Contributor Author

Yes, @dongjoon-hyun, my intent was to add a small improvement after the SPARK-47939, which was resolved by my PR recently. However you are right - I've added couple of similar improvements to this PR. Thank you for the advice.

@vladimirg-db vladimirg-db changed the title [SPARK-48072][SQL][TESTS] Improve SQLQuerySuite test output [SPARK-48072][SQL][TESTS] Improve SQLQuerySuite test output - use === instead of sameElements for Arrays May 2, 2024
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. Thank you, @vladimirg-db .
Merged to master.

@vladimirg-db vladimirg-db deleted the vladimirg-db/improve-test-output-for-sql-query-suite branch May 2, 2024 14:22
JacobZheng0927 pushed a commit to JacobZheng0927/spark that referenced this pull request May 11, 2024
…=` instead of `sameElements` for Arrays

### What changes were proposed in this pull request?
Improve test output for the actual query to be printed alongside of expected

### Why are the changes needed?
To reduce confusion later

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

### How was this patch tested?
`testOnly org.apache.spark.sql.SQLQuerySuite -- -z SPARK-47939`
`testOnly org.apache.spark.sql.SQLQuerySuite -- -z SPARK-37965`
`testOnly org.apache.spark.sql.SQLQuerySuite -- -z SPARK-27442`

### Was this patch authored or co-authored using generative AI tooling?
No

Closes apache#46318 from vladimirg-db/vladimirg-db/improve-test-output-for-sql-query-suite.

Authored-by: Vladimir Golubev <[email protected]>
Signed-off-by: Dongjoon Hyun <[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.

2 participants