From ccc3a47a135af31998a3e04be5555668fe1ad5af Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Thu, 18 Apr 2024 08:05:39 -0400 Subject: [PATCH] test(flink): xfail in-struct test (#8993) Follow-up to xfail the flink test for `IN STRUCT` queries --- ibis/backends/tests/test_struct.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ibis/backends/tests/test_struct.py b/ibis/backends/tests/test_struct.py index f996e9cb6c2e..e7f078f7591a 100644 --- a/ibis/backends/tests/test_struct.py +++ b/ibis/backends/tests/test_struct.py @@ -19,6 +19,7 @@ PsycoPg2InternalError, PsycoPg2SyntaxError, Py4JJavaError, + PySparkAnalysisException, ) from ibis.common.exceptions import IbisError, OperationNotDefinedError @@ -253,6 +254,16 @@ def test_keyword_fields(con, nullable): reason="doesn't seem to support IN-style subqueries on structs", ) @pytest.mark.notimpl(["pandas", "dask"], raises=OperationNotDefinedError) +@pytest.mark.xfail_version( + pyspark=["pyspark<3.5"], + reason="requires pyspark 3.5", + raises=PySparkAnalysisException, +) +@pytest.mark.notimpl( + ["flink"], + raises=Py4JJavaError, + reason="fails to parse due to an unsupported operation; flink docs say the syntax is supported", +) def test_isin_struct(con): needle1 = ibis.struct({"x": 1, "y": 2}) needle2 = ibis.struct({"x": 2, "y": 3})