unstale

pypi / sqlglot

sqlglot

What changed in sqlglot 30, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

69 breaking46 new APIs and options6 performance17 behavior and defaults1 tooling269 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

sqlglot 30408 changes

Breaking changes 69

  • Teradata now uses CASE_INSENSITIVE as its normalization strategy.

    30.31.0release notes

  • HAVING and QUALIFY now respect input column precedence, which may change how columns in these clauses are resolved.

    30.30.0release notes

  • The optimizer no longer hoists subqueries across anonymous function boundaries.

    30.30.0release notes

  • Preserves row presence when decorrelating scalar aggregates.

    30.29.0release notes

  • DuckDB parsing now treats ~ as a partial regex match, changing how SQL using this operator is interpreted.

    30.27.0release notes

  • Set operation parsing respects the dialect's INTERSECT precedence.

    30.26.0release notes

  • Snowflake parsing treats LOCALTIMESTAMP as CURRENT_TIMESTAMP.

    30.26.0release notes

  • Unknown types are propagated through nested types during optimization.

    30.26.0release notes

  • DuckDB adds missing words to its reserved keywords, affecting how those words are parsed.

    30.26.0release notes

  • Set operation types are resolved during annotation, changing when type information becomes available.

    30.26.0release notes

  • The optimizer no longer folds decimal division by zero.

    30.25.0release notes

  • DuckDB drops the SQL/JSON clauses of JSON_ARRAY and JSON_OBJECT.

    30.25.0release notes

  • Compiled code now supports non-identifier column parts, changing how these column references are handled.

    30.25.0release notes

  • Removing redundant casts now preserves grouping.

    30.25.0release notes

  • Scope annotation is deferred until qualification is complete.

    30.25.0release notes

  • Postgres transpilation emits hex SHA2 hashes with ENCODE(..., 'hex'), and SHA256 parses as a digest.

    30.25.0release notes

  • Column types are now coerced across all rows of a VALUES expression.

    30.25.0release notes

  • SortArray is merged into ArraySort, with explicit NULL ordering.

    30.24.0release notes

  • StarRocks no longer treats # as a comment.

    30.24.0release notes

  • Parsing now respects dialect precedence for IS predicates.

    30.24.0release notes

  • StarRocks no longer defaults column names for multi-array UNNEST.

    30.24.0release notes

  • SortArray is merged into ArraySort; update code that uses the former expression.

    30.24.0release notes

  • Hashing now accounts for the case-sensitivity flag on expression nodes, changing hashes for affected nodes.

    30.23.0release notes

  • ClickHouse generation uses JSONExtractRaw for JSON-valued extraction.

    30.23.0release notes

  • DuckDB type inference now returns correct types for temporal interval arithmetic.

    30.23.0release notes

  • Teradata now defaults the window aggregate frame to the whole partition.

    30.23.0release notes

  • Correlated UNNEST fields are resolved from projection types.

    30.22.0release notes

  • infer_schema is removed from the optimizer.

    30.22.0release notes

  • Integer division truncates toward zero instead of rounding.

    30.22.0release notes

  • Preserved function names are scoped to their dialect.

    30.22.0release notes

  • Nested join constructs are expanded during table qualification.

    30.22.0release notes

  • Star expansion follows the order of sources in FROM and expands USING columns first.

    30.22.0release notes

  • String escape decoding and preservation are corrected across BigQuery, MySQL, Hive, Drill, PostgreSQL, DuckDB, Redshift, and ClickHouse.

    30.22.0release notes

  • Spark converts ARRAY_INSERT positions when translating between 0-based and 1-based dialects.

    30.21.0release notes

  • Athena inherits Trino dialect, parser, and generator defaults.

    30.21.0release notes

  • Backslash escape sequences in string literals are decoded for Snowflake.

    30.21.0release notes

  • Projection pushdown uses a new algorithm, which may change optimizer results.

    30.21.0release notes

  • Avoids generating AUTOINCREMENT without a primary key in SQLite.

    30.20.0release notes

  • Retains JSON string literals.

    30.20.0release notes

  • Uses a row-preserving default projection for windowed aggregates.

    30.20.0release notes

  • Collapsing CASE and IF preserves precedence.

    30.19.0release notes

  • Constants are propagated only through non-nullable columns.

    30.19.0release notes

  • Simplification folds contradictory comparisons to FALSE only for non-null columns.

    30.19.0release notes

  • The optimizer treats EXISTS over a scalar aggregate as always true.

    30.19.0release notes

  • EXISTS decorrelation no longer fans out over grouped subqueries.

    30.19.0release notes

  • Parsing preserves the order of CUBE, ROLLUP, and GROUPING SETS in GROUP BY.

    30.19.0release notes

  • Fabric transpiles the JSON type to varchar(max), similar to XML.

    30.19.0release notes

  • merge_subqueries no longer folds set-returning projections.

    30.19.0release notes

  • Fabric transpilation keeps scale and length for these types.

    30.19.0release notes

  • MySQL no longer emits implicit NULLS FIRST for UNIQUE/INDEX key parts.

    30.19.0release notes

  • The parser raises on a duplicate OFFSET instead of overwriting it.

    30.19.0release notes

  • Pagination scope is preserved in set operations.

    30.19.0release notes

  • The optimizer honors positional column aliases declared on derived tables and CTEs.

    30.19.0release notes

  • Replacing aliases preserves precedence during predicate pushdown.

    30.19.0release notes

  • Simplification avoids rewriting RIGHT JOIN ... ON TRUE to CROSS JOIN.

    30.19.0release notes

  • The optimizer qualifies bare right-hand table column references in SEMI/ANTI join ON clauses.

    30.19.0release notes

  • The union scope type is renamed to set operation for consistency; update code that refers to the old type.

    30.19.0release notes

  • GROUP BY no longer consumes query modifiers during parsing.

    30.18.0release notes

  • ClickHouse generates native lag instead of lagInFrame.

    30.18.0release notes

  • The executor returns NULL from POW instead of raising.

    30.18.0release notes

  • Structured types are no longer dropped on CREATE TABLE.

    30.18.0release notes

  • DML and DDL query fragments are scoped properly.

    30.17.0release notes

  • Delimited names such as strings are escaped.

    30.17.0release notes

  • Projection pushdown no longer prunes implicit GROUP BY ALL keys.

    30.17.0release notes

  • The optimizer no longer prunes columns referenced by GROUP BY, HAVING, or QUALIFY.

    30.17.0release notes

  • The optimizer does not prune projections under INTERSECT/EXCEPT ALL or GROUP BY ALL.

    30.17.0release notes

  • The executor uses fullmatch LIKE semantics.

    30.17.0release notes

  • The optimizer stops optimizing OR-conditioned joins and anti joins, changing the results of optimization for these queries.

    30.17.0release notes

  • Shadowed clause column references are represented as qualified Columns.

    30.17.0release notes

