-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-29981][SQL][FOLLOWUP] Fix failing to run SQLQueryTestSuite #26657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,24 +43,30 @@ import org.apache.spark.tags.ExtendedSQLTest | |
| * | ||
| * To run the entire test suite: | ||
| * {{{ | ||
| * build/sbt "sql/test-only *SQLQueryTestSuite" | ||
| * build/sbt -Phive-1.2 "sql/test-only *SQLQueryTestSuite" | ||
| * }}} | ||
| * | ||
| * To run a single test file upon change: | ||
| * {{{ | ||
| * build/sbt "~sql/test-only *SQLQueryTestSuite -- -z inline-table.sql" | ||
| * build/sbt -Phive-1.2 "~sql/test-only *SQLQueryTestSuite -- -z inline-table.sql" | ||
| * }}} | ||
| * | ||
| * To re-generate golden files for entire suite, run: | ||
| * {{{ | ||
| * SPARK_GENERATE_GOLDEN_FILES=1 build/sbt "sql/test-only *SQLQueryTestSuite" | ||
| * SPARK_GENERATE_GOLDEN_FILES=1 build/sbt -Phive-1.2 "sql/test-only *SQLQueryTestSuite" | ||
| * }}} | ||
| * | ||
| * To re-generate golden file for a single test, run: | ||
| * {{{ | ||
| * SPARK_GENERATE_GOLDEN_FILES=1 build/sbt "sql/test-only *SQLQueryTestSuite -- -z describe.sql" | ||
| * SPARK_GENERATE_GOLDEN_FILES=1 build/sbt -Phive-1.2 "sql/test-only *SQLQueryTestSuite -- | ||
| * -z describe.sql" | ||
| * }}} | ||
| * | ||
| * Change profiles: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Plus about the default profile (and it will become obsolete), such documentation should better go to somewhere related to Spark build or testing. |
||
| * We use `hadoop-2.7` as default now, so the above scripts is equivalent to | ||
| * `-Phadoop-2.7 -Phive-1.2`. You can change profiles to `-Phadoop-3.2 -Phive-2.3` to verify higher | ||
| * hadoop and hive versions. | ||
| * | ||
| * The format for input files is simple: | ||
| * 1. A list of SQL queries separated by semicolon. | ||
| * 2. Lines starting with -- are treated as comments and ignored. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First of all, we had better use
-Phive-2.3.Second, please wait for a while. This PR will become obsolete soon.
As you see, it's still under slow changing to avoid any breakage.
Yesterday, we added
hive-1.2/2.3. Today, we regenerates the manifest viatest-dependencies.sh.And, I'm working on the dependency changes. The following is the history of the migration.
a1706e2 [SPARK-30005][INFRA] Update
test-dependencies.shto checkhive-1.2/2.3profilea60da23 [SPARK-30007][INFRA] Publish snapshot/release artifacts with
-Phive-2.3only13338ea [SPARK-29554][SQL][FOLLOWUP] Rename Version to SparkVersion
6625b69 [SPARK-29981][BUILD][FOLLOWUP] Change hive.version.short
c98e5eb [SPARK-29981][BUILD] Add hive-1.2/2.3 profiles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the instructions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for understanding and sorry for the inconvenience. It's difficult to change the tires of the running cars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind. I will leave this pull request open for a while in case someone encounters the same issue until it is completely fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I'm still working on, I create a WIP PR to share with you.
hive-2.3tosql/core#26658