Commit Graph

21 Commits

Author SHA1 Message Date
Claude
c5fc31a67f fix(db2): explicitly register DB2Interval in TRANSFORMS for sqlglot 30
sqlglot 30 changed how the generator dispatch is built. In 28 the
auto-discovery walked all expression subclasses; in 30 it only
considers classes registered in sqlglot.expressions.EXPR_CLASSES,
which is populated once at module load via subclasses(__name__, Expr)
— i.e. ONLY built-in expression types. Custom user-defined
Expression subclasses defined outside that module — like our
DB2Interval — no longer get auto-wired to their <name>_sql handler.

Adding DB2Interval to TRANSFORMS as a lambda → db2interval_sql
restores the dispatch. All 24 dialects/db2_tests.py tests pass.
2026-05-20 17:45:55 -07:00
Claude
9f9c3737a2 fix(firebolt): update Parser.expression() calls to sqlglot 30 API
sqlglot 30 changed Parser.expression() to accept a pre-constructed
expression instance instead of a class + keyword arguments.

Old: self.expression(exp.Not, this=..., expressions=...)
New: self.expression(exp.Not(this=..., expressions=...))

Update all four call sites in firebolt.py: UNARY_PARSERS lambda,
_negate_range, _parse_join, and _parse_unnest.

Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-20 16:48:01 -07:00
Beto Dealmeida
4311a15eb2 feat(sqlglot): Vertica dialect (#39969) 2026-05-08 14:34:34 -03:00
Vitor Avila
ad5e3170dd fix: OpenSearch dialect identifier delimiters (#39953) 2026-05-07 16:19:27 -03:00
Vitor Avila
5af17c7976 fix(OpenSearch): OpenSearch dialect for sqlglot (#39538) 2026-04-22 12:17:15 -03:00
Alexandru Soare
6465450b64 fix(firebolt): Firebolt SQL entered with EXCLUDE is rewritten to EXCEPT (#38742) 2026-03-19 10:21:50 -07:00
Michael S. Molina
c41942a38a chore(deps): Upgrade sqlglot from 27.15.2 to 28.10.0 (#37841) 2026-02-10 13:13:11 -03:00
Beto Dealmeida
e4cb84bc02 feat: DB2 dialect for sqlglot (#36365) 2025-12-02 12:19:52 -05:00
Beto Dealmeida
3202ff4b3f fix(pinot): more functions (#35451) 2025-10-02 13:01:47 -04:00
Beto Dealmeida
30021f8ede fix(pinot): SUBSTR function (#35427) 2025-10-02 10:29:18 -04:00
Beto Dealmeida
f3349388d0 fix(pinot): DATE_SUB function (#35426) 2025-10-02 10:12:19 -04:00
Beto Dealmeida
5428376662 fix(pinot): DATE_ADD function (#35424) 2025-10-02 09:56:20 -04:00
Beto Dealmeida
aa97d2fe03 fix(pinot): dialect date truncation (#35420)
Co-authored-by: bito-code-review[bot] <188872107+bito-code-review[bot]@users.noreply.github.com>
2025-10-01 13:16:46 -04:00
Beto Dealmeida
bf88d9bb1c fix(pinot): restrict types in dialect (#35337) 2025-09-30 16:34:53 -04:00
Beto Dealmeida
4e093a8e2a feat: sqlglot dialect for Pinot (#35333) 2025-09-29 21:56:35 -04:00
Beto Dealmeida
404f7c1043 feat: initial Dremio sqlglot dialect (#33847) 2025-06-20 12:05:45 -07:00
Beto Dealmeida
edc60914f6 chore: 100% test coverage for SQL parsing (#33568) 2025-06-04 22:18:09 -04:00
Beto Dealmeida
22fe985cfc fix(firebolt): allow backslach escape for single quotes (#32350) 2025-02-24 11:12:34 -05:00
Beto Dealmeida
fc8710f50a chore: add a disable for pylint (#31875) 2025-01-15 15:41:28 -05:00
Beto Dealmeida
4ca5846c7f feat: old Firebolt dialect (#31849) 2025-01-15 09:02:37 -05:00
Beto Dealmeida
c2d7cf388d feat: Firebolt sqlglot dialect (#31825) 2025-01-14 09:36:25 -05:00