Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: support date_series.astype("string[pyarrow]") to cast DATE to…
… STRING
  • Loading branch information
ajpotts01 committed Nov 8, 2023
commit 6ee5f83b467f032f884a52431703ee529e9ae302
2 changes: 1 addition & 1 deletion bigframes/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def cast_ibis_value(
),
ibis_dtypes.float64: (ibis_dtypes.string, ibis_dtypes.int64),
ibis_dtypes.string: (ibis_dtypes.int64, ibis_dtypes.float64),
ibis_dtypes.date: (),
ibis_dtypes.date: (ibis_dtypes.string,),
ibis_dtypes.Decimal(precision=38, scale=9): (ibis_dtypes.float64,),
ibis_dtypes.Decimal(precision=76, scale=38): (ibis_dtypes.float64,),
ibis_dtypes.time: (),
Expand Down
1 change: 1 addition & 0 deletions tests/system/small/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2498,6 +2498,7 @@ def test_mask_custom_value(scalars_dfs):
# with timezone conversions, so we'll allow it.
("timestamp_col", pd.ArrowDtype(pa.timestamp("us"))),
("datetime_col", pd.ArrowDtype(pa.timestamp("us", tz="UTC"))),
("date_col", "string[pyarrow]"),
# TODO(bmil): fix Ibis bug: BigQuery backend rounds to nearest int
# ("float64_col", "Int64"),
# TODO(bmil): decide whether to fix Ibis bug: BigQuery backend
Expand Down