sryza commented on code in PR #52831:
URL: https://github.com/apache/spark/pull/52831#discussion_r2492996987
##########
sql/pipelines/src/test/scala/org/apache/spark/sql/pipelines/utils/APITest.scala:
##########
@@ -542,6 +542,66 @@ trait APITest
}
}
+ test("Python Pipeline with cluster columns") {
+ val pipelineSpec =
+ TestPipelineSpec(include = Seq("transformations/**"))
+ val pipelineConfig = TestPipelineConfiguration(pipelineSpec)
+ val sources = Seq(
+ PipelineSourceFile(
+ name = "transformations/definition.py",
+ contents = """
+ |from pyspark import pipelines as dp
+ |from pyspark.sql import DataFrame, SparkSession
+ |from pyspark.sql.functions import col
+ |
+ |spark = SparkSession.active()
+ |
+ |@dp.materialized_view(cluster_by = ["cluster_col1"])
Review Comment:
👍 adding a non-existent columns test to `MaterializeTablesSuite` and a test
for empty array to `PythonPipelineSuite` (the table gets no clustering columns)
--
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]