Skip to content

Commit 46bb556

Browse files
authored
Merge pull request #49 from lyft/revert-48-ctas
Revert "CTAS"
2 parents 13142bc + c5fa4e5 commit 46bb556

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
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 = tableLocation
103+
val tmpLocation = getExternalTmpPath(sparkSession, hadoopConf, 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: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ 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-
9087
FileFormatWriter.write(
9188
sparkSession = sparkSession,
9289
plan = plan,

0 commit comments

Comments
 (0)