New APIs and options 46

  • Adds the CASE_INSENSITIVE_EXCEPT_TALBES normalization strategy as a breaking change.

    30.31.0release notes

  • Snowflake supports the TO_JSON varchar type.

    30.31.0release notes

  • The Teradata dialect can parse EXECUTE macro calls.

    30.31.0release notes

  • The Teradata dialect can parse TITLE display headings.

    30.31.0release notes

  • Adds Snowflake support for IGNORE GRANTS.

    30.30.0release notes

  • Snowflake support was added for SCOPED TEMPORARY objects.

    30.29.0release notes

  • Adds the REF data type for named references.

    30.27.0release notes

  • The parser supports PER (...) on aggregate functions.

    30.26.0release notes

  • StarRocks blacklist and TRANSLATE TRINO statements are parsed as commands.

    30.25.0release notes

  • DuckDB v2 CONNECT and DISCONNECT statements are supported.

    30.25.0release notes

  • DuckDB NEAREST joins are now supported.

    30.25.0release notes

  • DuckDB SQL trigger bodies can now be parsed.

    30.25.0release notes

  • The optimizer adds PASTE JOIN support.

    30.24.0release notes

  • StarRocks admin and job-control statements are parsed as commands.

    30.24.0release notes

  • StarRocks now supports AGGREGATE KEY tables.

    30.23.0release notes

  • MySQL now supports named FOREIGN KEY indexes.

    30.23.0release notes

  • Doris parsing now supports full-text search operators.

    30.23.0release notes

  • StarRocks now supports HLL columns and the HLL_UNION aggregation type.

    30.23.0release notes

  • Databricks now supports MATCH_RECOGNIZE.

    30.23.0release notes

  • StarRocks parsing now supports REFRESH MATERIALIZED VIEW options.

    30.23.0release notes

  • StarRocks parses TIME_SLICE into exp.TimeSlice.

    30.23.0release notes

  • The MySQL parser supports parsing ASCII and UNICODE.

    30.22.0release notes

  • The optimizer adds a function Mode annotation for DuckDB.

    30.22.0release notes

  • A #schema fixture directive is available to specify schema information.

    30.21.0release notes

  • Adds StarRocks support for IGNORE NULLS and RESPECT NULLS in window functions.

    30.20.0release notes

  • The parser adds support for AGG.

    30.19.0release notes

  • MySQL parsing adds support for ALTER ... COMMENT.

    30.19.0release notes

  • The executor implements FIRST.

    30.19.0release notes

  • The MySQL parser supports index prefixes.

    30.19.0release notes

  • The optimizer annotates the PostgreSQL REPLACE function.

    30.19.0release notes

  • Optimizer support is provided for the Databricks div(a,b) function.

    30.18.0release notes

  • The executor implements DPIPE.

    30.18.0release notes

  • Support is added for explode(map).

    30.18.0release notes

  • Postgres supports LOCK as a command.

    30.18.0release notes

  • Teradata supports mod() function syntax.

    30.18.0release notes

  • The executor supports OFFSET.

    30.18.0release notes

  • Postgres optimizer annotations are added for DECODE, LEFT, REVERSE, OVERLAY, RIGHT, RPAD, SPLIT_PART, TO_HEX, FORMAT, NORMALIZE, TONUMBER, MAKETIME, REGEXPREPLACE, MAKE_TIMESTAMP, BIT_OR, BIT_XOR, and LOCALTIMESTAMP.

    30.18.0release notes

  • Dremio supports the four-argument REGEXP_SPLIT form.

    30.18.0release notes

  • REVERSE is added to the executor environment.

    30.18.0release notes

  • ClickHouse parses trimLeft, trimRight, and trimBoth into Trim.

    30.18.0release notes

  • ClickHouse supports the view() table function.

    30.18.0release notes

  • Databricks parsing supports and and or function syntax.

    30.17.0release notes

  • The executor implements ILIKE.

    30.17.0release notes

  • The executor implements LENGTH.

    30.17.0release notes

  • Trino parsing now supports LOOP, REPEAT, ITERATE, and LEAVE routine statements.

    30.17.0release notes

  • Trino parsing now supports WHILE/DO/END WHILE routine statements.

    30.17.0release notes

