diff --git a/ibis/backends/tests/test_array.py b/ibis/backends/tests/test_array.py index 4ab7b22dfbce..25681908f717 100644 --- a/ibis/backends/tests/test_array.py +++ b/ibis/backends/tests/test_array.py @@ -576,7 +576,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"], @@ -593,22 +593,20 @@ 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) result = con.execute(expr) expected = pd.Series(expected_array, dtype="object") - backend.assert_series_equal(result, expected, check_names=False, check_dtype=False) + assert frozenset(map(tuple, result.values)) == frozenset( + map(tuple, expected.values) + ) @builtin_array @@ -635,7 +633,7 @@ def test_array_position(backend, con, a, expected_array): param([[3, 2], [2], [42, 2], [2, 2], [2]], id="all-non-empty-arrays"), ], ) -def test_array_remove(backend, con, a): +def test_array_remove(con, a): t = ibis.memtable({"a": a}) expr = t.a.remove(2) result = con.execute(expr) diff --git a/ibis/backends/tests/test_string.py b/ibis/backends/tests/test_string.py index 3a832c5d7d40..e25ab5f62d13 100644 --- a/ibis/backends/tests/test_string.py +++ b/ibis/backends/tests/test_string.py @@ -941,14 +941,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" diff --git a/ibis/backends/tests/test_uuid.py b/ibis/backends/tests/test_uuid.py index 5b1eadb790d8..5802727f205d 100644 --- a/ibis/backends/tests/test_uuid.py +++ b/ibis/backends/tests/test_uuid.py @@ -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()