Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/14888#discussion_r77430743
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
---
@@ -613,21 +613,22 @@ private[hive] class HiveClientImpl(
def loadPartition(
loadPath: String,
+ dbName: String,
tableName: String,
partSpec: java.util.LinkedHashMap[String, String],
replace: Boolean,
holdDDLTime: Boolean,
- inheritTableSpecs: Boolean,
- isSkewedStoreAsSubdir: Boolean): Unit = withHiveState {
+ inheritTableSpecs: Boolean): Unit = withHiveState {
+ val hiveTable = client.getTable(dbName, tableName, true /* throw
exception */)
shim.loadPartition(
--- End diff --
if the table is not exist, did we throw exception in `shim.loadPartition`
before?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]