Performance 6

  • The optimizer skips comparison pairs that cannot combine during simplify.

    30.31.0release notes

  • Avoids quadratic table resolution in pushdown_dnf.

    30.30.0release notes

  • Indexes the leaf matching set when scoring node pairs to improve diff performance.

    30.27.0release notes

  • Positional column alias mappings are cached to improve optimizer performance.

    30.25.0release notes

  • Prevents exponential AST growth in merge_subqueries.

    30.20.0release notes

  • Dialect classes resolved through the package __getattr__ are cached.

    30.18.0release notes

Behavior and default changes 17

  • Diff edit scripts are kept in a stable order.

    30.27.0release notes

  • Snowflake time format elements are handled case-insensitively.

    30.26.0release notes

  • Snowflake accepts unquoted keyword identifiers during parsing.

    30.26.0release notes

  • DuckDB explicit join types are now normalized.

    30.25.0release notes

  • The optimizer can back-project columns to a single unknown-schema table-valued function.

    30.25.0release notes

  • MySQL parsing now allows constraints without names.

    30.23.0release notes

  • ALTER actions can be optional and actions and options can appear in any order.

    30.22.0release notes

  • The parser now accepts bare ALTER TABLE ... DROP c syntax.

    30.22.0release notes

  • Spark parses dotted column identifiers in column definitions.

    30.22.0release notes

  • BigQuery and TSQL rewrite aggregate FILTER clauses into conditional aggregates.

    30.22.0release notes

  • Optimizer type annotations for these functions are based on their argument type.

    30.22.0release notes

  • Hive supports FROM-first multi-table INSERT syntax.

    30.22.0release notes

  • The parser supports ALTER statements containing mixed operations.

    30.22.0release notes

  • The parser now supports boolean expressions in update assignments.

    30.20.0release notes

  • The optimizer supports a star referencing an outer scope from a correlated subquery.

    30.19.0release notes

  • The optimizer supports decorrelation when non-EQ keys are present.

    30.19.0release notes

  • The executor evaluates subqueries that the optimizer declines to rewrite.

    30.18.0release notes

Tooling 1

