-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-19117][SPARK-18922][TESTS] Fix the rest of flaky, newly introduced and missed test failures on Windows #16586
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,8 +221,8 @@ class HiveDDLSuite | |
| sql( | ||
| s""" | ||
| |ALTER TABLE $tab ADD | ||
| |PARTITION (ds='2008-04-08', hr=11) LOCATION '$part1Path' | ||
| |PARTITION (ds='2008-04-08', hr=12) LOCATION '$part2Path' | ||
| |PARTITION (ds='2008-04-08', hr=11) LOCATION '${part1Path.toURI}' | ||
|
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. Just wondering what is the reason?
Member
Author
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. It seems due to the parser. If the path is something like
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. Thanks! I will keep it in mind. We are not following this rule when writing the test cases. |
||
| |PARTITION (ds='2008-04-08', hr=12) LOCATION '${part2Path.toURI}' | ||
| """.stripMargin) | ||
| assert(dirSet.forall(dir => dir.listFiles == null || dir.listFiles.isEmpty)) | ||
|
|
||
|
|
@@ -1252,7 +1252,7 @@ class HiveDDLSuite | |
| s""" | ||
| |CREATE TABLE t(id int) USING hive | ||
| |OPTIONS(fileFormat 'orc', compression 'Zlib') | ||
| |LOCATION '${path.getCanonicalPath}' | ||
| |LOCATION '${path.toURI}' | ||
| """.stripMargin) | ||
| val table = spark.sessionState.catalog.getTableMetadata(TableIdentifier("t")) | ||
| assert(DDLUtils.isHiveTable(table)) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -388,6 +388,8 @@ class HiveQuerySuite extends HiveComparisonTest with SQLTestUtils with BeforeAnd | |
| } | ||
| } | ||
|
|
||
| // Some tests suing script transformation are skipped as it requires `/bin/bash` which | ||
| // can be missing or differently located. | ||
| createQueryTest("transform", | ||
| "SELECT TRANSFORM (key) USING 'cat' AS (tKey) FROM src", | ||
| skip = !TestUtils.testCommandAvailable("/bin/bash")) | ||
|
|
@@ -461,7 +463,8 @@ class HiveQuerySuite extends HiveComparisonTest with SQLTestUtils with BeforeAnd | |
| |('serialization.last.column.takes.rest'='true') USING 'cat' AS (tKey, tValue) | ||
| |ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' | ||
| |WITH SERDEPROPERTIES ('serialization.last.column.takes.rest'='true') FROM src; | ||
| """.stripMargin.replaceAll(System.lineSeparator(), " ")) | ||
| """.stripMargin.replaceAll(System.lineSeparator(), " "), | ||
| skip = !TestUtils.testCommandAvailable("/bin/bash")) | ||
|
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. what's the cause we need to skip this test? perhaps add a comment to help keep a record of this?
Member
Author
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. Script transformation such as I will add a single de-duplicated comment around the first instance of it (there are many instances of it) if I happen to push more commits. |
||
|
|
||
| createQueryTest("transform with SerDe4", | ||
| """ | ||
|
|
@@ -470,7 +473,8 @@ class HiveQuerySuite extends HiveComparisonTest with SQLTestUtils with BeforeAnd | |
| |('serialization.last.column.takes.rest'='true') USING 'cat' ROW FORMAT SERDE | ||
| |'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES | ||
| |('serialization.last.column.takes.rest'='true') FROM src; | ||
| """.stripMargin.replaceAll(System.lineSeparator(), " ")) | ||
| """.stripMargin.replaceAll(System.lineSeparator(), " "), | ||
| skip = !TestUtils.testCommandAvailable("/bin/bash")) | ||
|
|
||
| createQueryTest("LIKE", | ||
| "SELECT * FROM src WHERE value LIKE '%1%'") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
I am pretty sure the deserialization time test is less flaky now assuming from the individual tests as below:
Before - 4 failures out of 5.
1 (failed)
2 (failed)
3 (failed)
4 (passed)
5 (failed)
After - 1 failure out of 7.
1 (passed)
2 (passed)
3 (passed)
4 (passed)
5 (failed)
6 (passed)
7 (passed)