Repository navigation
Commit d1dc640
committed
chore: remove the Polyglot equivalence check
Real Snowflake results, the referee and the recorded receipts, are now
the only bar for the Snowflake parser, so the forked code can diverge
from Polyglot as it is fixed.
- tools/sqlquack-polyglot-check, its expected differences, the
polyglot-sql workspace dependency and its lockfile entries, and the
polyglot-duckshop target are gone. CallMode::FaithfulWithSpans, which
only the check used, goes with them.
- polyglot-guard goes too: with no polyglot dependency left, nothing
needs guarding.
- syntax-coverage corpus-verdicts, part of check-ci, records whether
SQLQuack parses each statement of the corpora under
corpora/polyglot-check and fails on any change;
make corpus-verdicts-baseline records a reviewed change. It keeps the
two checks the removed crate ran that never involved Polyglot: the
lossless tokens rebuild each statement byte for byte, and its located
parse equals its faithful parse once spans are removed.
- docs/syntax.md and docs/architecture.md no longer hold the parser to
Polyglot's behaviour.
The convert-layout change's exact-check failure was Polyglot's alone.
SQLQuack parses the laid-out and compact DuckDB output of every recorded
case to the same tree, apart from the raw text CREATE MACRO keeps.
Polyglot refuses lambda parameters named by keywords and nested
parenthesised UNION ALL operands, which DuckDB runs.1 parent 11de3d7 commit d1dc640
108 files changed
Lines changed: 7043 additions & 5227 deletions
File tree
- .github/workflows
- corpora
- polyglot-check
- coverage/syntax
- crates
- sqlquack-syntax-snowflake
- src/parser
- _helpers
- functions
- statements
- tests/parser
- sqlquack-syntax/src/tokens
- sqlquack
- docs
- python
- scripts
- fensu
- fuzz_corpus
- main
- polyglot_guard
- _helpers
- main
- tests/unit/scripts/polyglot_guard
- tools
- sqlquack-coverage-check
- src
- cli
- _helpers
- main
- verdicts
- _helpers
- main
- tests
- sqlquack-polyglot-check
- src
- bin
- cli
- _helpers
- main
- comparison
- _helpers
- main
- corpora
- main
- expected
- _helpers
- main
- runs
- _helpers
- main
- tests
- runs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 47 | | |
60 | 48 | | |
61 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
| |||
170 | 166 | | |
171 | 167 | | |
172 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
173 | 178 | | |
174 | 179 | | |
175 | 180 | | |
| |||
220 | 225 | | |
221 | 226 | | |
222 | 227 | | |
223 | | - | |
| 228 | + | |
224 | 229 | | |
225 | 230 | | |
226 | 231 | | |
| |||
484 | 489 | | |
485 | 490 | | |
486 | 491 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | 492 | | |
496 | 493 | | |
497 | 494 | | |
| |||
537 | 534 | | |
538 | 535 | | |
539 | 536 | | |
540 | | - | |
| 537 | + | |
541 | 538 | | |
542 | 539 | | |
543 | 540 | | |
| |||
546 | 543 | | |
547 | 544 | | |
548 | 545 | | |
549 | | - | |
550 | | - | |
| 546 | + | |
| 547 | + | |
551 | 548 | | |
552 | 549 | | |
553 | 550 | | |
| |||
556 | 553 | | |
557 | 554 | | |
558 | 555 | | |
559 | | - | |
| 556 | + | |
560 | 557 | | |
561 | 558 | | |
562 | 559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
0 commit comments