Skip to content

Commit

Permalink
test: xfail risingwave, postgres, and flink
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 20, 2024
1 parent 348b556 commit 97c408e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ibis/backends/tests/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
TrinoUserError = None

try:
from psycopg2.errors import ArraySubscriptError as PsycoPg2ArraySubscriptError
from psycopg2.errors import DivisionByZero as PsycoPg2DivisionByZero
from psycopg2.errors import IndeterminateDatatype as PsycoPg2IndeterminateDatatype
from psycopg2.errors import InternalError_ as PsycoPg2InternalError
Expand All @@ -118,7 +119,7 @@
PsycoPg2InvalidTextRepresentation
) = PsycoPg2DivisionByZero = PsycoPg2InternalError = PsycoPg2ProgrammingError = (
PsycoPg2OperationalError
) = PsycoPg2UndefinedObject = None
) = PsycoPg2UndefinedObject = PsycoPg2ArraySubscriptError = None

try:
from MySQLdb import NotSupportedError as MySQLNotSupportedError
Expand Down
7 changes: 7 additions & 0 deletions ibis/backends/tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
GoogleBadRequest,
MySQLOperationalError,
PolarsComputeError,
PsycoPg2ArraySubscriptError,
PsycoPg2IndeterminateDatatype,
PsycoPg2InternalError,
PsycoPg2ProgrammingError,
Expand Down Expand Up @@ -1564,6 +1565,12 @@ def test_array_agg_bool(con, data, agg, baseline_func):
assert result == expected


@pytest.mark.notyet(
["postgres"],
raises=PsycoPg2ArraySubscriptError,
reason="all dimensions must match in size",
)
@pytest.mark.notimpl(["risingwave", "flink"], raises=com.OperationNotDefinedError)
def test_flatten(con):
t = ibis.memtable(
[{"arr": [[1, 5, 7], [3, 4]]}], schema={"arr": "array<array<int64>>"}
Expand Down

0 comments on commit 97c408e

Please sign in to comment.