From 55a57a286f7651cd7214393578e62f4dbcd9e95c Mon Sep 17 00:00:00 2001 From: Will Jones Date: Sat, 24 Sep 2022 13:22:48 -0700 Subject: [PATCH] Fix final test --- python/tests/pyspark_integration/test_write_to_pyspark.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/tests/pyspark_integration/test_write_to_pyspark.py b/python/tests/pyspark_integration/test_write_to_pyspark.py index 20995147fb..167f3dfd32 100644 --- a/python/tests/pyspark_integration/test_write_to_pyspark.py +++ b/python/tests/pyspark_integration/test_write_to_pyspark.py @@ -112,10 +112,10 @@ def test_checks_min_writer_version(tmp_path: pathlib.Path): ) # Add a constraint upgrades the minWriterProtocol - spark.sql(f"ALTER TABLE delta.{str(tmp_path)} ADD CONSTRAINT x CHECK c1 > 2") + spark.sql(f"ALTER TABLE delta.`{str(tmp_path)}` ADD CONSTRAINT x CHECK (c1 > 2)") with pytest.raises( - PyDeltaTableError, match="The table's min_writer_version is 3 but" + PyDeltaTableError, match="This table's min_writer_version is 3, but" ): - valid_data = pa.table({"c1": pa.array([5, 6], type=pa.int32())}) + valid_data = pa.table({"c1": pa.array([5, 6])}) write_deltalake(str(tmp_path), valid_data, mode="append")