SCHJonathan commented on code in PR #53303:
URL: https://github.com/apache/spark/pull/53303#discussion_r2586887426
##########
sql/connect/server/src/test/scala/org/apache/spark/sql/connect/pipelines/PythonPipelineSuite.scala:
##########
@@ -1105,6 +1105,70 @@ class PythonPipelineSuite
|""".stripMargin)
}
+ private val eagerExecutionPythonCommands = Seq(
+ "df.collect()",
+ "df.first()",
+ "df.head(0)",
+ "df.toPandas()",
+ "spark.readStream.format(\"rate\").load().writeStream" +
+ ".format(\"memory\").queryName(\"test_query_name\").start()")
+
+ gridTest("unsupported eager execution inside flow function is blocked")(
+ eagerExecutionPythonCommands) { unsupportedEagerExecutionCommand =>
+ val ex = intercept[RuntimeException] {
+ buildGraph(s"""
+ |@dp.materialized_view()
Review Comment:
Intentionally to keep them into separate test as one is eager exeuction and
one is eager analysis.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]