-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-19575][SQL]Reading from or writing to a hive serde table with a non pre-existing location should succeed #16910
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
cb98375
401e86d
4493a8f
6fb2b57
b4caca7
119fa64
3870e19
92d1067
4f660d2
7aa43b1
f83d81d
2456a94
f4b4d29
3dcd6c6
065af19
a4f771a
15c0a77
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 |
|---|---|---|
|
|
@@ -117,7 +117,7 @@ class HadoopTableReader( | |
| val locationPath = new Path(inputPathStr) | ||
| val fs = locationPath.getFileSystem(sparkSession.sessionState.newHadoopConf()) | ||
|
|
||
| // if the table location is not exists, return an empty RDD | ||
| // if the table location does not exist, return an empty RDD | ||
| if (!fs.exists(locationPath)) { | ||
|
||
| new EmptyRDD[InternalRow](sparkSession.sparkContext) | ||
| } else { | ||
|
|
||
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.
How about replacing
sparkSession.sessionState.newHadoopConf()bybroadcastedHadoopConf.value.value?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.
ok~