-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-2817] [SQL] add "show create table" support #1760
Conversation
Can one of the admins verify this patch? |
Don't forget to commit the golden answer files. |
@chenghao-intel is these files all right? |
Jenkins, test this please |
what's wrong with jenkins? |
Jenkins, test this please. (Jenkins only listens to a pre-approved list of GitHub accounts). |
LGTM :) |
test this please |
Can you please add [SQL] to the title of any PRs that affect Spark SQL? |
QA tests have started for PR 1760. This patch merges cleanly. |
QA results for PR 1760: |
there are two problem: 2 I could not find how to get the ${system:test.tmp.dir} variable on my laptop, I thought it could be a environment related problem, but it failed on jenkins too. I think I can fix this by modify the pom.xml in "sql/hive/". |
We can add time / user specific properties to nonDeterministicLineIndicators Regarding the test that requires a system property, we don't support that yet. I'd remove that test from the whitelist. Another note: there is no hive/hadoop on jenkins so only tests with golden files will pass there. |
…test which contains "${system:test.tmp.dir}"
I modified the pom.xml in spark-hive module, to support ${system:test.tmp.dir}. |
I don't think thats a maven thing is it? I think thats a hive substitution that we haven't implemented. |
Hi, Michael. I run the test on my laptop with this configuration, it pass the test which failed before. I also check that the apache-hive project create the same configuration in pom.xml. |
Oh, I see, its a system property that is set by maven and then threaded though to hive. Thank you for explaining. I'd still just skip this test as thats not going to work for sbt (which is what Jenkins uses), and I don't want to have to change all the build files for this small detail. |
Another option would be to set this system property somewhere in the HiveComparisionTest instead of in the build file. |
how about adding another rule in rewritePaths funciton in TestHive.scala? |
Yeah, but then we have to handle escaping and such ourselves and if there are other properties the function could get unwieldily. Is there a problem calling |
2 question: |
add "${system:test.tmp.dir}" support add "last_modified_by" to nonDeterministicLineIndicators in HiveComparisonTest
I just add "${system:test.tmp.dir}" support for now. |
…ide the rewritePaths
Hi Michael , could you review these codes again? |
@@ -60,6 +60,8 @@ class TestHiveContext(sc: SparkContext) extends HiveContext(sc) { | |||
// without restarting the JVM. | |||
System.clearProperty("spark.hostPort") | |||
|
|||
|
|||
|
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.
Can you remove these spurious new line additions? Below as well.
…n the source tree, and also clean some empty line
ok to test |
QA tests have started for PR 1760. This patch merges cleanly. |
QA results for PR 1760: |
QA tests have started for PR 1760. This patch merges cleanly. |
I'm sorry for forgetting run the test yesterday. |
Be aware that the |
QA results for PR 1760: |
@marmbrus I think the test failed because some enviorment problem on jenkins host. could you run it again? |
test this please |
QA tests have started for PR 1760. This patch merges cleanly. |
QA results for PR 1760: |
@marmbrus Could you ask someone help me to fix this error ? Failed example: |
Jenkins, test this please. |
QA tests have started for PR 1760. This patch merges cleanly. |
QA results for PR 1760: |
This only failed streaming tests. I'm going to merge into master and 1.1. Thanks! |
In spark sql component, the "show create table" syntax had been disabled. We thought it is a useful funciton to describe a hive table. Author: tianyi <[email protected]> Author: tianyi <[email protected]> Author: tianyi <[email protected]> Closes #1760 from tianyi/spark-2817 and squashes the following commits: 7d28b15 [tianyi] [SPARK-2817] fix too short prefix problem cbffe8b [tianyi] [SPARK-2817] fix the case problem 565ec14 [tianyi] [SPARK-2817] fix the case problem 60d48a9 [tianyi] [SPARK-2817] use system temporary folder instead of temporary files in the source tree, and also clean some empty line dbe1031 [tianyi] [SPARK-2817] move some code out of function rewritePaths, as it may be called multiple times 9b2ba11 [tianyi] [SPARK-2817] fix the line length problem 9f97586 [tianyi] [SPARK-2817] remove test.tmp.dir from pom.xml bfc2999 [tianyi] [SPARK-2817] add "File.separator" support, create a "testTmpDir" outside the rewritePaths bde800a [tianyi] [SPARK-2817] add "${system:test.tmp.dir}" support add "last_modified_by" to nonDeterministicLineIndicators in HiveComparisonTest bb82726 [tianyi] [SPARK-2817] remove test which requires a system from the whitelist. bbf6b42 [tianyi] [SPARK-2817] add a systemProperties named "test.tmp.dir" to pass the test which contains "${system:test.tmp.dir}" a337bd6 [tianyi] [SPARK-2817] add "show create table" support a03db77 [tianyi] [SPARK-2817] add "show create table" support (cherry picked from commit 13f54e2) Signed-off-by: Michael Armbrust <[email protected]>
In spark sql component, the "show create table" syntax had been disabled. We thought it is a useful funciton to describe a hive table. Author: tianyi <[email protected]> Author: tianyi <[email protected]> Author: tianyi <[email protected]> Closes apache#1760 from tianyi/spark-2817 and squashes the following commits: 7d28b15 [tianyi] [SPARK-2817] fix too short prefix problem cbffe8b [tianyi] [SPARK-2817] fix the case problem 565ec14 [tianyi] [SPARK-2817] fix the case problem 60d48a9 [tianyi] [SPARK-2817] use system temporary folder instead of temporary files in the source tree, and also clean some empty line dbe1031 [tianyi] [SPARK-2817] move some code out of function rewritePaths, as it may be called multiple times 9b2ba11 [tianyi] [SPARK-2817] fix the line length problem 9f97586 [tianyi] [SPARK-2817] remove test.tmp.dir from pom.xml bfc2999 [tianyi] [SPARK-2817] add "File.separator" support, create a "testTmpDir" outside the rewritePaths bde800a [tianyi] [SPARK-2817] add "${system:test.tmp.dir}" support add "last_modified_by" to nonDeterministicLineIndicators in HiveComparisonTest bb82726 [tianyi] [SPARK-2817] remove test which requires a system from the whitelist. bbf6b42 [tianyi] [SPARK-2817] add a systemProperties named "test.tmp.dir" to pass the test which contains "${system:test.tmp.dir}" a337bd6 [tianyi] [SPARK-2817] add "show create table" support a03db77 [tianyi] [SPARK-2817] add "show create table" support
In spark sql component, the "show create table" syntax had been disabled.
We thought it is a useful funciton to describe a hive table.