HeartSaVioR commented on a change in pull request #31355: URL: https://github.com/apache/spark/pull/31355#discussion_r602650158
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala ########## @@ -1097,4 +1097,9 @@ private[spark] object QueryCompilationErrors { s"and column $colName cannot be resolved. Expected $expectedNum columns named $colName but " + s"got ${actualCols.map(_.name).mkString("[", ",", "]")}") } + + def numberOfPartitionsNotAllowedWithUnspecifiedDistributionError(): Throwable = { + throw new AnalysisException("The number of partitions can't be specified with unspecified" + + " distribution. Invalid Sink requirements detected.") Review comment: Nope. I thought the word "Sink" is not specific to streaming, but looks like it brings confusion. Just changed to "writer". Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org