Commit 3b79caa
fix: avoid invalid CAST(NULL AS NULL) in SQLGlot compiler (#17487)
This PR resolves a compilation crash caused by the SQLGlot compiler
attempting to generate an invalid CAST(NULL AS NULL) statement in
BigQuery, which triggers a syntax/validation error (e.g., Unexpected
keyword NULL).
Fixes #<524701452> 🦕
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent 4f5593a commit 3b79caa
2 files changed
Lines changed: 14 additions & 0 deletions
File tree
- packages/bigframes
- bigframes/core/compile/sqlglot/sql
- tests/unit/core/compile/sqlglot/sql
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
0 commit comments