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

    https://github.com/apache/spark/pull/20020#discussion_r158416541
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala
 ---
    @@ -479,14 +468,15 @@ case class DataSource(
           outputPath = outputPath,
           staticPartitions = Map.empty,
           ifPartitionNotExists = false,
    -      partitionColumns = partitionAttributes,
    +      partitionColumns = partitionColumns.map(UnresolvedAttribute.quoted),
           bucketSpec = bucketSpec,
           fileFormat = format,
           options = options,
           query = data,
    --- End diff --
    
    I think @cloud-fan wants `AnalysisBarrier` to be in trait 
`DataWritingCommand` to make sure the `query` is analyzed.
    Adding `AnalysisBarrier` will not be helpful, the query should be analyzed 
here.


---

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

Reply via email to