-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-2817] [SQL] add "show create table" support #1760
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 1 commit
a03db77
a337bd6
bbf6b42
bb82726
bde800a
bfc2999
9f97586
9b2ba11
dbe1031
60d48a9
565ec14
cbffe8b
7d28b15
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,10 +70,12 @@ class TestHiveContext(sc: SparkContext) extends HiveContext(sc) { | |
| set("hive.metastore.warehouse.dir", warehousePath) | ||
| } | ||
|
|
||
| val testTmpDir = if (System.getProperty("user.dir").endsWith("sql" + File.separator + "hive")) { | ||
| val testTmpDir = if (System.getProperty("user.dir").endsWith("sql" + | ||
| File.separator + "hive")) { | ||
| new File(System.getProperty("user.dir") + File.separator + "tmp") | ||
|
Contributor
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. All we need is the temporal folder, not sure why we have to check the user working directory if end with
Contributor
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. @chenghao-intel I did not understand why we have to check that too. I just follow the same way of handling "inRepoTests"
Contributor
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. in repo tests is checking to see if the tests are there or if we should look for them in the hive distribution (they weren't always bundled with the source tree). If we need a temporary directory, we should use the mechanisms provided by the JVM for that ( |
||
| } else { | ||
| new File(System.getProperty("user.dir") + File.separator + "sql" + File.separator + "hive" + File.separator + "tmp") | ||
| new File(System.getProperty("user.dir") + File.separator + "sql" + | ||
| File.separator + "hive" + File.separator + "tmp") | ||
| } | ||
|
|
||
| configure() // Must be called before initializing the catalog below. | ||
|
|
||
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.
Could this just be:
I'm not sure why we would want to keep temporary files in the source tree instead of the system temporary folder.