Github user jose-torres commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21560#discussion_r198571496
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/UnsupportedOperationChecker.scala
 ---
    @@ -349,6 +349,17 @@ object UnsupportedOperationChecker {
                   _: DeserializeToObject | _: SerializeFromObject | _: 
SubqueryAlias |
                   _: TypedFilter) =>
             case node if node.nodeName == "StreamingRelationV2" =>
    +        case Repartition(1, false, _) =>
    +        case node: Aggregate =>
    +          val aboveSinglePartitionCoalesce = node.find {
    +            case Repartition(1, false, _) => true
    +            case _ => false
    +          }.isDefined
    +
    +          if (!aboveSinglePartitionCoalesce) {
    --- End diff --
    
    (same comment as above applies here - we don't have partitioning 
information in analysis)


---

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

Reply via email to