Skip to content

Commit

Permalink
test: fix array, string and uuid tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and kszucs committed Feb 6, 2024
1 parent cbe9d42 commit d4f7d96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
12 changes: 4 additions & 8 deletions ibis/backends/tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def test_array_contains(backend, con):
param(
[[1], [], [42, 42], []],
[-1, -1, 0, -1],
id="including-empty-array",
id="some-empty",
marks=[
pytest.mark.notyet(
["flink"],
Expand All @@ -601,16 +601,12 @@ def test_array_contains(backend, con):
param(
[[1], [1], [42, 42], [1]],
[-1, -1, 0, -1],
id="all-non-empty-arrays",
),
param(
[[1], [1, 42], [42, 42, 42], [42, 1]],
[-1, 1, 0, 0],
id="all-non-empty-arrays-2",
id="none-empty",
),
],
)
@pytest.mark.notimpl(["dask", "impala", "polars"], raises=com.OperationNotDefinedError)
@pytest.mark.notimpl(["dask", "polars"], raises=com.OperationNotDefinedError)
@pytest.mark.notyet(["impala"], raises=com.UnsupportedBackendType)
def test_array_position(backend, con, a, expected_array):
t = ibis.memtable({"a": a})
expr = t.a.index(42)
Expand Down
6 changes: 1 addition & 5 deletions ibis/backends/tests/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,14 +942,10 @@ def test_capitalize(con):
"mssql",
"mysql",
"exasol",
"impala",
],
raises=com.OperationNotDefinedError,
)
@pytest.mark.notimpl(
["impala"],
raises=com.UnsupportedBackendType,
reason="no array support",
)
def test_array_string_join(con):
s = ibis.array(["a", "b", "c"])
expected = "a,b,c"
Expand Down
2 changes: 1 addition & 1 deletion ibis/backends/tests/test_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
raises=sqlalchemy.exc.InternalError,
reason="Feature is not yet implemented: unsupported data type: UUID",
)
@pytest.mark.notimpl(["impala", "polars"], raises=NotImplementedError)
@pytest.mark.notimpl(["polars"], raises=NotImplementedError)
@pytest.mark.notimpl(["datafusion"], raises=Exception)
def test_uuid_literal(con, backend):
backend_name = backend.name()
Expand Down

0 comments on commit d4f7d96

Please sign in to comment.