sqlglot 30.34.0__tar.gz → 30.35.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sqlglot-30.34.0 → sqlglot-30.35.0}/CHANGELOG.md +139 -0
- {sqlglot-30.34.0/sqlglot.egg-info → sqlglot-30.35.0}/PKG-INFO +3 -3
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/_version.py +3 -3
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/athena.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/clickhouse.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/dialect.py +33 -10
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/duckdb.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/postgres.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/presto.py +6 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/snowflake.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/spark.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/trino.py +11 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/array.py +5 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/core.py +4 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/ddl.py +4 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/query.py +4 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generator.py +32 -10
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/athena.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/bigquery.py +104 -2
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/presto.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/snowflake.py +2 -1
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/spark.py +0 -5
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/trino.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/tsql.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/annotate_types.py +15 -5
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/eliminate_ctes.py +5 -2
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/eliminate_subqueries.py +7 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/merge_subqueries.py +4 -2
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/pushdown_projections.py +6 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/qualify_columns.py +65 -2
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/scope.py +17 -2
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parser.py +44 -9
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/athena.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/bigquery.py +22 -14
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/trino.py +28 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/transforms.py +36 -16
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/__init__.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/bigquery.py +6 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/presto.py +1 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0/sqlglot.egg-info}/PKG-INFO +3 -3
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot.egg-info/requires.txt +2 -2
- sqlglot-30.35.0/sqlglot.egg-info/scm_version.json +8 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_athena.py +9 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_bigquery.py +213 -7
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_dialect.py +16 -1
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_snowflake.py +9 -8
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_trino.py +43 -1
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_columns.sql +26 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_columns__invalid.sql +3 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_build.py +3 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_lineage.py +9 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_optimizer.py +84 -6
- sqlglot-30.34.0/sqlglot.egg-info/scm_version.json +0 -8
- {sqlglot-30.34.0 → sqlglot-30.35.0}/.gitignore +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/.gitmodules +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/.gitpod.yml +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/.pre-commit-config.yaml +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/AGENTS.md +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/CLAUDE.md +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/CONTRIBUTING.md +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/LICENSE +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/MANIFEST.in +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/Makefile +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/README.md +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/pyproject.toml +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/setup.cfg +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/setup.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/__main__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/_typing.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/anonymize.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/bigquery.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/databricks.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/dax.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/doris.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/dremio.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/drill.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/druid.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/dune.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/exasol.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/fabric.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/hive.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/materialize.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/mysql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/oracle.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/prql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/redshift.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/risingwave.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/singlestore.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/solr.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/spark2.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/sqlite.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/starrocks.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/tableau.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/teradata.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/dialects/tsql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/diff.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/errors.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/executor/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/executor/context.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/executor/env.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/executor/python.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/executor/table.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/aggregate.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/builders.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/constraints.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/datatypes.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/dml.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/functions.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/json.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/math.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/properties.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/string.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/expressions/temporal.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/clickhouse.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/databricks.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/dax.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/doris.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/dremio.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/drill.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/druid.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/duckdb.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/dune.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/exasol.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/fabric.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/hive.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/materialize.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/mysql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/oracle.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/postgres.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/prql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/python.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/redshift.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/risingwave.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/singlestore.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/solr.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/spark2.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/sqlite.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/starrocks.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/tableau.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/generators/teradata.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/helper.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/jsonpath.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/lineage.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/canonicalize.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/canonicalize_internal_names.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/eliminate_joins.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/helpers.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/isolate_table_selects.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/journal.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/normalize.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/normalize_identifiers.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/optimize_joins.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/optimizer.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/pushdown_predicates.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/qualify.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/qualify_tables.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/resolver.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/simplify.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/optimizer/unnest_subqueries.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/base.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/clickhouse.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/databricks.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/dax.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/doris.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/dremio.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/drill.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/druid.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/duckdb.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/dune.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/exasol.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/fabric.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/hive.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/materialize.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/mysql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/oracle.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/postgres.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/presto.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/prql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/redshift.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/risingwave.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/singlestore.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/snowflake.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/solr.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/spark.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/spark2.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/sqlite.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/starrocks.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/tableau.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/teradata.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/parsers/tsql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/planner.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/py.typed +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/schema.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/serde.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/time.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/tokenizer_core.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/tokens.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/trie.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/clickhouse.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/databricks.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/duckdb.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/hive.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/mysql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/postgres.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/redshift.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/snowflake.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/spark.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/spark2.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/sqlite.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot/typing/tsql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot.egg-info/SOURCES.txt +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot.egg-info/dependency_links.txt +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot.egg-info/scm_file_list.json +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot.egg-info/top_level.txt +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglot.png +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglotc/MANIFEST.in +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglotc/pyproject.toml +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/sqlglotc/setup.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_clickhouse.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_databricks.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_dax.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_doris.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_dremio.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_drill.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_druid.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_duckdb.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_dune.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_exasol.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_fabric.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_hive.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_materialize.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_mysql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_oracle.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_pipe_syntax.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_postgres.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_presto.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_prql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_redshift.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_risingwave.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_singlestore.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_solr.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_spark.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_sqlite.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_starrocks.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_tableau.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_teradata.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/dialects/test_tsql.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/identity.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/jsonpath/LICENSE +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/jsonpath/cts.json +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/annotate_functions.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/annotate_types.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/canonicalize.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/canonicalize_internal_names.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/eliminate_ctes.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/eliminate_joins.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/eliminate_subqueries.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/isolate_table_selects.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/merge_subqueries.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/normalize.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/normalize_identifiers.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/optimize_joins.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/optimizer.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/pushdown_cte_alias_columns.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/pushdown_predicates.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/pushdown_projections.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_columns__with_invisible.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_columns_ddl.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_tables.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/quote_identifiers.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/simplify.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/call_center.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/catalog_page.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/catalog_returns.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/catalog_sales.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/customer.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/customer_address.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/customer_demographics.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/date_dim.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/household_demographics.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/income_band.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/inventory.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/item.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/promotion.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/reason.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/ship_mode.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/store.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/store_returns.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/store_sales.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/time_dim.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/tpc-ds.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/warehouse.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/web_page.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/web_returns.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/web_sales.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/web_site.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/customer.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/lineitem.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/nation.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/orders.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/part.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/partsupp.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/region.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/supplier.csv.gz +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/tpc-h.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/unnest_subqueries.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/partial.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/fixtures/pretty.sql +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/gen_fixtures.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/helpers.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/leakcheck.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/sqlglot/__init__.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_anonymize.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_dialect_entry_points.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_dialect_imports.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_diff.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_docs.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_errors.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_executor.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_expressions.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_generator.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_helper.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_integration_loader.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_jsonpath.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_optimize_cross_joins.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_parser.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_schema.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_serde.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_simplify_between.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_sqlglotc.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_time.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_tokens.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_transforms.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_transpile.py +0 -0
- {sqlglot-30.34.0 → sqlglot-30.35.0}/tests/test_typing.py +0 -0
|
@@ -1,6 +1,144 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## [v30.34.0] - 2026-11-23
|
|
5
|
+
### :boom: BREAKING CHANGES
|
|
6
|
+
- due to [`534375c`](https://github.com/tobymao/sqlglot/commit/534375c62cffff607953f7ca69f4a5d6ad74e7be) - preserve inferred result types when simplifying conditionals [CODEX] *(PR [#9231](https://github.com/tobymao/sqlglot/pull/9231) by [@georgesittas](https://github.com/georgesittas))*:
|
|
7
|
+
|
|
8
|
+
preserve inferred result types when simplifying conditionals [CODEX] (#9231)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### :sparkles: New Features
|
|
12
|
+
- [`8966e17`](https://github.com/tobymao/sqlglot/commit/8966e17169eca9d5fab65b5e608b1feee7e76e3a) - **mysql**: add FIND_IN_SET function support *(PR [#9192](https://github.com/tobymao/sqlglot/pull/9192) by [@gouruprakarsha-pixel](https://github.com/gouruprakarsha-pixel))*
|
|
13
|
+
- [`a59724c`](https://github.com/tobymao/sqlglot/commit/a59724cdf3a05f061e4faceae3f28ba59b9e28b7) - **databricks**: support MERGE WITH SCHEMA EVOLUTION [CODEX] *(PR [#9195](https://github.com/tobymao/sqlglot/pull/9195) by [@Walkeer](https://github.com/Walkeer))*
|
|
14
|
+
- [`c08ee70`](https://github.com/tobymao/sqlglot/commit/c08ee7092b4f66bf81e5d028d088731224d3ce7a) - **teradata**: parse integer postfix casts [CODEX] *(PR [#9198](https://github.com/tobymao/sqlglot/pull/9198) by [@Walkeer](https://github.com/Walkeer))*
|
|
15
|
+
- [`7891fa2`](https://github.com/tobymao/sqlglot/commit/7891fa2aafa0c6c938a2859fe7b340bbedb0d47d) - **databricks**: support FULL, WHERE, and ZORDER BY in OPTIMIZE [CODEX] *(PR [#9229](https://github.com/tobymao/sqlglot/pull/9229) by [@georgesittas](https://github.com/georgesittas))*
|
|
16
|
+
- [`f843832`](https://github.com/tobymao/sqlglot/commit/f8438321ae8632b7a40160601e7b429ea6f3f693) - **duckdb**: parse LIST_INTERSECT and LIST_SLICE as ArrayIntersect and ArraySlice *(PR [#9232](https://github.com/tobymao/sqlglot/pull/9232) by [@pellurusaranya-byte](https://github.com/pellurusaranya-byte))*
|
|
17
|
+
- [`8630c15`](https://github.com/tobymao/sqlglot/commit/8630c15bfbb4b6d6a77895375da50d605be2cc9d) - **bigquery**: infer FLOAT64 for ST_X and ST_Y *(PR [#9268](https://github.com/tobymao/sqlglot/pull/9268) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
|
|
18
|
+
- [`b5bd9ff`](https://github.com/tobymao/sqlglot/commit/b5bd9ff50aaec1679a0866a946655cb0f6770362) - **Bigquery**: Add fix for BigQuery trunc return type *(PR [#9294](https://github.com/tobymao/sqlglot/pull/9294) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
|
|
19
|
+
- [`09a454d`](https://github.com/tobymao/sqlglot/commit/09a454dde013bfcbe372a87875e57dbaafb598ba) - **sqlite**: support ON CONFLICT constraint modifier *(PR [#9292](https://github.com/tobymao/sqlglot/pull/9292) by [@treysp](https://github.com/treysp))*
|
|
20
|
+
- :arrow_lower_right: *addresses issue [#9282](https://github.com/tobymao/sqlglot/issues/9282) opened by [@InnoxCodes](https://github.com/InnoxCodes)*
|
|
21
|
+
- [`dab55c1`](https://github.com/tobymao/sqlglot/commit/dab55c101e7f4cc7fc2b1b4ce4c5e20012d9a600) - **Bigquery**: Add fix for BQ STRUCT dot fields *(PR [#9298](https://github.com/tobymao/sqlglot/pull/9298) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
|
|
22
|
+
|
|
23
|
+
### :bug: Bug Fixes
|
|
24
|
+
- [`7962de2`](https://github.com/tobymao/sqlglot/commit/7962de2e18350a90a4f0ea97ab65cc41e02f20bc) - preserve SQLite integer literal division *(PR [#9180](https://github.com/tobymao/sqlglot/pull/9180) by [@hemtilva](https://github.com/hemtilva))*
|
|
25
|
+
- :arrow_lower_right: *fixes issue [#9179](https://github.com/tobymao/sqlglot/issues/9179) opened by [@hemtilva](https://github.com/hemtilva)*
|
|
26
|
+
- [`2f73bdb`](https://github.com/tobymao/sqlglot/commit/2f73bdbce88711e502d9d319641bfb1d39a396e1) - **sqlite**: preserve fractional seconds in strftime formats *(PR [#9178](https://github.com/tobymao/sqlglot/pull/9178) by [@georgesittas](https://github.com/georgesittas))*
|
|
27
|
+
- :arrow_lower_right: *fixes issue [#9178](https://github.com/tobymao/sqlglot/issues/9178) opened by [@hemtilva](https://github.com/hemtilva)*
|
|
28
|
+
- [`709b6c0`](https://github.com/tobymao/sqlglot/commit/709b6c0f58b38a5561ae5ebbebbacfa787f480be) - **sqlite**: preserve NUL-terminated LENGTH in DuckDB *(PR [#9182](https://github.com/tobymao/sqlglot/pull/9182) by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm))*
|
|
29
|
+
- :arrow_lower_right: *fixes issue [#9181](https://github.com/tobymao/sqlglot/issues/9181) opened by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm)*
|
|
30
|
+
- [`48871a3`](https://github.com/tobymao/sqlglot/commit/48871a3ba46d8450bf0ffad879774299f8bfe76a) - **sqlite**: preserve character length across dialects *(PR [#9183](https://github.com/tobymao/sqlglot/pull/9183) by [@georgesittas](https://github.com/georgesittas))*
|
|
31
|
+
- [`3721a79`](https://github.com/tobymao/sqlglot/commit/3721a79d71d7f7b4dd3c8f08e56fbe527d45eb5b) - **parser**: preserve comments after dots in table names *(PR [#9186](https://github.com/tobymao/sqlglot/pull/9186) by [@georgesittas](https://github.com/georgesittas))*
|
|
32
|
+
- [`eb11aec`](https://github.com/tobymao/sqlglot/commit/eb11aec4be8cb2122afe713a4816662c3f0fb2fa) - **sqlite**: parse variadic IIF and IF calls [CODEX] *(PR [#9187](https://github.com/tobymao/sqlglot/pull/9187) by [@prathamchoksi](https://github.com/prathamchoksi))*
|
|
33
|
+
- [`c62f4d6`](https://github.com/tobymao/sqlglot/commit/c62f4d6c0872432466d7c78f618c16e880b17329) - **snowflake**: support CREATE HYBRID TABLE parsing *(PR [#9191](https://github.com/tobymao/sqlglot/pull/9191) by [@mattiethecat](https://github.com/mattiethecat))*
|
|
34
|
+
- [`d30884d`](https://github.com/tobymao/sqlglot/commit/d30884dc8521cf1f612ec37604b5091f78d37b30) - **optimizer**: unnest membership in WHERE CASE conditions [CODEX] *(PR [#9193](https://github.com/tobymao/sqlglot/pull/9193) by [@georgesittas](https://github.com/georgesittas))*
|
|
35
|
+
- :arrow_lower_right: *fixes issue [#9190](https://github.com/tobymao/sqlglot/issues/9190) opened by [@joeharris76](https://github.com/joeharris76)*
|
|
36
|
+
- [`f36da3f`](https://github.com/tobymao/sqlglot/commit/f36da3fa8c02bdd66fd1b9a04aadae923eb96bfa) - **dialect**: warn when TRY_CAST falls back to a lossy CAST *(PR [#9197](https://github.com/tobymao/sqlglot/pull/9197) by [@saanvimundra](https://github.com/saanvimundra))*
|
|
37
|
+
- :arrow_lower_right: *fixes issue [#9196](https://github.com/tobymao/sqlglot/issues/9196) opened by [@saanvimundra](https://github.com/saanvimundra)*
|
|
38
|
+
- [`b4babf3`](https://github.com/tobymao/sqlglot/commit/b4babf3a77de205a0ed39c5781754b355c39fd02) - **duckdb**: preserve column qualifiers in PIVOT sources [CODEX] *(PR [#9201](https://github.com/tobymao/sqlglot/pull/9201) by [@CarlosRicGuerrero](https://github.com/CarlosRicGuerrero))*
|
|
39
|
+
- [`7398909`](https://github.com/tobymao/sqlglot/commit/7398909ffaf3e84ca46e2d22fa6080daae1f1bdd) - **postgres**: parse CARDINALITY as ArraySize [CLAUDE] *(PR [#9200](https://github.com/tobymao/sqlglot/pull/9200) by [@DilinaSasmitha97](https://github.com/DilinaSasmitha97))*
|
|
40
|
+
- [`83622a5`](https://github.com/tobymao/sqlglot/commit/83622a5303e3bd707f03fd2ea5cf5656963eed84) - **sqlite**: treat negative LIMIT as no limit [CLAUDE] *(PR [#9207](https://github.com/tobymao/sqlglot/pull/9207) by [@EnesSoydan](https://github.com/EnesSoydan))*
|
|
41
|
+
- :arrow_lower_right: *fixes issue [#9206](https://github.com/tobymao/sqlglot/issues/9206) opened by [@EnesSoydan](https://github.com/EnesSoydan)*
|
|
42
|
+
- [`3ce7c4f`](https://github.com/tobymao/sqlglot/commit/3ce7c4f8b2486f0d59d76bd0f54c72fbbf60e813) - **optimizer**: infer element types for lateral EXPLODE aliases *(PR [#9203](https://github.com/tobymao/sqlglot/pull/9203) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
|
|
43
|
+
- [`4441feb`](https://github.com/tobymao/sqlglot/commit/4441feb979ebd62913ce481a66b50bcdc20961e5) - **exasol**: support HASHTYPE data types *(PR [#9209](https://github.com/tobymao/sqlglot/pull/9209) by [@tanmay-satija](https://github.com/tanmay-satija))*
|
|
44
|
+
- :arrow_lower_right: *fixes issue [#9199](https://github.com/tobymao/sqlglot/issues/9199) opened by [@Hfuegl](https://github.com/Hfuegl)*
|
|
45
|
+
- [`947af87`](https://github.com/tobymao/sqlglot/commit/947af8722fa3eff4e45549d452177c97db0a6aa0) - **postgres**: parse and generate MAKE_DATE as DateFromParts *(PR [#9213](https://github.com/tobymao/sqlglot/pull/9213) by [@DilinaSasmitha97](https://github.com/DilinaSasmitha97))*
|
|
46
|
+
- [`87bb5d3`](https://github.com/tobymao/sqlglot/commit/87bb5d3d7e06a934e72f72041abc8314a42be7fb) - **presto**: transpile ADD_MONTHS to DATE_ADD *(PR [#9208](https://github.com/tobymao/sqlglot/pull/9208) by [@ashwanth-12](https://github.com/ashwanth-12))*
|
|
47
|
+
- [`6bc660f`](https://github.com/tobymao/sqlglot/commit/6bc660fdb74837c098892a11c8558883328bf2ad) - **mysql**: parse MID as Substring *(PR [#9215](https://github.com/tobymao/sqlglot/pull/9215) by [@shivangithaker-0510](https://github.com/shivangithaker-0510))*
|
|
48
|
+
- [`32fa2f1`](https://github.com/tobymao/sqlglot/commit/32fa2f1a12adfd97efb196d4d866fcf878b88eaa) - **postgres**: return an empty string for a negative LEFT/RIGHT length *(PR [#9219](https://github.com/tobymao/sqlglot/pull/9219) by [@GOUTHAM018-MAKER](https://github.com/GOUTHAM018-MAKER))*
|
|
49
|
+
- [`9359d41`](https://github.com/tobymao/sqlglot/commit/9359d41541ba83ab66d3acf16dec3f899cfcd741) - **duckdb**: transpile SQL-standard SIMILAR TO patterns to DuckDB *(PR [#9212](https://github.com/tobymao/sqlglot/pull/9212) by [@Divisht10](https://github.com/Divisht10))*
|
|
50
|
+
- :arrow_lower_right: *fixes issue [#9211](https://github.com/tobymao/sqlglot/issues/9211) opened by [@Divisht10](https://github.com/Divisht10)*
|
|
51
|
+
- [`d4f68af`](https://github.com/tobymao/sqlglot/commit/d4f68af87f9f238f269fc470c2860dc1d0caffde) - **sqlite**: parse 'now' as the current date/timestamp [CLAUDE] *(PR [#9222](https://github.com/tobymao/sqlglot/pull/9222) by [@EnesSoydan](https://github.com/EnesSoydan))*
|
|
52
|
+
- :arrow_lower_right: *fixes issue [#9221](https://github.com/tobymao/sqlglot/issues/9221) opened by [@EnesSoydan](https://github.com/EnesSoydan)*
|
|
53
|
+
- [`b94427d`](https://github.com/tobymao/sqlglot/commit/b94427dab0a9affa4b3ce6377379006e1be90a37) - **bigquery**: fold ARRAY_SORT and ARRAY_DISTINCT over a filtered ARRAY_AGG *(PR [#9217](https://github.com/tobymao/sqlglot/pull/9217) by [@VaggelisD](https://github.com/VaggelisD))*
|
|
54
|
+
- [`cce3935`](https://github.com/tobymao/sqlglot/commit/cce39351f339f2f684e9925b8afbc7caafbdd448) - **teradata**: parse DELETE ALL [CODEX] *(PR [#9228](https://github.com/tobymao/sqlglot/pull/9228) by [@Walkeer](https://github.com/Walkeer))*
|
|
55
|
+
- [`534375c`](https://github.com/tobymao/sqlglot/commit/534375c62cffff607953f7ca69f4a5d6ad74e7be) - **optimizer**: preserve inferred result types when simplifying conditionals [CODEX] *(PR [#9231](https://github.com/tobymao/sqlglot/pull/9231) by [@georgesittas](https://github.com/georgesittas))*
|
|
56
|
+
- :arrow_lower_right: *fixes issue [#9216](https://github.com/tobymao/sqlglot/issues/9216) opened by [@shivangithaker-0510](https://github.com/shivangithaker-0510)*
|
|
57
|
+
- [`374f0e6`](https://github.com/tobymao/sqlglot/commit/374f0e67dcda5681ce4e9fc14ce20f1e679cbf98) - **teradata**: parse period bound functions [CODEX] *(PR [#9233](https://github.com/tobymao/sqlglot/pull/9233) by [@Walkeer](https://github.com/Walkeer))*
|
|
58
|
+
- [`1055c0a`](https://github.com/tobymao/sqlglot/commit/1055c0a657cb5d260f32d43678cfeddc569a91ee) - **sqlite**: preserve fractional RAND semantics *(commit by [@georgesittas](https://github.com/georgesittas))*
|
|
59
|
+
- :arrow_lower_right: *fixes issue [#9234](https://github.com/tobymao/sqlglot/issues/9234) opened by [@LeelaMeenakshi](https://github.com/LeelaMeenakshi)*
|
|
60
|
+
- [`d53acff`](https://github.com/tobymao/sqlglot/commit/d53acffcf3ab0cb8ae8da9151b740e0a59d52baf) - **teradata**: retain implicit INSERT value sources *(PR [#9239](https://github.com/tobymao/sqlglot/pull/9239) by [@Walkeer](https://github.com/Walkeer))*
|
|
61
|
+
- [`2d2f1b9`](https://github.com/tobymao/sqlglot/commit/2d2f1b9216c68b3c8f058f9b0648f03defea5c6e) - **sqlite**: preserve result types in interval arithmetic *(PR [#9240](https://github.com/tobymao/sqlglot/pull/9240) by [@georgesittas](https://github.com/georgesittas))*
|
|
62
|
+
- :arrow_lower_right: *fixes issue [#9235](https://github.com/tobymao/sqlglot/issues/9235) opened by [@EnesSoydan](https://github.com/EnesSoydan)*
|
|
63
|
+
- [`b7df239`](https://github.com/tobymao/sqlglot/commit/b7df239748c3ac753117d31368d8f23a8477dc2f) - **optimizer**: raise OptimizeError for a positional reference to a star *(PR [#9241](https://github.com/tobymao/sqlglot/pull/9241) by [@barakalon](https://github.com/barakalon))*
|
|
64
|
+
- [`670dd01`](https://github.com/tobymao/sqlglot/commit/670dd01c53e7d4a9beb426e76a4a982010f07af7) - **postgres**: parse the @ absolute value operator [CLAUDE] *(PR [#9245](https://github.com/tobymao/sqlglot/pull/9245) by [@Pratik-Kumar-Dhakar](https://github.com/Pratik-Kumar-Dhakar))*
|
|
65
|
+
- :arrow_lower_right: *fixes issue [#9244](https://github.com/tobymao/sqlglot/issues/9244) opened by [@Pratik-Kumar-Dhakar](https://github.com/Pratik-Kumar-Dhakar)*
|
|
66
|
+
- [`9951ad2`](https://github.com/tobymao/sqlglot/commit/9951ad252d0ef17bab744b94fcb8f90ba6bbf858) - **snowflake**: tokenize unquoted stage paths and file:// URIs as a single token *(PR [#9243](https://github.com/tobymao/sqlglot/pull/9243) by [@kyle-cheung](https://github.com/kyle-cheung))*
|
|
67
|
+
- :arrow_lower_right: *fixes issue [#9242](https://github.com/tobymao/sqlglot/issues/9242) opened by [@kyle-cheung](https://github.com/kyle-cheung)*
|
|
68
|
+
- [`54f33fb`](https://github.com/tobymao/sqlglot/commit/54f33fbfe9461729181dde1404b7e73bc026cedb) - **postgres**: respect prefix root operator precedence *(PR [#9252](https://github.com/tobymao/sqlglot/pull/9252) by [@georgesittas](https://github.com/georgesittas))*
|
|
69
|
+
- :arrow_lower_right: *fixes issue [#9248](https://github.com/tobymao/sqlglot/issues/9248) opened by [@Pratik-Kumar-Dhakar](https://github.com/Pratik-Kumar-Dhakar)*
|
|
70
|
+
- [`b34d8ed`](https://github.com/tobymao/sqlglot/commit/b34d8ed7a317476b24527cfca2733f2e5aeb270c) - **parser**: correct READ UNCOMMITTED isolation level spelling *(PR [#9251](https://github.com/tobymao/sqlglot/pull/9251) by [@AnvitAggarwal](https://github.com/AnvitAggarwal))*
|
|
71
|
+
- [`2deb754`](https://github.com/tobymao/sqlglot/commit/2deb754793ee39a69c2535b198b5b07d2cf04f31) - **postgres**: generate valid JSON object aggregates *(PR [#9254](https://github.com/tobymao/sqlglot/pull/9254) by [@georgesittas](https://github.com/georgesittas))*
|
|
72
|
+
- :arrow_lower_right: *fixes issue [#9246](https://github.com/tobymao/sqlglot/issues/9246) opened by [@Pratik-Kumar-Dhakar](https://github.com/Pratik-Kumar-Dhakar)*
|
|
73
|
+
- [`8196308`](https://github.com/tobymao/sqlglot/commit/8196308d406ac2ad2dec0b212f7395c6130679e1) - **postgres**: parse LISTEN, NOTIFY, UNLISTEN, DEALLOCATE and DISCARD as commands [CLAUDE] *(PR [#9261](https://github.com/tobymao/sqlglot/pull/9261) by [@Pratik-Kumar-Dhakar](https://github.com/Pratik-Kumar-Dhakar))*
|
|
74
|
+
- :arrow_lower_right: *fixes issue [#9260](https://github.com/tobymao/sqlglot/issues/9260) opened by [@Pratik-Kumar-Dhakar](https://github.com/Pratik-Kumar-Dhakar)*
|
|
75
|
+
- [`c6707fb`](https://github.com/tobymao/sqlglot/commit/c6707fb4564140f587e7361c3e7dadebd54b189a) - **snowflake**: simplify unquoted stage path tokenization *(PR [#9257](https://github.com/tobymao/sqlglot/pull/9257) by [@georgesittas](https://github.com/georgesittas))*
|
|
76
|
+
- [`b812ff9`](https://github.com/tobymao/sqlglot/commit/b812ff95afa2ab7ab925f95edd5d97c4b761cec9) - Add tests and fix Databricks split part annotate type *(PR [#9265](https://github.com/tobymao/sqlglot/pull/9265) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
|
|
77
|
+
- [`0fc1041`](https://github.com/tobymao/sqlglot/commit/0fc1041b68f30a6aab14b3301cb6fe0467fea662) - **sqlite**: wrap parenthesized set operation operands *(PR [#9285](https://github.com/tobymao/sqlglot/pull/9285) by [@georgesittas](https://github.com/georgesittas))*
|
|
78
|
+
- :arrow_lower_right: *fixes issue [#9269](https://github.com/tobymao/sqlglot/issues/9269) opened by [@joeharris76](https://github.com/joeharris76)*
|
|
79
|
+
- [`d4bc034`](https://github.com/tobymao/sqlglot/commit/d4bc0349170b37a55fcbe640692144314e288645) - **sqlite**: omit empty GROUP BY from global aggregates *(PR [#9286](https://github.com/tobymao/sqlglot/pull/9286) by [@georgesittas](https://github.com/georgesittas))*
|
|
80
|
+
- :arrow_lower_right: *fixes issue [#9270](https://github.com/tobymao/sqlglot/issues/9270) opened by [@joeharris76](https://github.com/joeharris76)*
|
|
81
|
+
- [`271fc0b`](https://github.com/tobymao/sqlglot/commit/271fc0b60a24b638b7312f35a6a49a33d5121557) - **optimizer**: compare date literals at midnight with timestamps [CODEX] *(PR [#9263](https://github.com/tobymao/sqlglot/pull/9263) by [@georgesittas](https://github.com/georgesittas))*
|
|
82
|
+
- :arrow_lower_right: *fixes issue [#9247](https://github.com/tobymao/sqlglot/issues/9247) opened by [@Pratik-Kumar-Dhakar](https://github.com/Pratik-Kumar-Dhakar)*
|
|
83
|
+
- [`679c8c9`](https://github.com/tobymao/sqlglot/commit/679c8c9949fc71f718739e2d8cc33a2426270f63) - **sqlite**: count calendar day boundaries in DATEDIFF *(PR [#9287](https://github.com/tobymao/sqlglot/pull/9287) by [@georgesittas](https://github.com/georgesittas))*
|
|
84
|
+
- :arrow_lower_right: *fixes issue [#9271](https://github.com/tobymao/sqlglot/issues/9271) opened by [@joeharris76](https://github.com/joeharris76)*
|
|
85
|
+
- [`d2de3ce`](https://github.com/tobymao/sqlglot/commit/d2de3cec78a040ddc994ad7a60f3aff6dae76693) - **postgres**: Preserve optional precision for current time and timestamp *(PR [#9290](https://github.com/tobymao/sqlglot/pull/9290) by [@georgesittas](https://github.com/georgesittas))*
|
|
86
|
+
- :arrow_lower_right: *fixes issue [#9276](https://github.com/tobymao/sqlglot/issues/9276) opened by [@JabberWocky-22](https://github.com/JabberWocky-22)*
|
|
87
|
+
- [`ca0d953`](https://github.com/tobymao/sqlglot/commit/ca0d9539429c0e5e94aad1dbaa2a8138604951c7) - **postgres**: preserve DATE_PART semantics and EXTRACT result types *(PR [#9288](https://github.com/tobymao/sqlglot/pull/9288) by [@georgesittas](https://github.com/georgesittas))*
|
|
88
|
+
- :arrow_lower_right: *fixes issue [#9272](https://github.com/tobymao/sqlglot/issues/9272) opened by [@joeharris76](https://github.com/joeharris76)*
|
|
89
|
+
- [`1e2ef67`](https://github.com/tobymao/sqlglot/commit/1e2ef67a93528584c3643bb87ec545311e6a3e20) - **postgres**: decode Unicode-escaped identifiers [CODEX] *(PR [#9289](https://github.com/tobymao/sqlglot/pull/9289) by [@georgesittas](https://github.com/georgesittas))*
|
|
90
|
+
- :arrow_lower_right: *fixes issue [#9273](https://github.com/tobymao/sqlglot/issues/9273) opened by [@tdsmith](https://github.com/tdsmith)*
|
|
91
|
+
- [`f95fca8`](https://github.com/tobymao/sqlglot/commit/f95fca8a6a9b34faabc05f31109f6fb10d051f40) - **clickhouse**: resolve dotted references to projection aliases [CODEX] *(PR [#9293](https://github.com/tobymao/sqlglot/pull/9293) by [@georgesittas](https://github.com/georgesittas))*
|
|
92
|
+
- :arrow_lower_right: *fixes issue [#9279](https://github.com/tobymao/sqlglot/issues/9279) opened by [@jwhitaker-gridcog](https://github.com/jwhitaker-gridcog)*
|
|
93
|
+
- [`41fce8b`](https://github.com/tobymao/sqlglot/commit/41fce8b04bf905919abc23dcf4eb8a45643b2cb9) - **sqlite**: parse END transaction aliases as COMMIT *(PR [#9297](https://github.com/tobymao/sqlglot/pull/9297) by [@georgesittas](https://github.com/georgesittas))*
|
|
94
|
+
- :arrow_lower_right: *fixes issue [#9280](https://github.com/tobymao/sqlglot/issues/9280) opened by [@InnoxCodes](https://github.com/InnoxCodes)*
|
|
95
|
+
- [`68ef75b`](https://github.com/tobymao/sqlglot/commit/68ef75b2b6e6d1223115f16c9ff257fea662ab5c) - **sqlite**: support conflict resolution in UPDATE statements *(PR [#9296](https://github.com/tobymao/sqlglot/pull/9296) by [@georgesittas](https://github.com/georgesittas))*
|
|
96
|
+
- :arrow_lower_right: *fixes issue [#9281](https://github.com/tobymao/sqlglot/issues/9281) opened by [@InnoxCodes](https://github.com/InnoxCodes)*
|
|
97
|
+
- [`dc4afaf`](https://github.com/tobymao/sqlglot/commit/dc4afaf5c9a6748a004998ed13e3b438e20e431e) - **parser**: distinguish TOP identifiers from row limits *(PR [#9295](https://github.com/tobymao/sqlglot/pull/9295) by [@georgesittas](https://github.com/georgesittas))*
|
|
98
|
+
- :arrow_lower_right: *fixes issue [#9284](https://github.com/tobymao/sqlglot/issues/9284) opened by [@Master-Norna](https://github.com/Master-Norna)*
|
|
99
|
+
- [`089891f`](https://github.com/tobymao/sqlglot/commit/089891f2521780e2c5b243005017af9db62f25a6) - **optimizer**: alias unnamed subquery projections with exp.Alias *(PR [#9299](https://github.com/tobymao/sqlglot/pull/9299) by [@barakalon](https://github.com/barakalon))*
|
|
100
|
+
- [`ffcb648`](https://github.com/tobymao/sqlglot/commit/ffcb648293db4fce5cfabf42faded3ef0da72768) - **parser**: reject commas after TOP clauses *(PR [#9315](https://github.com/tobymao/sqlglot/pull/9315) by [@georgesittas](https://github.com/georgesittas))*
|
|
101
|
+
- :arrow_lower_right: *fixes issue [#9300](https://github.com/tobymao/sqlglot/issues/9300) opened by [@Master-Norna](https://github.com/Master-Norna)*
|
|
102
|
+
- [`7adae87`](https://github.com/tobymao/sqlglot/commit/7adae875c036dae90fa8a043f23c64f76406d3c3) - **sqlite**: preserve timezone-aware timestamp casts in date arithmetic *(PR [#9318](https://github.com/tobymao/sqlglot/pull/9318) by [@georgesittas](https://github.com/georgesittas))*
|
|
103
|
+
- :arrow_lower_right: *fixes issue [#9304](https://github.com/tobymao/sqlglot/issues/9304) opened by [@joeharris76](https://github.com/joeharris76)*
|
|
104
|
+
- [`2f42ed3`](https://github.com/tobymao/sqlglot/commit/2f42ed3fe2acda934293465b58dfe6315381ca3d) - **duckdb**: preserve parentheses in ordered-set percentile arguments *(PR [#9319](https://github.com/tobymao/sqlglot/pull/9319) by [@georgesittas](https://github.com/georgesittas))*
|
|
105
|
+
- :arrow_lower_right: *fixes issue [#9305](https://github.com/tobymao/sqlglot/issues/9305) opened by [@jackie-h](https://github.com/jackie-h)*
|
|
106
|
+
- [`9d192fa`](https://github.com/tobymao/sqlglot/commit/9d192fa79446d968d5f0fdd5cae19a31217687aa) - **spark**: map ISODOW to DOW_ISO in EXTRACT *(PR [#9321](https://github.com/tobymao/sqlglot/pull/9321) by [@georgesittas](https://github.com/georgesittas))*
|
|
107
|
+
- :arrow_lower_right: *fixes issue [#9307](https://github.com/tobymao/sqlglot/issues/9307) opened by [@jackie-h](https://github.com/jackie-h)*
|
|
108
|
+
- [`5c0943b`](https://github.com/tobymao/sqlglot/commit/5c0943b65871f471cf78163a2614c8ad7174f582) - **sqlite**: clamp calendar intervals at month end [CODEX] *(PR [#9316](https://github.com/tobymao/sqlglot/pull/9316) by [@georgesittas](https://github.com/georgesittas))*
|
|
109
|
+
- :arrow_lower_right: *fixes issue [#9302](https://github.com/tobymao/sqlglot/issues/9302) opened by [@joeharris76](https://github.com/joeharris76)*
|
|
110
|
+
- [`c6ef895`](https://github.com/tobymao/sqlglot/commit/c6ef895430c3ee7d5d29c9c3cabd07e04064d372) - **spark**: preserve exact ordered percentiles *(PR [#9320](https://github.com/tobymao/sqlglot/pull/9320) by [@georgesittas](https://github.com/georgesittas))*
|
|
111
|
+
- :arrow_lower_right: *fixes issue [#9306](https://github.com/tobymao/sqlglot/issues/9306) opened by [@jackie-h](https://github.com/jackie-h)*
|
|
112
|
+
- [`b503505`](https://github.com/tobymao/sqlglot/commit/b503505dc36e9ba9c3baad7425428d94eabc0c97) - **sqlite**: flag ambiguous calendar interval arithmetic *(PR [#9317](https://github.com/tobymao/sqlglot/pull/9317) by [@georgesittas](https://github.com/georgesittas))*
|
|
113
|
+
- :arrow_lower_right: *fixes issue [#9303](https://github.com/tobymao/sqlglot/issues/9303) opened by [@joeharris76](https://github.com/joeharris76)*
|
|
114
|
+
- [`7698324`](https://github.com/tobymao/sqlglot/commit/7698324083ea8087d9e27976aa43dd23da7e5066) - **snowflake**: preserve UNNEST offset column references *(PR [#9324](https://github.com/tobymao/sqlglot/pull/9324) by [@georgesittas](https://github.com/georgesittas))*
|
|
115
|
+
- :arrow_lower_right: *fixes issue [#9311](https://github.com/tobymao/sqlglot/issues/9311) opened by [@anishmehta24](https://github.com/anishmehta24)*
|
|
116
|
+
- [`8806f8e`](https://github.com/tobymao/sqlglot/commit/8806f8e4e4cb71b61841119175a35b2a986a3561) - **snowflake**: parse casts on positional bind parameters *(PR [#9326](https://github.com/tobymao/sqlglot/pull/9326) by [@georgesittas](https://github.com/georgesittas))*
|
|
117
|
+
- :arrow_lower_right: *fixes issue [#9313](https://github.com/tobymao/sqlglot/issues/9313) opened by [@tekumara](https://github.com/tekumara)*
|
|
118
|
+
- [`ae01f91`](https://github.com/tobymao/sqlglot/commit/ae01f91cd6364921462b037b01f59f71207dc977) - **dialects**: preserve NULL elements in ARRAY_REMOVE filters [CODEX] *(PR [#9322](https://github.com/tobymao/sqlglot/pull/9322) by [@georgesittas](https://github.com/georgesittas))*
|
|
119
|
+
- :arrow_lower_right: *fixes issue [#9301](https://github.com/tobymao/sqlglot/issues/9301) opened by [@EduardoAndradeSLima](https://github.com/EduardoAndradeSLima)*
|
|
120
|
+
- [`d3a2eaf`](https://github.com/tobymao/sqlglot/commit/d3a2eafd171021d269e06b5f7a370451d6e9f04c) - **expressions**: preserve grouping in Python binary operators *(PR [#9330](https://github.com/tobymao/sqlglot/pull/9330) by [@georgesittas](https://github.com/georgesittas))*
|
|
121
|
+
- :arrow_lower_right: *fixes issue [#9329](https://github.com/tobymao/sqlglot/issues/9329) opened by [@Ezibenroc](https://github.com/Ezibenroc)*
|
|
122
|
+
- [`6edd409`](https://github.com/tobymao/sqlglot/commit/6edd409d5b2e6f676a3702120a26a60dbc516931) - **expressions**: preserve NOT grouping in binary operators *(PR [#9333](https://github.com/tobymao/sqlglot/pull/9333) by [@georgesittas](https://github.com/georgesittas))*
|
|
123
|
+
- [`4caae63`](https://github.com/tobymao/sqlglot/commit/4caae634b78b538ee91173a29c670b6576599315) - **parser**: recognize ORDER BY ALL in ClickHouse and Snowflake *(PR [#9332](https://github.com/tobymao/sqlglot/pull/9332) by [@georgesittas](https://github.com/georgesittas))*
|
|
124
|
+
- :arrow_lower_right: *fixes issue [#9331](https://github.com/tobymao/sqlglot/issues/9331) opened by [@joeharris76](https://github.com/joeharris76)*
|
|
125
|
+
|
|
126
|
+
### :zap: Performance Improvements
|
|
127
|
+
- [`0e9b6fc`](https://github.com/tobymao/sqlglot/commit/0e9b6fc9d7ada9ba40cec8626109440bce0b3b40) - **hive**: avoid reparsing type names during cast normalization [CODEX] *(PR [#9238](https://github.com/tobymao/sqlglot/pull/9238) by [@mlichtblau](https://github.com/mlichtblau))*
|
|
128
|
+
|
|
129
|
+
### :recycle: Refactors
|
|
130
|
+
- [`f59bcbc`](https://github.com/tobymao/sqlglot/commit/f59bcbcaa0ed549d61ed6d15f16f015cb2e9edc7) - simplify SQLite integer literal division *(commit by [@georgesittas](https://github.com/georgesittas))*
|
|
131
|
+
|
|
132
|
+
### :white_check_mark: Tests
|
|
133
|
+
- [`4b49cff`](https://github.com/tobymao/sqlglot/commit/4b49cff32f9d06f1f56ecde421ac3bd5ee450dcf) - deduplicate regression coverage *(PR [#9184](https://github.com/tobymao/sqlglot/pull/9184) by [@georgesittas](https://github.com/georgesittas))*
|
|
134
|
+
- [`a36965e`](https://github.com/tobymao/sqlglot/commit/a36965e196f010cded4eca7b7681852402ff2339) - **exasol**: simplify HASHTYPE cast coverage *(PR [#9220](https://github.com/tobymao/sqlglot/pull/9220) by [@georgesittas](https://github.com/georgesittas))*
|
|
135
|
+
|
|
136
|
+
### :wrench: Chores
|
|
137
|
+
- [`d76a4d5`](https://github.com/tobymao/sqlglot/commit/d76a4d5bf61d26ff7cf8f7abbb6271356cc74128) - refresh the integration tests pointer after [#9290](https://github.com/tobymao/sqlglot/pull/9290) *(commit by [@georgesittas](https://github.com/georgesittas))*
|
|
138
|
+
- [`1121851`](https://github.com/tobymao/sqlglot/commit/11218512e4eebf5c922e60aabff48351dd0a8dfb) - sync integration tests after [#9294](https://github.com/tobymao/sqlglot/pull/9294) *(commit by [@georgesittas](https://github.com/georgesittas))*
|
|
139
|
+
- [`e7f62ba`](https://github.com/tobymao/sqlglot/commit/e7f62bab9d7c1a7b646dff70bc72c1270329518d) - sync integration tests submodule with main *(commit by [@georgesittas](https://github.com/georgesittas))*
|
|
140
|
+
|
|
141
|
+
|
|
4
142
|
## [v30.33.0] - 2026-11-17
|
|
5
143
|
### :boom: BREAKING CHANGES
|
|
6
144
|
- due to [`fe09eb5`](https://github.com/tobymao/sqlglot/commit/fe09eb5c2c7269acb908af083539d0aaeca25b93) - treat SHA1/SHA256/SHA512 as binary digests [CLAUDE] *(PR [#9156](https://github.com/tobymao/sqlglot/pull/9156) by [@DeepBuha06](https://github.com/DeepBuha06))*:
|
|
@@ -16898,3 +17036,4 @@ pip install "sqlglot[c]" # compiled — faster, but no subclassing
|
|
|
16898
17036
|
[v30.31.0]: https://github.com/tobymao/sqlglot/compare/v30.30.0...v30.31.0
|
|
16899
17037
|
[v30.32.0]: https://github.com/tobymao/sqlglot/compare/v30.31.0...v30.32.0
|
|
16900
17038
|
[v30.33.0]: https://github.com/tobymao/sqlglot/compare/v30.32.0...v30.33.0
|
|
17039
|
+
[v30.34.0]: https://github.com/tobymao/sqlglot/compare/v30.33.0...v30.34.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sqlglot
|
|
3
|
-
Version: 30.
|
|
3
|
+
Version: 30.35.0
|
|
4
4
|
Summary: An easily customizable SQL parser and transpiler
|
|
5
5
|
Author-email: Toby Mao <toby.mao@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -34,10 +34,10 @@ Requires-Dist: types-pytz; extra == "dev"
|
|
|
34
34
|
Requires-Dist: typing_extensions; extra == "dev"
|
|
35
35
|
Requires-Dist: pyperf; extra == "dev"
|
|
36
36
|
Provides-Extra: c
|
|
37
|
-
Requires-Dist: sqlglotc==30.
|
|
37
|
+
Requires-Dist: sqlglotc==30.35.0; python_version >= "3.10" and extra == "c"
|
|
38
38
|
Provides-Extra: rs
|
|
39
39
|
Requires-Dist: sqlglotrs==0.13.0; extra == "rs"
|
|
40
|
-
Requires-Dist: sqlglotc==30.
|
|
40
|
+
Requires-Dist: sqlglotc==30.35.0; python_version >= "3.10" and extra == "rs"
|
|
41
41
|
Dynamic: license-file
|
|
42
42
|
Dynamic: provides-extra
|
|
43
43
|
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '30.
|
|
22
|
-
__version_tuple__ = version_tuple = (30,
|
|
21
|
+
__version__ = version = '30.35.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (30, 35, 0)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g324cdefc4'
|
|
@@ -152,6 +152,7 @@ def _tokenize_as_hive(tokens: list[Token]) -> bool:
|
|
|
152
152
|
|
|
153
153
|
# Athena extensions to Trino's tokenizer
|
|
154
154
|
class _TrinoTokenizer(Trino.Tokenizer):
|
|
155
|
+
COMMANDS = Trino.Tokenizer.COMMANDS | {TokenType.EXECUTE}
|
|
155
156
|
KEYWORDS = {
|
|
156
157
|
**Trino.Tokenizer.KEYWORDS,
|
|
157
158
|
"UNLOAD": TokenType.COMMAND,
|
|
@@ -20,6 +20,7 @@ class ClickHouse(Dialect):
|
|
|
20
20
|
SUPPORTS_USER_DEFINED_TYPES = False
|
|
21
21
|
LOG_BASE_FIRST: bool | None = None
|
|
22
22
|
FORCE_EARLY_ALIAS_REF_EXPANSION = True
|
|
23
|
+
SUPPORTS_FORWARD_ALIAS_REFS = True
|
|
23
24
|
PREFER_PROJECTION_ALIASES_IN_DOT_PATHS = True
|
|
24
25
|
ORIGINAL_NAME_META_KEY = "clickhouse_name"
|
|
25
26
|
NUMBERS_CAN_BE_UNDERSCORE_SEPARATED = True
|
|
@@ -611,6 +611,9 @@ class Dialect(metaclass=_Dialect):
|
|
|
611
611
|
to "WHERE id = 1 GROUP BY id HAVING id = 1"
|
|
612
612
|
"""
|
|
613
613
|
|
|
614
|
+
SUPPORTS_FORWARD_ALIAS_REFS = False
|
|
615
|
+
"""Whether SELECT list expressions can reference aliases defined later in the same list."""
|
|
616
|
+
|
|
614
617
|
PREFER_PROJECTION_ALIASES_IN_DOT_PATHS = False
|
|
615
618
|
"""Whether `obj.field` prefers a projection alias named `obj` over a source column of the same name."""
|
|
616
619
|
|
|
@@ -956,6 +959,9 @@ class Dialect(metaclass=_Dialect):
|
|
|
956
959
|
Whether to prioritize non-literal types over literals during type annotation.
|
|
957
960
|
"""
|
|
958
961
|
|
|
962
|
+
# (inclusive max, type) pairs for integer literals, tried in order; a None max is unbounded
|
|
963
|
+
INT_LITERAL_TYPES: tuple[tuple[int | None, exp.DType], ...] = ((None, exp.DType.INT),)
|
|
964
|
+
|
|
959
965
|
ALIAS_POST_VERSION = True
|
|
960
966
|
"""Whether the table alias comes after version (timestamp or iceberg snapshot)."""
|
|
961
967
|
|
|
@@ -1092,6 +1098,9 @@ class Dialect(metaclass=_Dialect):
|
|
|
1092
1098
|
"CENTURIES": "CENTURY",
|
|
1093
1099
|
}
|
|
1094
1100
|
|
|
1101
|
+
# Aliases used only when generating EXTRACT.
|
|
1102
|
+
EXTRACT_DATE_PART_MAPPING: t.ClassVar[dict[str, str]] = {}
|
|
1103
|
+
|
|
1095
1104
|
# Specifies what types a given type can be coerced into
|
|
1096
1105
|
COERCES_TO: dict[exp.DType, set[exp.DType]] = {}
|
|
1097
1106
|
|
|
@@ -1401,6 +1410,16 @@ class Dialect(metaclass=_Dialect):
|
|
|
1401
1410
|
for i, _ in enumerate(expression.expressions[0].expressions)
|
|
1402
1411
|
]
|
|
1403
1412
|
|
|
1413
|
+
def int_literal_type(self, expression: exp.Literal) -> exp.DataType | exp.DType:
|
|
1414
|
+
value = int(expression.to_py())
|
|
1415
|
+
for bound, int_type in self.INT_LITERAL_TYPES:
|
|
1416
|
+
if bound is None or value <= bound:
|
|
1417
|
+
return int_type
|
|
1418
|
+
return exp.DType.INT
|
|
1419
|
+
|
|
1420
|
+
def decimal_literal_type(self, text: str) -> exp.DataType | exp.DType:
|
|
1421
|
+
return exp.DType.DOUBLE
|
|
1422
|
+
|
|
1404
1423
|
|
|
1405
1424
|
DialectType = t.Union[str, Dialect, Type[Dialect], None]
|
|
1406
1425
|
|
|
@@ -2579,23 +2598,27 @@ def week_unit_to_dow(unit: exp.Expr | None) -> int | None:
|
|
|
2579
2598
|
|
|
2580
2599
|
|
|
2581
2600
|
@t.overload
|
|
2582
|
-
def map_date_part(
|
|
2601
|
+
def map_date_part(
|
|
2602
|
+
part: exp.Expr, dialect: DialectType = Dialect, *, mapping: dict[str, str] | None = None
|
|
2603
|
+
) -> exp.Expr:
|
|
2583
2604
|
pass
|
|
2584
2605
|
|
|
2585
2606
|
|
|
2586
2607
|
@t.overload
|
|
2587
|
-
def map_date_part(
|
|
2608
|
+
def map_date_part(
|
|
2609
|
+
part: exp.Expr | None, dialect: DialectType = Dialect, *, mapping: dict[str, str] | None = None
|
|
2610
|
+
) -> exp.Expr | None:
|
|
2588
2611
|
pass
|
|
2589
2612
|
|
|
2590
2613
|
|
|
2591
|
-
def map_date_part(part, dialect: DialectType = Dialect):
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
if
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2614
|
+
def map_date_part(part, dialect: DialectType = Dialect, *, mapping: dict[str, str] | None = None):
|
|
2615
|
+
"""Map a date part using explicit aliases or the dialect's general aliases."""
|
|
2616
|
+
if part and not (isinstance(part, exp.Column) and len(part.parts) != 1):
|
|
2617
|
+
if mapping is None:
|
|
2618
|
+
mapping = Dialect.get_or_raise(dialect).DATE_PART_MAPPING
|
|
2619
|
+
mapped = mapping.get(part.name.upper())
|
|
2620
|
+
if mapped:
|
|
2621
|
+
return exp.Literal.string(mapped) if part.is_string else exp.var(mapped)
|
|
2599
2622
|
|
|
2600
2623
|
return part
|
|
2601
2624
|
|
|
@@ -52,6 +52,7 @@ class DuckDB(Dialect):
|
|
|
52
52
|
EXPRESSION_METADATA = EXPRESSION_METADATA.copy()
|
|
53
53
|
|
|
54
54
|
DATE_PART_MAPPING.pop("WEEKDAY")
|
|
55
|
+
EXTRACT_DATE_PART_MAPPING = {"ISOWEEK": "WEEK"}
|
|
55
56
|
|
|
56
57
|
INVERSE_TIME_MAPPING = {
|
|
57
58
|
"%e": "%-d", # BigQuery's space-padded day (%e) -> DuckDB's no-padding day (%-d)
|
|
@@ -30,6 +30,7 @@ class Postgres(Dialect):
|
|
|
30
30
|
TABLESAMPLE_SIZE_IS_PERCENT = True
|
|
31
31
|
TABLES_REFERENCEABLE_AS_COLUMNS = True
|
|
32
32
|
OUTER_COLUMNS_SHADOW_TABLE_ALIASES = True
|
|
33
|
+
EXTRACT_DATE_PART_MAPPING = {"ISOWEEK": "WEEK"}
|
|
33
34
|
|
|
34
35
|
DEFAULT_FUNCTIONS_COLUMN_NAMES = {
|
|
35
36
|
exp.ExplodingGenerateSeries: "generate_series",
|
|
@@ -32,7 +32,13 @@ class Presto(Dialect):
|
|
|
32
32
|
SUPPORTS_VALUES_DEFAULT = False
|
|
33
33
|
LEAST_GREATEST_IGNORES_NULLS = False
|
|
34
34
|
UUID_IS_STRING_TYPE = False
|
|
35
|
+
EXTRACT_DATE_PART_MAPPING = {"ISOWEEK": "WEEK", "ISOYEAR": "YEAR_OF_WEEK"}
|
|
35
36
|
ARRAY_REMOVE_PROPAGATES_NULLS = True
|
|
37
|
+
INT_LITERAL_TYPES = (
|
|
38
|
+
(2147483647, exp.DType.INT),
|
|
39
|
+
(9223372036854775807, exp.DType.BIGINT),
|
|
40
|
+
(None, exp.DType.BIGINT),
|
|
41
|
+
)
|
|
36
42
|
|
|
37
43
|
TIME_MAPPING = MySQL.TIME_MAPPING
|
|
38
44
|
|
|
@@ -22,6 +22,7 @@ class Spark(Spark2):
|
|
|
22
22
|
SUPPORTS_NULL_TYPE = True
|
|
23
23
|
ARRAY_FUNCS_PROPAGATES_NULLS = True
|
|
24
24
|
EXPRESSION_METADATA = EXPRESSION_METADATA.copy()
|
|
25
|
+
EXTRACT_DATE_PART_MAPPING = {"ISODOW": "DOW_ISO", "ISOWEEK": "WEEK", "ISOYEAR": "YEAROFWEEK"}
|
|
25
26
|
|
|
26
27
|
# Spark 3+ parses MM/dd/HH/hh/mm/ss strictly, unlike Spark 2 (SimpleDateFormat)
|
|
27
28
|
TIME_MAPPING = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
from sqlglot import expressions as exp
|
|
3
4
|
from sqlglot.dialects.presto import Presto
|
|
4
5
|
from sqlglot.generators.trino import TrinoGenerator
|
|
5
6
|
from sqlglot.parsers.trino import TrinoParser
|
|
@@ -11,7 +12,17 @@ class Trino(Presto):
|
|
|
11
12
|
LOG_BASE_FIRST = True
|
|
12
13
|
CONCAT_WS_COALESCE = True
|
|
13
14
|
|
|
15
|
+
def int_literal_type(self, expression: exp.Literal) -> exp.DataType | exp.DType:
|
|
16
|
+
value = int(expression.to_py())
|
|
17
|
+
if isinstance(expression.parent, exp.Neg):
|
|
18
|
+
value -= 1
|
|
19
|
+
for bound, int_type in self.INT_LITERAL_TYPES:
|
|
20
|
+
if bound is None or value <= bound:
|
|
21
|
+
return int_type
|
|
22
|
+
return exp.DType.INT
|
|
23
|
+
|
|
14
24
|
class Tokenizer(Presto.Tokenizer):
|
|
25
|
+
COMMANDS = Presto.Tokenizer.COMMANDS - {TokenType.EXECUTE}
|
|
15
26
|
KEYWORDS = {
|
|
16
27
|
**Presto.Tokenizer.KEYWORDS,
|
|
17
28
|
"REFRESH": TokenType.REFRESH,
|
|
@@ -1479,6 +1479,10 @@ class Expression(Expr):
|
|
|
1479
1479
|
return between
|
|
1480
1480
|
|
|
1481
1481
|
def is_(self, other: ExpOrStr) -> Is:
|
|
1482
|
+
if isinstance(other, Not) and isinstance(other.this, (Null, Boolean)):
|
|
1483
|
+
predicate = self._binop(Is, other.this)
|
|
1484
|
+
predicate.set("negate", True)
|
|
1485
|
+
return predicate
|
|
1482
1486
|
return self._binop(Is, other)
|
|
1483
1487
|
|
|
1484
1488
|
def like(self, other: ExpOrStr) -> Like:
|
|
@@ -850,6 +850,10 @@ class Lateral(Expression, UDTF):
|
|
|
850
850
|
return columns
|
|
851
851
|
|
|
852
852
|
|
|
853
|
+
class TableArgument(Expression):
|
|
854
|
+
"""A relation passed to a table function with the TABLE keyword."""
|
|
855
|
+
|
|
856
|
+
|
|
853
857
|
class TableFromRows(Expression, UDTF):
|
|
854
858
|
arg_types = {
|
|
855
859
|
"this": True,
|
|
@@ -504,6 +504,7 @@ class Generator:
|
|
|
504
504
|
SUPPORTS_SELECT_INTO = False
|
|
505
505
|
|
|
506
506
|
SUPPORTS_OPTIMIZE = False
|
|
507
|
+
SUPPORTS_EXECUTE_IMMEDIATE = True
|
|
507
508
|
|
|
508
509
|
# Whether UNLOGGED tables can be created
|
|
509
510
|
SUPPORTS_UNLOGGED_TABLES = False
|
|
@@ -623,6 +624,7 @@ class Generator:
|
|
|
623
624
|
ALTER_SET_WRAPPED = False
|
|
624
625
|
|
|
625
626
|
# Whether to normalize the date parts in EXTRACT(<date_part> FROM <expr>) into a common representation
|
|
627
|
+
# using the dialect's general aliases as a fallback for parts without an EXTRACT-specific mapping.
|
|
626
628
|
# For instance, to extract the day of week in ISO semantics, one can use ISODOW, DAYOFWEEKISO etc depending on the dialect.
|
|
627
629
|
# TODO: The normalization should be done by default once we've tested it across all dialects.
|
|
628
630
|
NORMALIZE_EXTRACT_DATE_PARTS = False
|
|
@@ -1031,7 +1033,9 @@ class Generator:
|
|
|
1031
1033
|
expression = self.preprocess(expression)
|
|
1032
1034
|
|
|
1033
1035
|
self.unsupported_messages = []
|
|
1034
|
-
sql = self.sql(expression)
|
|
1036
|
+
sql = self.sql(expression)
|
|
1037
|
+
# A trailing newline in a raw command can terminate a line comment.
|
|
1038
|
+
sql = sql.lstrip() if isinstance(expression, exp.Command) else sql.strip()
|
|
1035
1039
|
|
|
1036
1040
|
if self.pretty:
|
|
1037
1041
|
sql = sql.replace(self.SENTINEL_LINE_BREAK, "\n")
|
|
@@ -2661,6 +2665,10 @@ class Generator:
|
|
|
2661
2665
|
|
|
2662
2666
|
return f"{only}{table}{changes}{partition}{file_format}{pre_alias}{alias}{indexed}{hints}{pivots}{post_alias}{joins}{laterals}{ordinality}"
|
|
2663
2667
|
|
|
2668
|
+
def tableargument_sql(self, expression: exp.TableArgument) -> str:
|
|
2669
|
+
table = expression.this
|
|
2670
|
+
return f"TABLE {self.maybe_comment(self.table_parts(table), table)}"
|
|
2671
|
+
|
|
2664
2672
|
def tablefromrows_sql(self, expression: exp.TableFromRows) -> str:
|
|
2665
2673
|
table = self.func("TABLE", expression.this)
|
|
2666
2674
|
alias = self.sql(expression, "alias")
|
|
@@ -3947,14 +3955,18 @@ class Generator:
|
|
|
3947
3955
|
order = f" OVER ({self.order_sql(order, flat=True)})" if order else ""
|
|
3948
3956
|
return f"NEXT VALUE FOR {self.sql(expression, 'this')}{order}"
|
|
3949
3957
|
|
|
3950
|
-
def
|
|
3951
|
-
|
|
3958
|
+
def extract_date_part(self, part: exp.Expr) -> exp.Expr:
|
|
3959
|
+
mapping = self.dialect.EXTRACT_DATE_PART_MAPPING
|
|
3960
|
+
if self.NORMALIZE_EXTRACT_DATE_PARTS and part.name.upper() not in mapping:
|
|
3961
|
+
mapping = self.dialect.DATE_PART_MAPPING
|
|
3962
|
+
if mapping:
|
|
3963
|
+
import sqlglot.dialects.dialect
|
|
3952
3964
|
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
)
|
|
3965
|
+
return sqlglot.dialects.dialect.map_date_part(part, mapping=mapping)
|
|
3966
|
+
return part
|
|
3967
|
+
|
|
3968
|
+
def extract_sql(self, expression: exp.Extract) -> str:
|
|
3969
|
+
this = self.extract_date_part(expression.this)
|
|
3958
3970
|
if self.EXTRACT_ALLOWS_QUOTES:
|
|
3959
3971
|
this_sql = self.sql(this)
|
|
3960
3972
|
elif isinstance(this, exp.WeekStart):
|
|
@@ -4498,7 +4510,8 @@ class Generator:
|
|
|
4498
4510
|
return self.binary(expression, "COLLATE")
|
|
4499
4511
|
|
|
4500
4512
|
def command_sql(self, expression: exp.Command) -> str:
|
|
4501
|
-
|
|
4513
|
+
args = expression.text("expression").lstrip()
|
|
4514
|
+
return f"{self.sql(expression, 'this')} {args}".rstrip(" \t")
|
|
4502
4515
|
|
|
4503
4516
|
def optimize_sql(self, expression: exp.Optimize) -> str:
|
|
4504
4517
|
if not self.SUPPORTS_OPTIMIZE:
|
|
@@ -5967,7 +5980,8 @@ class Generator:
|
|
|
5967
5980
|
|
|
5968
5981
|
def gapfill_sql(self, expression: exp.GapFill) -> str:
|
|
5969
5982
|
this = self.sql(expression, "this")
|
|
5970
|
-
this
|
|
5983
|
+
if isinstance(expression.this, exp.Table):
|
|
5984
|
+
this = f"TABLE {this}"
|
|
5971
5985
|
return self.func("GAP_FILL", this, *[v for k, v in expression.args.items() if k != "this"])
|
|
5972
5986
|
|
|
5973
5987
|
def scope_resolution(self, rhs: str, scope_name: str) -> str:
|
|
@@ -6884,6 +6898,14 @@ class Generator:
|
|
|
6884
6898
|
self.unsupported("Unsupported Execute syntax")
|
|
6885
6899
|
return ""
|
|
6886
6900
|
|
|
6901
|
+
def executeimmediate_sql(self, expression: exp.ExecuteImmediate) -> str:
|
|
6902
|
+
if not self.SUPPORTS_EXECUTE_IMMEDIATE:
|
|
6903
|
+
self.unsupported("EXECUTE IMMEDIATE is not supported")
|
|
6904
|
+
return ""
|
|
6905
|
+
using = self.expressions(expression, flat=True)
|
|
6906
|
+
using = f" USING {using}" if using else ""
|
|
6907
|
+
return f"EXECUTE IMMEDIATE {self.sql(expression, 'this')}{using}"
|
|
6908
|
+
|
|
6887
6909
|
def altermodifysqlsecurity_sql(self, expression: exp.AlterModifySqlSecurity) -> str:
|
|
6888
6910
|
props = self.expressions(expression, sep=" ")
|
|
6889
6911
|
return f"MODIFY {props}"
|
|
@@ -114,6 +114,7 @@ class _HiveGenerator(HiveGenerator):
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
class AthenaTrinoGenerator(TrinoGenerator):
|
|
117
|
+
SUPPORTS_EXECUTE_IMMEDIATE = False
|
|
117
118
|
PROPERTIES_LOCATION = {
|
|
118
119
|
**TrinoGenerator.PROPERTIES_LOCATION,
|
|
119
120
|
exp.LocationProperty: exp.Properties.Location.POST_WITH,
|