Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/21560#discussion_r196582424
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/UnsupportedOperationChecker.scala
---
@@ -350,7 +350,14 @@ object UnsupportedOperationChecker {
_: TypedFilter) =>
case node if node.nodeName == "StreamingRelationV2" =>
case node =>
- throwError(s"Continuous processing does not support
${node.nodeName} operations.")
+ val aboveSinglePartitionCoalesce = node.find {
+ case Repartition(1, false, _) => true
+ case _ => false
+ }.isDefined
+
+ if (!aboveSinglePartitionCoalesce) {
+ throwError(s"Continuous processing does not support
${node.nodeName} operations.")
--- End diff --
It would be nice if this error statement says what is supported. That you
can rewrite the query with colesce(1)
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]