Whole file
David-Wobrock/sqlvalidator
The author described this change as “Fix #25 -- Handle JOIN EACH syntax from Legacy BigQuery SQL dialect”. It counts as a record because the check below fails on the code as it stood at fccfe984c and passes on ee6b9d6d0, with nothing else changed between the two runs.
ProjectDavid-Wobrock/sqlvalidator
Fix saved2021-06-13
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
Fix #25 -- Handle JOIN EACH syntax from Legacy BigQuery SQL dialect
The change
| 1039 | 1039 | ||
| 1040 | 1040 | ||
| 1041 | 1041 | class Join(Expression): | |
| 1042 | - | VALUES = ("join", "inner", "left", "right", "full", "cross", "outer", ",") | |
| 1042 | + | VALUES = ("join", "inner", "left", "right", "full", "cross", "outer", ",", "each") | |
| 1043 | 1043 | ||
| 1044 | 1044 | def __init__(self, join_type, left_from, right_from, on, using): | |
| 1045 | 1045 | self.join_type = join_type |
The check that tells the two apart
fail→pass·tests/integration/test_formatting.py::test_plain_join_each
Check file tests/integration/test_formatting.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itfccfe984c19fba421e36121df88174b898b2edf8
Broken version dated2021-06-13
Modulesqlvalidator.grammar.sql
Units changedJoin
Fingerprint82ed625f0f3ed6de
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in David-Wobrock/sqlvalidator
- 2022-04-15Fix #38 -- Handle nested case expressions
- 2021-12-22Fix #29 -- Handle strings containing others quotes
- 2021-12-22Fix #35 -- Handle index based access on function call
- 2021-12-22Fix #34 -- Handle parsing a function with a single comma string
- 2021-11-15Fix validating between predicate conditions
- 2021-11-15Fix handling Any return type as invalid WHERE/HAVING condition