1
0
Fork 0
sqlglot/CHANGELOG.md
Daniel Baumann efc1e37108
Merging upstream version 10.0.8.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-13 14:54:32 +01:00

4 KiB

Changelog

v10.0.0

Changes:

  • Breaking: replaced SQLGlot annotations with comments. Now comments can be preserved after transpilation, and they can appear in other places besides SELECT's expressions.

  • Breaking: renamed list_get to seq_get.

  • Breaking: activated mypy type checking for SQLGlot.

  • New: Azure Databricks support.

  • New: placeholders can now be replaced in an expression.

  • New: null safe equal operator (<=>).

  • New: SET statements for MySQL.

  • New: SHOW commands for MySQL.

  • New: FORMAT function for TSQL.

  • New: CROSS APPLY / OUTER APPLY support for TSQL.

  • New: added formats for TSQL's DATENAME/DATEPART functions.

  • New: added styles for TSQL's CONVERT function.

  • Improvement: refactored the schema to be more lenient; before it needed to do an exact match of db.table, now it finds table if there are no ambiguities.

  • Improvement: allow functions to inherit their arguments' types, so that annotating CASE, IF etc. is possible.

  • Improvement: allow joining with same names in the python executor.

  • Improvement: the "using" field can now be set for the join expression builders.

  • Improvement: qualify_columns now qualifies only non-alias columns in the having clause.

v9.0.0

Changes:

  • Breaking : Changed AST hierarchy of exp.Table with exp.Alias. Before Tables were children's of their aliases, but in order to simplify the AST and fix some issues, Tables now have an alias property.

v8.0.0

Changes:

  • Breaking : New add_table method in Schema ABC.

  • New: SQLGlot now supports the PySpark dataframe API. This is still relatively experimental.

v7.1.0

Changes:

  • Improvement: Pretty generator now takes max_text_width which breaks segments into new lines

  • New: exp.to_table helper to turn table names into table expression objects

  • New: int[] type parsers

  • New: annotations are now generated in sql

v7.0.0

Changes:

  • Breaking: DISTINCT within functions now take in multiple values eg. COUNT(DISTINCT a, b). exp.Distinct no longer uses this and now uses the expressions property

  • New: Expression False kwargs are now excluded from equality checks

  • New: Parse DESCRIBE and CREATE SCHEMA

  • New: DELETE and VALUES builder

  • New: Unused CTE and JOINS are now removed in the optimizer

v6.3.0

Changes:

  • New: Snowflake table literals

  • New: Anti and semi joins

  • New: Vacuum as a command

  • New: Stored procedures

  • New: Reweriting derived tables as CTES

  • Improvement: Various clickhouse improvements

  • Improvement: Optimizer predicate pushdown

  • Breaking: DATE_DIFF default renamed to DATEDIFF

v6.2.0

Changes:

  • New: TSQL support

  • Breaking: Removed $ from tokenizer, added @ placeholders

  • Improvement: Nodes can now be removed in transform and replace 8cd81c3

  • Improvement: Snowflake timestamp support

  • Improvement: Property conversion for CTAS Builder

  • Improvement: Tokenizers are now unique per dialect instance

v6.1.0

Changes:

  • New: mysql group_concat separator 49a4099

  • Improvement: Better nested select parsing 45603f