Commit 479e44d
authored
fix(bigframes): Fix bugs compiling ambiguous ids and in subqueries (#16617)
Thank you for opening a Pull Request! Before submitting your PR, there
are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a
[bug/issue](https://github.com/googleapis/google-cloud-python/issues)
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
Fixes #<issue_number_goes_here> 🦕1 parent d80f278 commit 479e44dCopy full SHA for 479e44d
11 files changed
+72-55Lines changed: 72 additions & 55 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/bigframes
- bigframes
- core/compile
- sqlglot
- session
- _io/bigquery
- tests/unit
- core/compile/sqlglot
- snapshots/test_compile_isin/test_compile_isin_not_nullable
- tpch/snapshots/test_tpch/test_tpch_query
- 16
- 18
- 20
- 22
- session
- third_party/bigframes_vendored/sqlglot
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/bigframes/bigframes/core/compile/compiled.py
Copy file name to clipboardExpand all lines: packages/bigframes/bigframes/core/compile/compiled.py+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
381 | 381 | |
382 | 382 | |
383 | 383 | |
| 384 | + |
384 | 385 | |
385 | 386 | |
386 | 387 | |
|
Collapse file
packages/bigframes/bigframes/core/compile/sqlglot/sqlglot_ir.py
Copy file name to clipboardExpand all lines: packages/bigframes/bigframes/core/compile/sqlglot/sqlglot_ir.py+7-3Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
385 | 385 | |
386 | 386 | |
387 | 387 | |
388 | | - |
389 | | - |
390 | | - |
| 388 | + |
| 389 | + |
| 390 | + |
| 391 | + |
| 392 | + |
| 393 | + |
| 394 | + |
391 | 395 | |
392 | 396 | |
393 | 397 | |
|
Collapse file
packages/bigframes/bigframes/session/_io/bigquery/__init__.py
Copy file name to clipboardExpand all lines: packages/bigframes/bigframes/session/_io/bigquery/__init__.py+6-4Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
516 | 516 | |
517 | 517 | |
518 | 518 | |
519 | | - |
| 519 | + |
520 | 520 | |
521 | 521 | |
522 | 522 | |
523 | 523 | |
524 | | - |
| 524 | + |
525 | 525 | |
526 | 526 | |
527 | 527 | |
528 | 528 | |
529 | 529 | |
530 | 530 | |
531 | | - |
| 531 | + |
| 532 | + |
| 533 | + |
532 | 534 | |
533 | 535 | |
534 | 536 | |
| ||
545 | 547 | |
546 | 548 | |
547 | 549 | |
548 | | - |
| 550 | + |
549 | 551 | |
550 | 552 | |
551 | 553 | |
|
Collapse file
packages/bigframes/bigframes/session/polars_executor.py
Copy file name to clipboardExpand all lines: packages/bigframes/bigframes/session/polars_executor.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
122 | 122 | |
123 | 123 | |
124 | 124 | |
125 | | - |
| 125 | + |
126 | 126 | |
127 | 127 | |
128 | 128 | |
|
Collapse file
packages/bigframes/tests/unit/core/compile/sqlglot/snapshots/test_compile_isin/test_compile_isin_not_nullable/out.sql
Copy file name to clipboardExpand all lines: packages/bigframes/tests/unit/core/compile/sqlglot/snapshots/test_compile_isin/test_compile_isin_not_nullable/out.sql+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
| 23 | + |
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
| 27 | + |
28 | 28 | |
29 | 29 | |
30 | 30 | |
|
Collapse file
packages/bigframes/tests/unit/core/compile/sqlglot/tpch/snapshots/test_tpch/test_tpch_query/16/out.sql
Copy file name to clipboardExpand all lines: packages/bigframes/tests/unit/core/compile/sqlglot/tpch/snapshots/test_tpch/test_tpch_query/16/out.sql+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | | - |
| 54 | + |
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | | - |
| 58 | + |
59 | 59 | |
60 | 60 | |
61 | 61 | |
|
Collapse file
packages/bigframes/tests/unit/core/compile/sqlglot/tpch/snapshots/test_tpch/test_tpch_query/18/out.sql
Copy file name to clipboardExpand all lines: packages/bigframes/tests/unit/core/compile/sqlglot/tpch/snapshots/test_tpch/test_tpch_query/18/out.sql+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
| 51 | + |
52 | 52 | |
53 | 53 | |
54 | 54 | |
|
Collapse file
packages/bigframes/tests/unit/core/compile/sqlglot/tpch/snapshots/test_tpch/test_tpch_query/20/out.sql
Copy file name to clipboardExpand all lines: packages/bigframes/tests/unit/core/compile/sqlglot/tpch/snapshots/test_tpch/test_tpch_query/20/out.sql+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
85 | 85 | |
86 | 86 | |
87 | 87 | |
88 | | - |
| 88 | + |
89 | 89 | |
90 | 90 | |
91 | 91 | |
92 | | - |
| 92 | + |
93 | 93 | |
94 | 94 | |
95 | 95 | |
| ||
127 | 127 | |
128 | 128 | |
129 | 129 | |
130 | | - |
| 130 | + |
131 | 131 | |
132 | 132 | |
133 | 133 | |
134 | | - |
| 134 | + |
135 | 135 | |
136 | 136 | |
137 | 137 | |
|
Collapse file
packages/bigframes/tests/unit/core/compile/sqlglot/tpch/snapshots/test_tpch/test_tpch_query/22/out.sql
Copy file name to clipboardExpand all lines: packages/bigframes/tests/unit/core/compile/sqlglot/tpch/snapshots/test_tpch/test_tpch_query/22/out.sql+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
92 | 92 | |
93 | 93 | |
94 | 94 | |
95 | | - |
| 95 | + |
96 | 96 | |
97 | 97 | |
98 | 98 | |
99 | | - |
| 99 | + |
100 | 100 | |
101 | 101 | |
102 | 102 | |
|
Collapse file
packages/bigframes/tests/unit/session/test_io_bigquery.py
Copy file name to clipboardExpand all lines: packages/bigframes/tests/unit/session/test_io_bigquery.py+7-7Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
344 | 344 | |
345 | 345 | |
346 | 346 | |
347 | | - |
| 347 | + |
348 | 348 | |
349 | 349 | |
350 | 350 | |
| ||
369 | 369 | |
370 | 370 | |
371 | 371 | |
372 | | - |
| 372 | + |
373 | 373 | |
374 | 374 | |
375 | 375 | |
376 | | - |
| 376 | + |
377 | 377 | |
378 | 378 | |
379 | 379 | |
| ||
386 | 386 | |
387 | 387 | |
388 | 388 | |
389 | | - |
| 389 | + |
390 | 390 | |
391 | 391 | |
392 | 392 | |
| ||
395 | 395 | |
396 | 396 | |
397 | 397 | |
398 | | - |
| 398 | + |
399 | 399 | |
400 | 400 | |
401 | 401 | |
| ||
404 | 404 | |
405 | 405 | |
406 | 406 | |
407 | | - |
| 407 | + |
408 | 408 | |
409 | 409 | |
410 | 410 | |
| ||
413 | 413 | |
414 | 414 | |
415 | 415 | |
416 | | - |
| 416 | + |
417 | 417 | |
418 | 418 | |
419 | 419 | |
|
0 commit comments