Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(snowflake): xfail on broken transform and filter #9281

Merged
merged 1 commit into from
May 31, 2024
Merged
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
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