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

Commit 7f21f44

Browse files
fix null label handling
1 parent 5f78992 commit 7f21f44

File tree

2 files changed

+2
-2
lines changed
  • bigframes/core
  • tests/unit/core/compile/sqlglot/snapshots/test_compile_fromrange/test_compile_fromrange

2 files changed

+2
-2
lines changed

bigframes/core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def get_standardized_ids(
119119
]
120120
idx_ids = [
121121
UNNAMED_INDEX_ID
122-
if idx_label is None
122+
if pd.isna(idx_label) # type: ignore
123123
else label_to_identifier(idx_label, strict=strict)
124124
for idx_label in idx_labels
125125
]

tests/unit/core/compile/sqlglot/snapshots/test_compile_fromrange/test_compile_fromrange/out.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ WITH `bfcte_6` AS (
157157
SELECT
158158
CAST(TIMESTAMP_MICROS(
159159
CAST(CAST(`bfcol_41` AS BIGNUMERIC) * 7000000 + CAST(UNIX_MICROS(CAST(CAST(`bfcol_44` AS DATE) AS TIMESTAMP)) AS BIGNUMERIC) AS INT64)
160-
) AS DATETIME) AS `nan`,
160+
) AS DATETIME) AS `bigframes_unnamed_index`,
161161
`bfcol_55` AS `int64_col`,
162162
`bfcol_56` AS `int64_too`
163163
FROM `bfcte_30`

0 commit comments

Comments
 (0)