-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-5118][SQL] Fix: create table test stored as parquet as select .. #3921
Conversation
Can one of the admins verify this patch? |
Can you add a test case? Perhaps in HiveQuerySuite |
@marmbrus test case done |
| SELECT key, value | ||
| FROM src | ||
| ORDER BY key, value""".stripMargin).collect | ||
|
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 guess you want to test STORED AS PARQUET
?
i think i should remove the test case for |
Just check the version in the hive shim in the test case.
|
check the version in the hive shim in the test case Done |
ok to test |
Also can you please fix the merge conflict? |
Test build #25364 has started for PR 3921 at commit
|
Test build #25364 has finished for PR 3921 at commit
|
Test PASSed. |
fix the merge conflict |
Test build #25388 has started for PR 3921 at commit
|
Test build #25388 has finished for PR 3921 at commit
|
Test PASSed. |
@guowei2 Can you rebase it? Also, can we add a test to make sure we actually generate the correct Parquet file? Just reading back the data of created table cannot verify the file format. Thank you. |
checkAnswer( | ||
sql("SELECT key, value FROM ctas5 ORDER BY key, value"), | ||
sql("SELECT key, value FROM src ORDER BY key, value").collect().toSeq) | ||
sql("set spark.sql.hive.convertMetastoreParquet = true") |
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.
We usually first get the original value of the setting and set it back at the end of the test.
Test build #25879 has started for PR 3921 at commit
|
@yhuai How to check the correct Parquet file?
|
Test build #25879 has finished for PR 3921 at commit
|
Test PASSed. |
I think you can use |
Test build #25948 has started for PR 3921 at commit
|
@yhuai I use |
Test build #25948 has finished for PR 3921 at commit
|
Test PASSed. |
Author: guowei2 <guowei2@asiainfo.com> Closes #3921 from guowei2/SPARK-5118 and squashes the following commits: b1ba3be [guowei2] add table file check in test case 9da56f8 [guowei2] test case only run in Shim13 112a0b6 [guowei2] add test case 187c7d8 [guowei2] Fix: create table test stored as parquet as select .. (cherry picked from commit e0490e2) Signed-off-by: Michael Armbrust <michael@databricks.com>
Thanks for fixing this! Merged to master and branch 1.3. |
No description provided.