Title: DuckDB: remaining syntax to support · Issue #2804 · JSQLParser/JSqlParser · GitHub
Open Graph Title: DuckDB: remaining syntax to support · Issue #2804 · JSQLParser/JSqlParser
X Title: DuckDB: remaining syntax to support · Issue #2804 · JSQLParser/JSqlParser
Description: Tracking what JSqlParser still needs to parse DuckDB 1.5 SQL. Each item below is accepted by DuckDB 1.5.6's parser and fails on master. How it was measured: every statement ok / query block of DuckDB's own test suite (test/sql, 63,832 st...
Open Graph Description: Tracking what JSqlParser still needs to parse DuckDB 1.5 SQL. Each item below is accepted by DuckDB 1.5.6's parser and fails on master. How it was measured: every statement ok / query block of Duck...
X Description: Tracking what JSqlParser still needs to parse DuckDB 1.5 SQL. Each item below is accepted by DuckDB 1.5.6's parser and fails on master. How it was measured: every statement ok / query block of ...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/2804
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DuckDB: remaining syntax to support","articleBody":"Tracking what JSqlParser still needs to parse DuckDB 1.5 SQL. Each item below is accepted by DuckDB 1.5.6's parser and fails on master.\n\n**How it was measured:** every `statement ok` / `query` block of DuckDB's own test suite (`test/sql`, 63,832 statements once the test-harness templates are excluded): master parses 93.4% after the merged PRs below (92.4% before). The remaining failures are mostly `CHECKPOINT` (949), `BEGIN` (758), DDL and `EXPLAIN`.\n\n**Merged:** #2794 slices, #2795 `==` `**` `~~` and chained signs, #2797 digit separators (opt-in), #2798 list comprehensions, #2799 FROM-first and `TABLE t` as query operands, #2801 star modifiers and trailing comma, #2802 `LIMIT 10%` and `TABLESAMPLE`, #2803 QUALIFY after WINDOW, `OVER (w ...)`, FILTER without WHERE.\n\n### Queries\n- [ ] `EXPORT_STATE` with an alias: `SELECT sum(x) EXPORT_STATE s FROM t` (308 test statements)\n- [ ] Nested types in casts: `NULL::MAP(INT[], VARCHAR[])`, `CAST(x AS UNION(a INT, b VARCHAR))`, `(42,)::TUPLE(INTEGER)` (169)\n- [ ] Integer division `//`: `SELECT 7 // 2` (43); `//` currently starts a line comment (Snowflake), so this likely needs a dialect switch\n- [ ] Recursive CTE with `USING KEY`: `WITH RECURSIVE r(n) USING KEY (n) AS (...)` (41)\n- [ ] Keywords as names: `SELECT a AS current`, `t.when`, `(v.outer).a`, `CREATE SCHEMA parent` (~50)\n- [ ] `DESCRIBE` / `SUMMARIZE` as a subquery: `SELECT * FROM (DESCRIBE SELECT 1)`\n- [ ] Prefix alias: `SELECT j : 42`, `SELECT \"a b\" : 42`\n- [ ] Unpacked `*COLUMNS(...)`: `SELECT *COLUMNS(*)`, `[*COLUMNS(*)]`, `x IN (*COLUMNS(*))` (11)\n- [ ] `GROUP BY` mixing `GROUPING SETS` with other elements: `GROUP BY a, GROUPING SETS (b, ())`, `GROUPING SETS (a), GROUPING SETS (b)` (20); `GroupByElement` keeps expressions and grouping sets in separate lists, so the order cannot be represented\n- [ ] Comparison chaining and postfix null tests: `a \u003c> b IS NULL`, `CAST(1=1 AS VARCHAR)`, `1 IS NOT NULL = TRUE`, `1 = 1 IS DISTINCT FROM FALSE`, `a NOT NULL`\n- [ ] Operators and literals: `s ^@ 'x'` (starts with), `BITSTRING'0101'`, `xor(1, 2)`\n- [ ] `EXCLUDE` with string literals: `* EXCLUDE ('i')`, `* EXCLUDE 'i'`\n- [ ] `PIVOT_WIDER` / `PIVOT_LONGER`\n\n### DDL\n- [ ] Nested types in column definitions: `UNION(i INT, s VARCHAR)`, `MAP(VARCHAR, STRUCT(z INTEGER))`, `STRUCT(i INTEGER)`, `ROW(i INTEGER)`\n- [ ] `CREATE TYPE name AS \u003ctype>` (`AS STRUCT(...)`, `AS BIGINT`; `AS ENUM` already works) and `DROP TYPE [IF EXISTS]`\n- [ ] Generated column without a type: `total AS (price * 2)`\n- [ ] `DROP MACRO [TABLE] name`, `COMMENT ON MACRO [TABLE] name IS '...'`\n- [ ] `ALTER TABLE` on nested fields: `ADD COLUMN s.element.k INTEGER`, `RENAME s.i TO v1`; `ALTER a SET TYPE BIGINT USING a + 1`\n- [ ] `CREATE [PERSISTENT] SECRET [IF NOT EXISTS] name (TYPE s3, ...)`, `DROP SECRET`\n\n### DML\n- [ ] `INSERT OR IGNORE INTO ...`\n- [ ] `MERGE INTO t USING s USING (id) WHEN MATCHED THEN UPDATE WHEN NOT MATCHED THEN INSERT` (`USING (cols)` and actions without `SET` / `VALUES`; 42)\n\n### Utility statements\n- [ ] `CHECKPOINT [db]`, `FORCE CHECKPOINT` (976)\n- [ ] `BEGIN [TRANSACTION] [READ ONLY]`, `ABORT` (764)\n- [ ] `EXPLAIN` of non-SELECT statements: `EXPLAIN DROP TABLE t`, `EXPLAIN EXECUTE q`\n- [ ] `VACUUM [ANALYZE] [t]`, `ANALYZE [t]`\n- [ ] `USE db.schema`, `SET GLOBAL threads TO 4`, `UPDATE EXTENSIONS`\n- [ ] `EXPORT DATABASE 'dir' (FORMAT parquet)`, `COPY FROM DATABASE a TO b`\n\n### Newer than DuckDB 1.5\nDuckDB's development branch also tests syntax that 1.5 rejects, e.g. `JOIN BY (TYPE MARK)`, `NEAREST k BY DISTANCE`, `CREATE TRIGGER`, method calls on literals (`'abc'.upper()`). These can wait for a DuckDB release.\n\n","author":{"url":"https://github.com/guizmaii","@type":"Person","name":"guizmaii"},"datePublished":"2026-10-13T10:08:00Z","url":"https://github.com/JSQLParser/JSqlParser/issues/2804"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e56a3737-7c84-b8ae-3113-66a5bd22b050 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9AC:3EC9BF:9DFA7B:DD03DD:6B042EA9 |
| html-safe-nonce | 4e269cffeeb3164a87b630010334660cea218326c32aa5f74aaffde55510a5ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUFDOjNFQzlCRjo5REZBN0I6REQwM0REOjZCMDQyRUE5IiwidmlzaXRvcl9pZCI6IjIyMDk5ODU2Njc0NDkyMzcxNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 109ab86c8b1449c95d8d080c9d22b8edb8be4f57660cf93e285c4e412b849433 |
| hovercard-subject-tag | issue:5828426040 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSQLParser/JSqlParser/2804/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3941d3b72c1623abb6a81063a96c548f264b92e3b1ecc6ef23cfa3534da75bbe/JSQLParser/JSqlParser/issues/2804 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3941d3b72c1623abb6a81063a96c548f264b92e3b1ecc6ef23cfa3534da75bbe/JSQLParser/JSqlParser/issues/2804 |
| og:image:alt | Tracking what JSqlParser still needs to parse DuckDB 1.5 SQL. Each item below is accepted by DuckDB 1.5.6's parser and fails on master. How it was measured: every statement ok / query block of Duck... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | guizmaii |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git |
| octolytics-dimension-user_id | 4643847 |
| octolytics-dimension-user_login | JSQLParser |
| octolytics-dimension-repository_id | 1944709 |
| octolytics-dimension-repository_nwo | JSQLParser/JSqlParser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1944709 |
| octolytics-dimension-repository_network_root_nwo | JSQLParser/JSqlParser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width