Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19218#discussion_r139302763
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala
 ---
    @@ -101,6 +101,19 @@ case class InsertIntoHiveTable(
         val tmpLocation = getExternalTmpPath(sparkSession, hadoopConf, 
tableLocation)
         val fileSinkConf = new FileSinkDesc(tmpLocation.toString, tableDesc, 
false)
     
    +    tableDesc.getOutputFileFormatClassName match {
    --- End diff --
    
    Move the whole logics into `saveAsHiveFile`, which is being shared by 
`InsertIntoHiveDirCommand` and `InsertIntoHiveTable`. Both need these logics. 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to