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

    https://github.com/apache/spark/pull/21757#discussion_r202417166
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceStrategy.scala
 ---
    @@ -254,13 +254,15 @@ class FindDataSourceTable(sparkSession: SparkSession) 
extends Rule[LogicalPlan]
     
       override def apply(plan: LogicalPlan): LogicalPlan = plan transform {
         case i @ InsertIntoTable(UnresolvedCatalogRelation(tableMeta), _, _, 
_, _)
    -        if DDLUtils.isDatasourceTable(tableMeta) =>
    +        if DDLUtils.isDatasourceTable(tableMeta) &&
    +          DDLUtils.convertSchema(tableMeta, sparkSession) =>
    --- End diff --
    
    ok


---

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

Reply via email to