Skip to content

Commit 13142bc

Browse files
authored
Merge pull request #48 from lyft/ctas
CTAS
2 parents f14a7f2 + f4f3c5e commit 13142bc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ case class InsertIntoHiveTable(
100100
hiveQlTable.getMetadata
101101
)
102102
val tableLocation = hiveQlTable.getDataLocation
103-
val tmpLocation = getExternalTmpPath(sparkSession, hadoopConf, tableLocation)
103+
val tmpLocation = tableLocation
104104

105105
try {
106106
processInsert(sparkSession, externalCatalog, hadoopConf, tableDesc, tmpLocation, child)

sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/SaveAsHiveFile.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ private[hive] trait SaveAsHiveFile extends DataWritingCommand {
8484
jobId = java.util.UUID.randomUUID().toString,
8585
outputPath = outputLocation)
8686

87+
logDebug(s"Committer used before calling FileFormatWriter is '$committer'" +
88+
s" and outputLocation is '$outputLocation'.")
89+
8790
FileFormatWriter.write(
8891
sparkSession = sparkSession,
8992
plan = plan,

0 commit comments

Comments
 (0)