Fixes and other changes 269

  • BigQuery preserves struct types inside arrays.

    30.31.0release notes

  • Multi-row VALUES relations are parenthesized for ClickHouse.

    30.31.0release notes

  • TIMESTAMP WITHOUT TIME ZONE is parsed as TIMESTAMP_NTZ.

    30.31.0release notes

  • SQLite transpiles DATE_SUB to DATE with a negated modifier.

    30.31.0release notes

  • The optimizer does not simplify zoned DATE_TRUNC or TIMESTAMP_TRUNC expressions.

    30.31.0release notes

  • Generated INITCAP SQL can be parsed with the DuckDB dialect.

    30.31.0release notes

  • Adding a table invalidates all cached lookups in MappingSchema.

    30.31.0release notes

  • The optimizer preserves source bindings in ORDER BY expressions.

    30.31.0release notes

  • Postgres resolves outer columns before inner table aliases.

    30.31.0release notes

  • DATE_TRUNC preserves its input type when transpiling from Presto to DuckDB.

    30.31.0release notes

  • DISTKEY, SORTKEY, and DISTSTYLE are dropped when generating other dialects.

    30.31.0release notes

  • An omitted REGEXP_REPLACE replacement is handled, including in Postgres.

    30.31.0release notes

  • REINDEX is parsed as a command in SQLite.

    30.31.0release notes

  • Safe division guards are preserved for typed integers.

    30.31.0release notes

  • Generation guards against modulo by zero when transpiling from safe-division dialects.

    30.31.0release notes

  • SAVEPOINT and RELEASE are parsed as commands.

    30.31.0release notes

  • Generation warns about slices in dialects with bracket-quoted identifiers.

    30.31.0release notes

  • The SQLite dialect parses numeric literals with underscore digit separators.

    30.31.0release notes

  • SQLite table options STRICT and WITHOUT ROWID are preserved and parsed.

    30.31.0release notes

  • Postgres reports unsupported star EXCEPT.

    30.31.0release notes

  • Redshift preserves star exclusion in strict transpilation modes.

    30.31.0release notes

  • Spark SUBSTRING with a start of 0 and negative length is handled for DuckDB.

    30.31.0release notes

  • Nested Teradata TITLE function calls are preserved.

    30.31.0release notes

  • The optimizer preserves subqueries with anonymous aggregates in query clauses.

    30.30.0release notes

  • Fixes the type used for BigQuery UNNEST offsets.

    30.30.0release notes

  • The optimizer preserves outer aliases in BY NAME set operations.

    30.30.0release notes

  • Spark preserves data source options in CREATE TABLE statements.

    30.30.0release notes

  • Drops timestamp precision that Databricks does not support.

    30.30.0release notes

  • DuckDB treats an underscore as a digit separator only when it is between two digits.

    30.30.0release notes

  • DuckDB top-n min and max aggregates are now distinguished.

    30.30.0release notes

  • Hive now supports PARTITION BY EXCLUDING in window expressions.

    30.30.0release notes

  • Fixes predicate pushdown for scalar aggregates.

    30.30.0release notes

  • The optimizer skips predicate pushdown for set-returning functions.

    30.30.0release notes

  • The optimizer preserves aggregation when pushing predicates into queries with HAVING and ORDER BY.

    30.30.0release notes

  • The optimizer preserves USING columns when expanding qualified stars.

    30.30.0release notes

  • DuckDB preserves Snowflake and BigQuery regex extraction semantics.

    30.30.0release notes

  • Updates Snowflake grants property handling.

    30.30.0release notes

  • DuckDB transpilation of Snowflake TIME_SLICE now aligns to the epoch origin.

    30.30.0release notes

  • Fixes the Snowflake TO_CHAR type.

    30.30.0release notes

  • SQLite no longer marks the DAY unit as unsupported in DATEDIFF.

    30.30.0release notes

  • The parser now supports TABLE query shorthand.

    30.30.0release notes

  • Skips decorrelation for anonymous functions with unknown semantics.

    30.29.0release notes

  • Prevents an unhandled ValueError in is_int for large exponents.

    30.29.0release notes

  • Fixes merge_subqueries for constant projections having GROUP_BY_ALL.

    30.29.0release notes

  • The parser now allows IN to be used as an identifier.

    30.27.0release notes

  • Fixes DuckDB tokenization of SORT BY.

    30.27.0release notes

  • SQLite parsing now preserves modifiers on parenthesized queries.

    30.27.0release notes

  • The optimizer skips decorrelation for subqueries evaluated after an outer GROUP BY.

    30.27.0release notes

  • Fixes optimizer merging of subqueries involving GROUP BY ALL and window functions.

    30.27.0release notes

  • Oracle ADD_MONTHS preserves the end-of-month date behavior.

    30.26.0release notes

  • The parser accepts ALL in string aggregation.

    30.26.0release notes

  • Snowflake CREATE TABLE parsing supports COPY TAGS.

    30.26.0release notes

  • TSQL no longer crashes while qualifying derived table outputs for a CTE with a non-query body.

    30.26.0release notes

  • DuckDB DATE_DIFF is marked as counting unit boundaries.

    30.26.0release notes

  • Snowflake date truncation types are preserved when translating to DuckDB.

    30.26.0release notes

  • DATEDIFF counts unit boundaries for dialects that use boundary-based semantics.

    30.26.0release notes

  • Snowflake LISTAGG preserves its default separator.

    30.26.0release notes

  • Spark parses LISTAGG through its string aggregation parser.

    30.26.0release notes

  • Postgres named MAKE_INTERVAL arguments are assigned to their corresponding units.

    30.26.0release notes

  • Postgres preserves anonymous MAKE_INTERVAL calls.

    30.26.0release notes

  • Fixes qualified column references for semi and anti joins in the optimizer.

    30.26.0release notes

  • Timestamp arithmetic semantics are preserved.

    30.26.0release notes

  • MySQL TIMESTAMPADD is mapped and supported for transpilation.

    30.26.0release notes

  • Postgres transpiles a case-insensitive regex flag to ~*.

    30.25.0release notes

  • Generated SQL parenthesizes CONCAT paths in JSON arrow operators.

    30.25.0release notes

  • ClickHouse parenthesizes Contains under unary minus.

    30.25.0release notes

  • The optimizer preserves filtered and grouped CROSS JOIN inputs.

    30.25.0release notes

  • The optimizer keeps CROSS JOIN with LIMIT 1 and splits the LEFT JOIN row check.

    30.25.0release notes

  • The parser copies the DataType node for each cast in _replace_lambda.

    30.25.0release notes

  • BigQuery generates EXTRACT(DAYOFWEEK FROM ...) for DayOfWeek.

    30.25.0release notes

  • The last value of an exclusive series with a negative step is retained.

    30.25.0release notes

  • Text is escaped before it is quoted in generated SQL.

    30.25.0release notes

  • The optimizer handles GROUP BY ordinal interpretation in unnested subqueries.

    30.25.0release notes

  • SQLite hexadecimal integer literals are normalized.

    30.25.0release notes

  • The parser now treats the column list after an INSERT target alias as the INSERT's column list.

    30.25.0release notes

  • DuckDB retains the fraction of an interval written as one string.

    30.25.0release notes

  • Unresolved JSON paths are preserved during alias matching.

    30.25.0release notes

  • Oracle JSON_VALUE RETURNING clauses can now be parsed.

    30.25.0release notes

  • The optimizer avoids unsafe LEFT JOIN elimination with DISTINCT ON.

    30.25.0release notes

  • SQLite multi-argument MAX and MIN now parse as GREATEST and LEAST.

    30.25.0release notes

  • Snowflake MERGE ALL BY NAME is supported.

    30.25.0release notes

  • DuckDB retains every path of a multi-path JSON_EXTRACT.

    30.25.0release notes

  • ClickHouse NATURAL JOIN is supported.

    30.25.0release notes

  • A parser infinite-loop issue is fixed.

    30.25.0release notes

  • Optimizer positional renaming now has the proper type.

    30.25.0release notes

  • DuckDB preserves quoted variable names.

    30.25.0release notes

  • SQLite parses REAL and FLOAT as 8-byte DOUBLE.

    30.25.0release notes

  • Oracle now allows non-reserved SAMPLE and MATCH_RECOGNIZE as identifiers.

    30.25.0release notes

  • Unnesting scalar subqueries no longer creates nested aggregates.

    30.25.0release notes

  • Semi/anti join RHS sources are excluded from column resolution.

    30.25.0release notes

  • DuckDB slices with a step now retain the - end placeholder.

    30.25.0release notes

  • The optimizer resolves Snowflake token-splitter columns and BigQuery pivot rows.

    30.25.0release notes

  • SQLite generates functions for temporal casts.

    30.25.0release notes

  • The optimizer annotates struct-valued subqueries and row references.

    30.25.0release notes

  • Unnesting subqueries in JOIN ON now preserves semantics.

    30.25.0release notes

  • Postgres CREATE statements support tablespace clauses.

    30.25.0release notes

  • Databricks SQL generation now preserves timestamp precision.

    30.25.0release notes

  • Optimizer TVF inference preserves row references and aliases.

    30.25.0release notes

  • DuckDB decodes Unicode string escapes into their characters.

    30.25.0release notes

  • The optimizer renames right operand references when aligning UNION BY NAME.

    30.25.0release notes

  • Hive and Spark now parse ALTER TABLE REPLACE COLUMNS.

    30.24.0release notes

  • BigQuery transpilation adds support for APPROX_PERCENTILE, along with Trino date parts, FROM_BASE, ARRAY_SORT, and ARRAY_DISTINCT.

    30.24.0release notes

  • BigQuery transpilation adds support for ARRAY_DISTINCT, along with Trino date parts, FROM_BASE, APPROX_PERCENTILE, and ARRAY_SORT.

    30.24.0release notes

  • BigQuery transpilation adds support for ARRAY_SORT, along with Trino date parts, FROM_BASE, APPROX_PERCENTILE, and ARRAY_DISTINCT.

    30.24.0release notes

  • MySQL parsing respects bitwise operator precedence.

    30.24.0release notes

  • The optimizer registers a CTE reference alias when the CTE is pivoted.

    30.24.0release notes

  • StarRocks transpilation keeps DATEDIFF date-part semantics.

    30.24.0release notes

  • DuckDB generation quotes identifiers that are reserved keywords.

    30.24.0release notes

  • MySQL parsing preserves exclamation mark operator precedence.

    30.24.0release notes

  • BigQuery transpilation adds support for FROM_BASE, along with Trino date parts, APPROX_PERCENTILE, ARRAY_SORT, and ARRAY_DISTINCT.

    30.24.0release notes

  • Simplification and the Postgres generator avoid materializing huge interval literals.

    30.24.0release notes

  • Postgres maps the ISO week format pattern IW.

    30.24.0release notes

  • Postgres maps the ISO week-numbering year format pattern IYYY.

    30.24.0release notes

  • Oracle maps ISO week-numbering year IYYY to %G.

    30.24.0release notes

  • StarRocks transpilation preserves LIKE argument order.

    30.24.0release notes

  • Other dialects drop the Teradata LOCKING request modifier instead of crashing.

    30.24.0release notes

  • StarRocks parses map{...} literals as maps.

    30.24.0release notes

  • The parser now supports PARTITION BY EXCLUDING.

    30.24.0release notes

  • ClickHouse parses PASTE JOIN instead of treating it as a table alias.

    30.24.0release notes

  • BigQuery percentile and distinct-array transpilation is corrected.

    30.24.0release notes

  • StarRocks generates PIVOT instead of dropping it.

    30.24.0release notes

  • MySQL transpilation preserves population and sample aggregate semantics.

    30.24.0release notes

  • Teradata transpilation supports SAMPLE row counts and fractions.

    30.24.0release notes

  • StarRocks infers output columns for static pivots.

    30.24.0release notes

  • StarRocks transpilation preserves the native TO_DAYS function.

    30.24.0release notes

  • BigQuery transpilation adds support for Trino date parts, FROM_BASE, APPROX_PERCENTILE, ARRAY_SORT, and ARRAY_DISTINCT.

    30.24.0release notes

  • MySQL parsing now accounts for relative XOR, OR, and AND precedence.

    30.24.0release notes

  • The optimizer now includes semi/anti join references when identifying alias collisions.

    30.23.0release notes

  • Spark parsing now supports all ALTER TABLE DROP COLUMN forms.

    30.23.0release notes

  • DuckDB translation now treats ARRAY_INSERT at index -1 as append for 1-based arrays.

    30.23.0release notes

  • DuckDB translation converts ARRAY_SLICE endpoints to SLICE lengths.

    30.23.0release notes

  • DuckDB translation casts array elements to text before applying the null replacement.

    30.23.0release notes

  • Athena routes tokenization by each engine's rules when the combined tokenizer fails.

    30.23.0release notes

  • Unnesting a COUNT subquery now keeps the alias outside COALESCE.

    30.23.0release notes

  • Oracle parsing now supports CREATE TABLE physical attributes and storage clauses.

    30.23.0release notes

  • Oracle parsing now supports CREATE TABLE TABLESPACE.

    30.23.0release notes

  • Athena CTAS now allows EXTERNAL FUNCTION.

    30.23.0release notes

  • Oracle flashback timestamps are normalized and their parsing is simplified.

    30.23.0release notes

  • Postgres JSON_VALUE support is improved.

    30.23.0release notes

  • Doris now round-trips MATCH operands and quoted analyzers.

    30.23.0release notes

  • Oracle parsing now handles partition clauses and flashback queries.

    30.23.0release notes

  • Oracle parsing expands alternative quoting and supports national literals.

    30.23.0release notes

  • Oracle tokenization now recognizes q'...' quoted string literals.

    30.23.0release notes

  • When REFRESH falls back to a command, the parser now keeps the whole statement.

    30.23.0release notes

  • ClickHouse transpilation now converts RegexpCount to countMatches.

    30.23.0release notes

  • Placeholder replacements now retain their grouping.

    30.23.0release notes

  • The optimizer now qualifies bare USING columns after SEMI/ANTI JOIN.

    30.23.0release notes

  • The optimizer now qualifies columns for SPLIT_TO_TABLE.

    30.23.0release notes

  • The parser supports dropping multiple columns in one ALTER TABLE DROP.

    30.22.0release notes

  • BigQuery and DuckDB no longer drop array elements after a subquery.

    30.22.0release notes

  • Bracket flags are preserved in generator serialization.

    30.22.0release notes

  • Optimization preserves CASE branches that precede always-true conditions.

    30.22.0release notes

  • Snowflake parsing supports (+) outer join markers.

    30.22.0release notes

  • MySQL retains the CHAR length in CHARACTER SET casts.

    30.22.0release notes

  • An edge case in BigQuery array generation is corrected.

    30.22.0release notes

  • Optimizer column resolution is improved for TVFs, PIVOTs, and Snowflake schemas.

    30.22.0release notes

  • DuckDB transpiles Spark CONCAT_WS on arrays to ARRAY_TO_STRING.

    30.22.0release notes

  • ClickHouse generates POSITION(...) > 0 for Contains.

    30.22.0release notes

  • All OR arms are preserved during DNF pushdown for multi-table branches.

    30.22.0release notes

  • DROP INDEX accepts db.t syntax.

    30.22.0release notes

  • The MySQL parser supports these constructs.

    30.22.0release notes

  • The optimizer qualifies DuckDB list comprehension variables.

    30.22.0release notes

  • ClickHouse parsing supports isInfinite.

    30.22.0release notes

  • ClickHouse maps ISO calendar functions in both directions.

    30.22.0release notes

  • Databricks roundtrips retain LIMIT ALL in recursive CTEs.

    30.22.0release notes

  • Snowflake parsing supports LIST and LS stage commands.

    30.22.0release notes

  • The MySQL parser accepts non-CSV table options and handles misplaced table and index options.

    30.22.0release notes

  • The tokenizer incorporates MySQL rules.

    30.22.0release notes

  • Generation resolves only a query's own ORDER BY aliases when simulating NULLS behavior.

    30.22.0release notes

  • Generation escapes identifier escape characters when generating quoted identifiers.

    30.22.0release notes

  • Optimizer simplification can produce scalar subqueries.

    30.22.0release notes

  • The parser allows SEARCH and CYCLE together, including CYCLE TO ... DEFAULT.

    30.22.0release notes

  • The optimizer annotates sha2 properly for Redshift.

    30.22.0release notes

  • DuckDB transpilation preserves Spark array slice length.

    30.22.0release notes

  • Snowflake support is added for SPLIT_TO_TABLE.

    30.22.0release notes

  • PostgreSQL ^@ is parsed as STARTS_WITH.

    30.22.0release notes

  • The builder allows a None table name for sqlglotc.

    30.22.0release notes

  • TSQL parsing supports bare table hints.

    30.22.0release notes

  • Trino preserves precision for all temporal literals.

    30.22.0release notes

  • Trino roundtrips preserve precision for timestamp and time literals.

    30.22.0release notes

  • ClickHouse generation is added for these functions.

    30.22.0release notes

  • DuckDB reads the UNIFORM seed set by the Databricks parser.

    30.22.0release notes

  • DuckDB generates USING SAMPLE before ORDER BY and LIMIT.

    30.22.0release notes

  • Hive and Spark preserve BD literal semantics.

    30.21.0release notes

  • The optimizer now annotates bit_xor for DuckDB.

    30.21.0release notes

  • Constraint parsing is fixed.

    30.21.0release notes

  • Unqualified semi/anti join columns are bound to the table being joined.

    30.21.0release notes

  • The optimizer qualifies struct paths when aliases conflict and stops lookup at the nearest alias.

    30.21.0release notes

  • The optimizer preserves tautological aggregate filters.

    30.21.0release notes

  • ClickHouse generates varPop for VariancePop.

    30.21.0release notes

  • Postgres keeps WITH ORDINALITY alias columns on LATERAL UNNEST.

    30.21.0release notes

  • Adds optimizer annotation for DuckDB bit_and.

    30.20.0release notes

  • Adds optimizer annotation for DuckDB bit_or.

    30.20.0release notes

  • Preserves grouping when complementing comparisons.

    30.20.0release notes

  • Fixes MySQL roundtripping for DATE_ADD and DATE_SUB.

    30.20.0release notes

  • Preserves GLOBAL JOIN after ON conditions in ClickHouse.

    30.20.0release notes

  • Preserves ordinal ordering when aliases are duplicated.

    30.20.0release notes

  • Avoids accumulating parentheses when merging repeated references.

    30.20.0release notes

  • The parser now handles singular ROW in FETCH and OFFSET clauses.

    30.20.0release notes

  • Preserves time zones for DuckDB TIMESTAMP_FROM_PARTS.

    30.20.0release notes

  • Keeps TRY_TO_NUMBER safe when it falls back to a cast.

    30.20.0release notes

  • Simplification preserves operand order when rewriting COALESCE comparisons.

    30.19.0release notes

  • SQLite transpilation preserves COALESCE concat semantics.

    30.19.0release notes

  • The optimizer preserves COALESCE fallbacks after NULL.

    30.19.0release notes

  • Trino preserves Spark CONCAT_WS array semantics.

    30.19.0release notes

  • Simplification preserves the DuckDB DATE_TRUNC return type.

    30.19.0release notes

  • The executor plans DISTINCT before ORDER BY so the sort survives.

    30.19.0release notes

  • The executor supports DISTINCT calculations.

    30.19.0release notes

  • SQLite evaluates dynamic date-add amounts.

    30.19.0release notes

  • A DynamicIdentifier in Table.name is rendered correctly.

    30.19.0release notes

  • T-SQL parses FORMAT(x, 'ffffff') as a time format.

    30.19.0release notes

  • SQLite transpilation preserves GREATEST/LEAST NULL semantics.

    30.19.0release notes

  • SQLite emits GROUP_CONCAT ORDER BY instead of dropping it.

    30.19.0release notes

  • Trino ignores nulls in percentile ordering.

    30.19.0release notes

  • MySQL keeps the native IF instead of changing it to CASE.

    30.19.0release notes

  • is_star is implemented iteratively.

    30.19.0release notes

  • Generated JSON paths handle single quotes correctly.

    30.19.0release notes

  • Trino-generated JSON_QUERY paths are prefixed with the lax mode specifier.

    30.19.0release notes

  • Simplification moves MONTH/YEAR intervals across a comparison only when the move is exact.

    30.19.0release notes

  • SQLite date differences use the correct nanosecond multiplier.

    30.19.0release notes

  • The parser supports OPERATOR as an implicit alias.

    30.19.0release notes

  • SingleStore ignores nulls in percentile ordering.

    30.19.0release notes

  • The optimizer preserves unreferenced UDTF and anonymous-function projections.

    30.19.0release notes

  • Snowflake parses unquoted PUT sources as exp.Put.

    30.19.0release notes

  • Snowflake supports ROLLBACK as an identifier variable and UDF name.

    30.19.0release notes

  • The optimizer prevents merge_subqueries from folding set-returning projections.

    30.19.0release notes

  • MySQL SHOW CREATE TABLE generation no longer produces a syntax error.

    30.19.0release notes

  • The optimizer retains projections referenced by these clauses.

    30.19.0release notes

  • Spark emits SQL function determinism correctly.

    30.19.0release notes

  • DuckDB transpilation drops TIMESTAMP_LTZ precision.

    30.19.0release notes

  • The optimizer preserves UNION ALL arm width when a nested set operation forces column retention.

    30.19.0release notes

  • MySQL parsing supports UNIQUE with options.

    30.19.0release notes

  • The optimizer preserves columns when the source is a whole-row reference.

    30.19.0release notes

  • The parser supports ANALYZE with multiple tables.

    30.18.0release notes

  • Fixes an AttributeError for this BigQuery expression.

    30.18.0release notes

  • Postgres parses BTRIM as TRIM.

    30.18.0release notes

  • Postgres preserves quoting of the one-byte char type.

    30.18.0release notes

  • Redshift preserves quoting of the one-byte char type.

    30.18.0release notes

  • SQLite preserves COALESCE wrapping when CONCAT is generated as ||.

    30.18.0release notes

  • Snowflake no longer drops structured types when generating CREATE TABLE.

    30.18.0release notes

  • Postgres normalizes DATE_PART unit casing to match EXTRACT.

    30.18.0release notes

  • Postgres keeps the time zone argument of DATE_TRUNC.

    30.18.0release notes

  • BigQuery supports field names that begin with digits.

    30.18.0release notes

  • The parser supports DROP with multiple tables.

    30.18.0release notes

  • The parser accepts a list of tables in DROP TABLE.

    30.18.0release notes

  • exp.cast() no longer crashes when its input is already a cast to INTERVAL.

    30.18.0release notes

  • Starrocks supports parsing and qualifying GENERATE_SERIES.

    30.18.0release notes

  • The parser no longer raises ValueError for GRANT with no privileges.

    30.18.0release notes

  • Spark parsing distinguishes GROUPING SETS suffix syntax.

    30.18.0release notes

  • Postgres maps JSONB_CONTAINS to @> and adds JSONBContainsTopKey.

    30.18.0release notes

  • MySQL supports KEY in a CREATE TABLE column definition.

    30.18.0release notes

  • ClickHouse generates native lead instead of leadInFrame.

    30.18.0release notes

  • MOD is parsed at multiplicative precedence, and generation precedence is corrected.

    30.18.0release notes

  • The executor honors nulls_first when ordering.

    30.18.0release notes

  • SQLite renders RegexpLike as the REGEXP operator.

    30.18.0release notes

  • The parser no longer raises ValueError for REVOKE with no privileges.

    30.18.0release notes

  • Fixes handling of Trino TIME literals that include a timezone.

    30.18.0release notes

  • The executor returns NULL for typed division of NULL.

    30.18.0release notes

  • Dropping an unnamed UNIQUE constraint keeps the table.

    30.18.0release notes

  • The optimizer preserves UNPIVOT passthrough columns.

    30.18.0release notes

  • ClickHouse VALUES tuple wrapping is now idempotent.

    30.18.0release notes

  • MySQL maps the %x and %r date format specifiers.

    30.18.0release notes

  • The optimizer annotates ENCODE for PostgreSQL.

    30.17.0release notes

  • The optimizer annotates LAG for MySQL.

    30.17.0release notes

  • The executor honors the negate flag on LIKE and ILIKE.

    30.17.0release notes

  • SQLite generated columns emit STORED instead of PERSISTED.

    30.17.0release notes

  • The executor truncates typed division only when both operands are integers.

    30.17.0release notes

  • UNION BY NAME is supported properly in qualify and type inference.

    30.17.0release notes

  • The optimizer annotates WIDTH_BUCKET for PostgreSQL.

    30.17.0release notes