-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-18752][hive] "isSrcLocal" value should be set from user query. #16179
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
f1e09f4
11f11ca
93e07db
a8482a5
b451a70
4e37c80
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 |
|---|---|---|
|
|
@@ -316,7 +316,8 @@ case class InsertIntoHiveTable( | |
| partitionSpec, | ||
| isOverwrite = doHiveOverwrite, | ||
| holdDDLTime = holdDDLTime, | ||
| inheritTableSpecs = inheritTableSpecs) | ||
| inheritTableSpecs = inheritTableSpecs, | ||
| isSrcLocal = false) | ||
| } | ||
| } | ||
| } else { | ||
|
|
@@ -325,7 +326,8 @@ case class InsertIntoHiveTable( | |
| table.catalogTable.identifier.table, | ||
| outputPath.toString, // TODO: URI | ||
| overwrite, | ||
| holdDDLTime) | ||
| holdDDLTime, | ||
| isSrcLocal = false) | ||
|
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. Then, how can we know this is always not a local file system (e.g., as you said above, if your warehouse directory is in the local file system too)?
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. We don't need to. "isSrcLocal" comes from the user query. "LOAD DATA LOCAL" -> "isSrcLocal" = true
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. I see the reason why we can set it to |
||
| } | ||
|
|
||
| // Invalidate the cache. | ||
|
|
||
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.
what does isSrcLocal mean? Can you document it?
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.
It means the source data comes from a "LOAD DATA LOCAL" query.
I can add a partial scaladoc to these methods, but I don't really know the meaning of some of the other arguments, so I can't write a complete one.