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

    https://github.com/apache/spark/pull/16693#discussion_r97709404
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateHiveTableAsSelectCommand.scala
 ---
    @@ -44,40 +44,6 @@ case class CreateHiveTableAsSelectCommand(
       override def innerChildren: Seq[LogicalPlan] = Seq(query)
     
       override def run(sparkSession: SparkSession): Seq[Row] = {
    -    lazy val metastoreRelation: MetastoreRelation = {
    -      import org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    -      import org.apache.hadoop.hive.serde2.`lazy`.LazySimpleSerDe
    -      import org.apache.hadoop.io.Text
    -      import org.apache.hadoop.mapred.TextInputFormat
    -
    -      val withFormat =
    -        tableDesc.withNewStorage(
    -          inputFormat =
    -            
tableDesc.storage.inputFormat.orElse(Some(classOf[TextInputFormat].getName)),
    -          outputFormat =
    -            tableDesc.storage.outputFormat
    -              .orElse(Some(classOf[HiveIgnoreKeyTextOutputFormat[Text, 
Text]].getName)),
    -          serde = 
tableDesc.storage.serde.orElse(Some(classOf[LazySimpleSerDe].getName)),
    -          compressed = tableDesc.storage.compressed)
    --- End diff --
    
    Actually, after the code refactoring, this is always ensured in the rule 
`DetermineHiveSerde`. 


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to