Skip to content

Commit

Permalink
test(cloud-backends): fix all-null tests for the clouds (ibis-project…
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Jan 21, 2025
1 parent 8b124c7 commit dc23b9f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ibis/backends/tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,20 +687,32 @@ def test_scalar_to_memory(limit, awards_players, output_format, converter):


@mark_notyet_nulls
@pytest.mark.notyet(["snowflake"], raises=SnowflakeProgrammingError)
@pytest.mark.notyet(["bigquery"], raises=UserWarning)
@pytest.mark.notyet(["databricks"], raises=pa.ArrowNotImplementedError)
@pytest.mark.notyet(["athena"], raises=PyAthenaOperationalError)
def test_all_null_table(con):
t = ibis.memtable({"a": [None]})
result = con.to_pyarrow(t)
assert pat.is_null(result["a"].type)


@mark_notyet_nulls
@pytest.mark.notyet(["snowflake"], raises=SnowflakeProgrammingError)
@pytest.mark.notyet(["bigquery"], raises=UserWarning)
@pytest.mark.notyet(["databricks"], raises=pa.ArrowNotImplementedError)
@pytest.mark.notyet(["athena"], raises=PyAthenaOperationalError)
def test_all_null_column(con):
t = ibis.memtable({"a": [None]})
result = con.to_pyarrow(t.a)
assert pat.is_null(result.type)


@pytest.mark.notyet(["flink"], raises=Py4JJavaError)
@pytest.mark.notyet(
["snowflake", "bigquery", "databricks"], raises=pa.ArrowNotImplementedError
)
@pytest.mark.notyet(["athena"], raises=PyAthenaOperationalError)
def test_all_null_scalar(con):
e = ibis.literal(None)
result = con.to_pyarrow(e)
Expand Down

0 comments on commit dc23b9f

Please sign in to comment.