Skip to content

Commit

Permalink
test(snowflake): xfail on broken transform and filter (#9281)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored May 31, 2024
1 parent 0aa02d8 commit 7197e19
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ibis/backends/tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
PsycoPg2SyntaxError,
Py4JJavaError,
PySparkAnalysisException,
SnowflakeProgrammingError,
TrinoUserError,
)
from ibis.common.collections import frozendict
Expand Down Expand Up @@ -476,6 +477,11 @@ def test_array_slice(backend, start, stop):
raises=PsycoPg2InternalError,
reason="TODO(Kexiang): seems a bug",
)
@pytest.mark.broken(
["snowflake"],
raises=SnowflakeProgrammingError,
reason="parse error from lambda @ 0700 EDT 2024-05-31",
)
def test_array_map(con, input, output, func):
t = ibis.memtable(input, schema=ibis.schema(dict(a="!array<int8>")))
t = ibis.memtable(input, schema=ibis.schema(dict(a="!array<int8>")))
Expand Down Expand Up @@ -533,6 +539,11 @@ def test_array_map(con, input, output, func):
],
ids=["lambda", "partial", "deferred"],
)
@pytest.mark.broken(
["snowflake"],
raises=SnowflakeProgrammingError,
reason="parse error from lambda @ 0700 EDT 2024-05-31",
)
def test_array_filter(con, input, output, predicate):
t = ibis.memtable(input, schema=ibis.schema(dict(a="!array<int8>")))
expected = pd.Series(output["a"])
Expand Down Expand Up @@ -1146,6 +1157,11 @@ def test_unnest_empty_array(con):
raises=PsycoPg2InternalError,
reason="no support for not null column constraint",
)
@pytest.mark.broken(
["snowflake"],
raises=SnowflakeProgrammingError,
reason="parse error from lambda @ 0700 EDT 2024-05-31",
)
def test_array_map_with_conflicting_names(backend, con):
t = ibis.memtable({"x": [[1, 2]]}, schema=ibis.schema(dict(x="!array<int8>")))
expr = t.select(a=t.x.map(lambda x: x + 1)).select(
Expand All @@ -1161,6 +1177,11 @@ def test_array_map_with_conflicting_names(backend, con):
["datafusion", "flink", "polars", "sqlite", "dask", "pandas", "sqlite"],
raises=com.OperationNotDefinedError,
)
@pytest.mark.broken(
["snowflake"],
raises=SnowflakeProgrammingError,
reason="parse error from lambda @ 0700 EDT 2024-05-31",
)
def test_complex_array_map(con):
def upper(token):
return token.upper()
Expand Down

0 comments on commit 7197e19

Please sign in to comment.