Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ class PythonPipelineSuite
"eager analysis or execution will fail")(
Seq("""spark.sql("SELECT * FROM src")""", """spark.read.table("src").collect()""")) {
command =>
assume(PythonTestDepsChecker.isConnectDepsAvailable)
val ex = intercept[RuntimeException] {
buildGraph(s"""
|@dp.materialized_view
Expand Down Expand Up @@ -1047,6 +1048,7 @@ class PythonPipelineSuite

gridTest("Unsupported SQL command outside query function should result in a failure")(
unsupportedSqlCommandList) { unsupportedSqlCommand =>
assume(PythonTestDepsChecker.isConnectDepsAvailable)
val ex = intercept[RuntimeException] {
buildGraph(s"""
|spark.sql("$unsupportedSqlCommand")
Expand All @@ -1061,6 +1063,7 @@ class PythonPipelineSuite

gridTest("Unsupported SQL command inside query function should result in a failure")(
unsupportedSqlCommandList) { unsupportedSqlCommand =>
assume(PythonTestDepsChecker.isConnectDepsAvailable)
val ex = intercept[RuntimeException] {
buildGraph(s"""
|@dp.materialized_view()
Expand Down