Skip to content

Commit

Permalink
test: add xfail test for ibis.array(Scalar) -> ArrayColumn
Browse files Browse the repository at this point in the history
An xfail test for ibis-project#8022
  • Loading branch information
NickCrews committed Jan 18, 2024
1 parent 7a04523 commit a53d244
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ibis/backends/tests/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ def test_array_scalar(con, backend):
assert con.execute(expr.typeof()) == ARRAY_BACKEND_TYPES[backend_name]


@pytest.mark.xfail
def test_array_scalar_mixed_python_ibis(con, backend):
# https://github.com/ibis-project/ibis/issues/8022
# once fixed, probably merge this into test_array_scalar()
# by adding an ibis.literal() in that test data.
expr = ibis.array([1.0, ibis.literal(2.0), 3.0])
assert isinstance(expr, ir.ArrayScalar)


@pytest.mark.notimpl(["polars", "flink"], raises=com.OperationNotDefinedError)
def test_array_repeat(con):
expr = ibis.array([1.0, 2.0]) * 2
Expand Down

0 comments on commit a53d244

Please sign in to comment.