Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 64c8872

Browse files
authored
Update tests/unit/core/test_dtypes.py
1 parent a083fa1 commit 64c8872

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/unit/core/test_dtypes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ def test_literal_to_ibis_scalar_throws_on_incompatible_literal():
280280
(pa.scalar(1_000_000_000, type=pa.int64()), bigframes.dtypes.INT_DTYPE),
281281
(pa.scalar(True, type=pa.bool_()), bigframes.dtypes.BOOL_DTYPE),
282282
(pa.scalar("hello", type=pa.string()), bigframes.dtypes.STRING_DTYPE),
283+
# Support NULL scalars.
284+
(pa.scalar(None, type=pa.int64()), bigframes.dtypes.INT_DTYPE),
285+
(pa.scalar(None, type=pa.bool_()), bigframes.dtypes.BOOL_DTYPE),
286+
(pa.scalar(None, type=pa.string()), bigframes.dtypes.STRING_DTYPE),
283287
],
284288
)
285289
def test_infer_literal_type_arrow_scalar(scalar, expected_dtype):

0 commit comments

Comments
 (0)