sqlglot breaking changes
Updated December 4, 2026
On this page
Latest version 30.38.0, released December 4, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 29.0.0 to 30.31.0: 777 breaking changes in 32 versions.
- From 28.0.0 to 30.31.0: 801 breaking changes in 33 versions.
sqlglot 30.31.0 breaking changes
- Default changed
NormalizationStrategy.CASE_INSENSITIVE_EXCEPT_TABLES
BigQuery's identifier normalization moved into a new base Dialect strategy, CASE_INSENSITIVE_EXCEPT_TABLES, which is now BigQuery's default. Code relying on the previous BigQuery normalization may see different identifier casing. github.com - Signature changed
sqlglot.expressions.core.Mod.arg_types
Was arg_types: dict[str, bool]; now arg_types. pypi.org - Signature changed
sqlglot.parser.build_mod
Was def build_mod(args: BuilderArgs) -> exp.Mod; now def build_mod(args: BuilderArgs, dialect: Dialect) -> exp.Mod. pypi.org
sqlglot 30.30.0 breaking changes
- Behavior changed
The optimizer now respects input column precedence in HAVING and QUALIFY clauses, which can change optimized output for existing queries. Review optimized SQL that uses these clauses. github.com
sqlglot 30.29.0 breaking changes
- Behavior changed
SQLite IS and IS NOT with a non-trivial right-hand expression are now parsed as null-safe equality (IS [NOT] DISTINCT FROM), so transpiled output changes. IS NULL, IS NOT NULL and IS TRUE are unchanged. github.com
sqlglot 30.27.0 breaking changes
- Behavior changed
For DuckDB 2.0 and later, the ~ operator is parsed as RegexpLike, which matches anywhere in the string, instead of RegexpFullMatch. Code that relies on the old whole-string match for DuckDB 2.0+ output should be reviewed. github.com
sqlglot 30.26.0 breaking changes
- Behavior changed
Set operation types are now resolved during annotation and require expanded set operation projections, which can change optimizer output for existing code. github.com - Behavior changed
INTERSECT precedence in set operations now respects the dialect, and redundant SQLite subquery wrappers are removed, which changes generated SQL for existing queries. github.com - Behavior changed
The bare LOCALTIMESTAMP token now parses to CurrentTimestamp, matching LOCALTIMESTAMP(), so output for other dialects changes from the literal keyword. github.com - Behavior changed
Snowflake time format elements are now parsed case-insensitively, and unpadded day parsing is preserved. Existing queries that relied on the old handling may produce different output. github.com - Behavior changed
The optimizer propagates nested unknown types and preserves empty array element types, which can change type annotations for existing code. github.com - Signature changed
sqlglot.generators.snowflake.SnowflakeParser.SCHEMA_UNNAMED_CONSTRAINTS
Was SCHEMA_UNNAMED_CONSTRAINTS: t.ClassVar; now SCHEMA_UNNAMED_CONSTRAINTS. pypi.org - Signature changed
sqlglot.Parser.parse_set_operation
Was def parse_set_operation(self, this: exp.Expr | None, consume_pipe: bool = False) -> exp.Expr | None; now def parse_set_operation(self, this: exp.Expr | None, consume_pipe: bool = False, intersect_only: bool = False) -> exp.SetOperation... pypi.org - Signature changed
sqlglot.parser.Parser.parse_set_operation
Was def parse_set_operation(self, this: exp.Expr | None, consume_pipe: bool = False) -> exp.Expr | None; now def parse_set_operation(self, this: exp.Expr | None, consume_pipe: bool = False, intersect_only: bool = False) -> exp.SetOperation... pypi.org
sqlglot 30.25.0 breaking changes
- Behavior changed
When the optimizer removes redundant casts, it now keeps grouping, which can change optimized query output. github.com - Behavior changed
Hex SHA2 hashes in Postgres now transpile using ENCODE(..., 'hex') and SHA256 is parsed as a digest, which changes generated SQL. github.com - Behavior changed
The optimizer now annotates scopes only after qualification finishes, which can change optimizer output for existing queries. github.com - Behavior changed
Column types in VALUES are now inferred from every row instead of only the first, which can change typed results such as division output. github.com - Signature changed
sqlglot.expressions.builders.Column.parts
Was parts: list[Identifier | Star]; now parts: list[Expr]. pypi.org - Signature changed
sqlglot.expressions.builders.Column.to_dot
Was def to_dot(self, include_dots: bool = True) -> Dot | Identifier | Star; now def to_dot(self, include_dots: bool = True) -> Expr. pypi.org - Signature changed
sqlglot.expressions.core.Column.parts
Was parts: list[Identifier | Star]; now parts: list[Expr]. pypi.org - Signature changed
sqlglot.expressions.core.Column.to_dot
Was def to_dot(self, include_dots: bool = True) -> Dot | Identifier | Star; now def to_dot(self, include_dots: bool = True) -> Expr. pypi.org - Signature changed
sqlglot.generator.Generator.join_sql
Was def join_sql(self, expression: exp.Join) -> str; now def join_sql(self, expression: exp.Join, join_op: str | None = None) -> str. pypi.org - Signature changed
sqlglot.Generator.join_sql
Was def join_sql(self, expression: exp.Join) -> str; now def join_sql(self, expression: exp.Join, join_op: str | None = None) -> str. pypi.org
Older versions
28 older versions, each with its first changes. Sign up to see every change
Show 28 older versions
sqlglot 30.24.0 breaking changes
- Renamed
SortArray
SortArray is merged into ArraySort, and generators now emit an equivalent sort or report it unsupported instead of moving NULLs. Use ArraySort in place of SortArray. github.com - Behavior changed
IS predicates and DISTINCT FROM operands are now grouped at dialect-specific comparison precedence, so SQL that parsed before may now group differently. Check queries that mix IS with other operators. github.com
And 2 more in this version.
sqlglot 30.23.0 breaking changes
- Behavior changed
Type inference for temporal interval arithmetic in the DuckDB dialect changed. Check code that relies on the previous inferred types. github.com - Behavior changed
The hash flag for case-sensitive expression nodes changed, so code that depends on the previous hash values or node equality may behave differently. github.com
And 2 more in this version.
sqlglot 30.22.0 breaking changes
- Removed
infer_schema
The optimizer no longer provides infer_schema, and schema arguments such as in lineage are now required. Code that calls infer_schema or omits the schema must be updated. github.com - Behavior changed
Bracket flags are now kept when serializing generated SQL, which changes output. github.com
And 32 more in this version.
sqlglot 30.21.0 breaking changes
- Behavior changed
The optimizer's projection pushdown uses a new algorithm, which may change optimized output. github.com - Behavior changed
Backslash escapes in Snowflake string literals are decoded, and malformed escapes now raise a TokenError. github.com
And 15 more in this version.
sqlglot 30.20.0 breaking changes
- Behavior changed
The merge_subqueries optimizer rule now prevents exponential AST growth, which changes optimized query output. github.com - Behavior changed
The optimizer now annotates bit_or output types for DuckDB, which can change inferred types in existing code. github.com
And 8 more in this version.
sqlglot 30.19.0 breaking changes
- Removed
remove_unused_selections
The remove_unused_selections flag is gone; code passing it to pushdown_projections will fail. github.com - Renamed
union scope type
The scope type previously named union is now called set operation; code matching the old name must be updated. github.com
And 29 more in this version.
sqlglot 30.18.0 breaking changes
- Behavior changed
MOD is generated with different precedence, so SQL that mixes % with other operators may now produce different output. Review such expressions after upgrading. github.com - Behavior changed
Structured ARRAY, OBJECT and MAP types are emitted as parsed on CREATE instead of being rewritten. Check generated Snowflake DDL that relied on the old flattening. github.com
And 13 more in this version.
sqlglot 30.17.0 breaking changes
- Behavior changed
Delimited names in generated SQL are now escaped, so output text for such names may change. github.com - Behavior changed
The optimizer now annotates the PostgreSQL width_bucket function with types, which can change inferred types in existing code. github.com
And 10 more in this version.
sqlglot 30.16.0 breaking changes
- Behavior changed
The optimizer now annotates the Grouping function for Databricks, which changes inferred types. github.com - Behavior changed
The optimizer annotates TO_CHAR for Spark, which changes inferred types. github.com
And 27 more in this version.
sqlglot 30.15.0 breaking changes
- Behavior changed
A source with a chain of PIVOT or UNPIVOT operators now feeds each operator the previous output. Star expansion no longer expands through operators on a table joined next to a pivoted one. github.com - Behavior changed
SOUNDS LIKE is parsed as token sequences now, and NOT SOUNDS LIKE handling was removed. github.com
And 14 more in this version.
sqlglot 30.14.0 breaking changes
- Behavior changed
Star expansion in the optimizer no longer produces duplicate expanded aliases, which changes output column names. github.com - Behavior changed
Type annotation for CONVERT_TZ in MySQL changed, which can alter inferred types. github.com
And 13 more in this version.
sqlglot 30.13.0 breaking changes
- Behavior changed
Spark and Hive month and day formats are parsed strictly, so generated SQL for lax formats changes. github.com - Behavior changed
ILIKE in Druid SQL is now kept as ILIKE instead of being rewritten, so transpiled output changes. github.com
And 14 more in this version.
sqlglot 30.12.0 breaking changes
- Behavior changed
In pretty mode, consecutive comments are now separated by newlines instead of spaces, changing generated output. github.com - Behavior changed
The parser now handles quoting of JSON path keys differently, which can change parsed output for existing queries. github.com
And 6 more in this version.
sqlglot 30.11.0 breaking changes
- Behavior changed
GET_JSON_OBJECT
The Databricks dialect's GET_JSON_OBJECT now roundtrips differently, so generated SQL for this function may change. github.com - Behavior changed
simplify_concat
The optimizer's simplify_concat now sets ConcatWs arguments correctly, so simplified output may differ for code that relied on the old behavior. github.com
And 1 more in this version.
sqlglot 30.10.0 breaking changes
- Behavior changed
CLUSTER BY no longer accepts ordering such as DESC, which is not valid syntax in Hive, Databricks or Snowflake. Parentheses in generated CLUSTER BY SQL now follow one consistent rule for CREATE and ALTER, so code that depends on the old... github.com - Signature changed
sqlglot.expressions.query.Cluster
Was class Cluster(Order); now class Cluster(Expression). pypi.org
sqlglot 30.9.0 breaking changes
- Renamed
Distance3d
The Postgres expression Distance3d was renamed to DistanceNd. Code referencing the old name must be updated. github.com - Behavior changed
Ranking window functions now have fixed return types, and PostgreSQL NTILE returns INT and Redshift RANK returns INT, which can change inferred column types. github.com
And 9 more in this version.
sqlglot 30.8.0 breaking changes
- Behavior changed
First and Last are now registered in Hive type annotation, so inferred types of these functions change. github.com - Behavior changed
The HH12 time format mapping for Redshift was changed, so generated output for HH12 formats differs. github.com
And 19 more in this version.
sqlglot 30.7.0 breaking changes
- Behavior changed
The Presto generator emits SUBSTR for the Substr expression rather than SUBSTRING. Code that matches the generated SQL text must be updated. github.com - Behavior changed
Pretty-printed SQL keeps newlines inside identifiers unindented. Code that depends on the old indentation of identifier text must be updated. github.com
And 15 more in this version.
sqlglot 30.6.0 breaking changes
- Behavior changed
The package's Python generator is compiled with mypyc in this release, which changes how the package is built and installed. The commit message alone does not state a user-facing API change, so check the release for any affected behavior. github.com
sqlglot 30.5.0 breaking changes
- Behavior changed
StarRocks now keeps LEFT SEMI JOIN and LEFT ANTI JOIN as native syntax instead of rewriting them. Code that expects the old rewritten output must be updated. github.com - Behavior changed
BigQuery AI scalar functions are now represented by typed nodes instead of generic function nodes, so code that inspects the parsed tree may need updates. github.com
And 3 more in this version.
sqlglot 30.4.2 breaking changes
- Signature changed
sqlglot.schema.ensure_column_mapping
Was def ensure_column_mapping(mapping: ColumnMapping | None) -> dict[str, None] | dict[str, str]; now def ensure_column_mapping(mapping: ColumnMapping | None) -> dict. pypi.org
sqlglot 30.3.0 breaking changes
- Behavior changed
LEFT
Transpiling Snowflake LEFT to DuckDB now uses a different implementation, including for BINARY and BLOB arguments, so existing output may change. github.com - Behavior changed
TO_NUMBER
Snowflake TO_DECIMAL, TO_NUMBER and NUMERIC transpilation was changed, so existing transpiled SQL may produce different output. github.com
And 217 more in this version.
sqlglot 30.2.0 breaking changes
- Default changed
update
update now defaults to copy=True, so it returns a modified copy instead of changing the original expression. Code that relied on in-place modification must pass copy=False. github.com - Signature changed
sqlglot.alias
Was def alias_(expression: ExpOrStr, alias: t.Optional[str | Identifier], table: bool | Sequence[str | Identifier] = False, quoted: t.Optional[bool] = None, dialect: DialectType = None, copy: bool = True, **opts: t.Any) -> Expr; now def... pypi.org
And 59 more in this version.
sqlglot 30.1.0 breaking changes
- Behavior changed
The base Generator was compiled with mypyc; the _Generator metaclass was removed, which may affect code relying on it. github.com - Behavior changed
JSON extract parsing was refactored, which may change parsed output for existing code. github.com
And 67 more in this version.
sqlglot 30.0.2 breaking changes
- Behavior changed
Comment text containing */ or /* is now escaped in output for every dialect, not only dialects with nested comments, so generated SQL comments can differ from before. Check any code that depends on the exact comment text in generated SQL. github.com
sqlglot 30.0.0 breaking changes
- Removed
ParserCore
The ParserCore class was moved back into Parser, so code importing ParserCore must use Parser instead. github.com - Renamed
Parser
The base Parser was renamed so dialect parsers follow the <Dialect>Parser naming, and code importing the old name must update. github.com
And 129 more in this version.
sqlglot 29.0.0 breaking changes
- Behavior changed
The expression core was restructured for mypyc compilation; code relying on its previous internal layout may need updating. github.com - Behavior changed
Enum members are now IntEnum values rather than auto-generated or string values, so code that compares or serializes enum values may need updating. github.com
And 22 more in this version.
sqlglot 28.0.0 breaking changes
- Behavior changed
Transpiled UUID() output from some source dialects is now a varchar cast, which changes generated SQL. github.com - Behavior changed
Pseudocolumns such as LEVEL are treated separately from regular columns, which can change optimizer output. github.com
And 12 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.