sqlglot 30.32.0__tar.gz → 30.34.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.
Files changed (343) hide show
  1. {sqlglot-30.32.0 → sqlglot-30.34.0}/AGENTS.md +1 -1
  2. {sqlglot-30.32.0 → sqlglot-30.34.0}/CHANGELOG.md +188 -0
  3. {sqlglot-30.32.0 → sqlglot-30.34.0}/CLAUDE.md +1 -1
  4. {sqlglot-30.32.0 → sqlglot-30.34.0}/CONTRIBUTING.md +7 -11
  5. {sqlglot-30.32.0/sqlglot.egg-info → sqlglot-30.34.0}/PKG-INFO +8 -6
  6. {sqlglot-30.32.0 → sqlglot-30.34.0}/README.md +5 -3
  7. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/_version.py +3 -3
  8. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/anonymize.py +12 -1
  9. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/bigquery.py +3 -0
  10. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/clickhouse.py +2 -0
  11. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/databricks.py +2 -0
  12. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/dialect.py +47 -21
  13. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/duckdb.py +1 -0
  14. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/exasol.py +1 -0
  15. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/hive.py +2 -0
  16. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/materialize.py +1 -0
  17. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/oracle.py +0 -1
  18. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/postgres.py +7 -0
  19. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/presto.py +34 -0
  20. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/redshift.py +2 -0
  21. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/risingwave.py +2 -0
  22. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/snowflake.py +7 -0
  23. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/sqlite.py +10 -0
  24. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/array.py +8 -0
  25. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/constraints.py +2 -2
  26. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/core.py +29 -7
  27. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/datatypes.py +1 -0
  28. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/dml.py +2 -0
  29. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/math.py +1 -0
  30. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/query.py +4 -0
  31. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/string.py +9 -3
  32. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/temporal.py +3 -2
  33. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generator.py +55 -12
  34. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/bigquery.py +38 -4
  35. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/clickhouse.py +28 -3
  36. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/databricks.py +3 -0
  37. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/duckdb.py +126 -48
  38. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/exasol.py +1 -0
  39. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/hive.py +1 -2
  40. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/materialize.py +9 -0
  41. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/postgres.py +75 -3
  42. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/presto.py +37 -1
  43. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/redshift.py +7 -0
  44. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/snowflake.py +10 -2
  45. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/spark.py +14 -1
  46. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/spark2.py +28 -8
  47. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/sqlite.py +158 -33
  48. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/teradata.py +8 -0
  49. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/tsql.py +10 -3
  50. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/helper.py +18 -0
  51. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/annotate_types.py +19 -14
  52. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/helpers.py +19 -6
  53. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/merge_subqueries.py +123 -21
  54. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/pushdown_predicates.py +34 -18
  55. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/qualify_columns.py +74 -19
  56. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/scope.py +4 -0
  57. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/simplify.py +91 -45
  58. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/unnest_subqueries.py +36 -18
  59. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parser.py +107 -48
  60. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/clickhouse.py +7 -2
  61. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/databricks.py +30 -0
  62. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/drill.py +0 -2
  63. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/duckdb.py +14 -7
  64. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/hive.py +3 -1
  65. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/materialize.py +2 -0
  66. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/mysql.py +1 -0
  67. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/postgres.py +9 -7
  68. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/presto.py +32 -0
  69. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/redshift.py +10 -1
  70. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/snowflake.py +29 -4
  71. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/sqlite.py +133 -12
  72. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/teradata.py +211 -57
  73. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/tsql.py +3 -3
  74. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/tokenizer_core.py +118 -9
  75. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/tokens.py +8 -1
  76. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/__init__.py +1 -0
  77. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/bigquery.py +23 -11
  78. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/databricks.py +1 -0
  79. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/hive.py +1 -0
  80. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/postgres.py +10 -0
  81. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/redshift.py +10 -0
  82. sqlglot-30.34.0/sqlglot/typing/sqlite.py +9 -0
  83. {sqlglot-30.32.0 → sqlglot-30.34.0/sqlglot.egg-info}/PKG-INFO +8 -6
  84. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot.egg-info/SOURCES.txt +1 -0
  85. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot.egg-info/requires.txt +2 -2
  86. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot.egg-info/scm_file_list.json +1 -0
  87. sqlglot-30.34.0/sqlglot.egg-info/scm_version.json +8 -0
  88. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_athena.py +0 -6
  89. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_bigquery.py +45 -30
  90. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_clickhouse.py +24 -4
  91. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_databricks.py +132 -2
  92. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_dialect.py +55 -8
  93. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_duckdb.py +247 -57
  94. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_exasol.py +23 -20
  95. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_hive.py +1 -1
  96. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_materialize.py +7 -0
  97. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_mysql.py +13 -5
  98. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_oracle.py +2 -0
  99. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_postgres.py +154 -17
  100. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_redshift.py +25 -13
  101. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_singlestore.py +0 -17
  102. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_snowflake.py +121 -22
  103. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_spark.py +76 -1
  104. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_sqlite.py +740 -6
  105. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_teradata.py +167 -7
  106. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_trino.py +105 -0
  107. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_tsql.py +9 -36
  108. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/identity.sql +0 -6
  109. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/annotate_functions.sql +0 -20
  110. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/annotate_types.sql +28 -0
  111. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/merge_subqueries.sql +38 -0
  112. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/qualify_columns.sql +109 -0
  113. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/qualify_columns__invalid.sql +3 -0
  114. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/simplify.sql +83 -40
  115. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/unnest_subqueries.sql +12 -0
  116. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_anonymize.py +62 -0
  117. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_build.py +10 -0
  118. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_jsonpath.py +5 -0
  119. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_optimizer.py +243 -1
  120. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_parser.py +41 -0
  121. sqlglot-30.32.0/sqlglot.egg-info/scm_version.json +0 -8
  122. {sqlglot-30.32.0 → sqlglot-30.34.0}/.gitignore +0 -0
  123. {sqlglot-30.32.0 → sqlglot-30.34.0}/.gitmodules +0 -0
  124. {sqlglot-30.32.0 → sqlglot-30.34.0}/.gitpod.yml +0 -0
  125. {sqlglot-30.32.0 → sqlglot-30.34.0}/.pre-commit-config.yaml +0 -0
  126. {sqlglot-30.32.0 → sqlglot-30.34.0}/LICENSE +0 -0
  127. {sqlglot-30.32.0 → sqlglot-30.34.0}/MANIFEST.in +0 -0
  128. {sqlglot-30.32.0 → sqlglot-30.34.0}/Makefile +0 -0
  129. {sqlglot-30.32.0 → sqlglot-30.34.0}/pyproject.toml +0 -0
  130. {sqlglot-30.32.0 → sqlglot-30.34.0}/setup.cfg +0 -0
  131. {sqlglot-30.32.0 → sqlglot-30.34.0}/setup.py +0 -0
  132. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/__init__.py +0 -0
  133. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/__main__.py +0 -0
  134. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/_typing.py +0 -0
  135. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/__init__.py +0 -0
  136. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/athena.py +0 -0
  137. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/dax.py +0 -0
  138. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/doris.py +0 -0
  139. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/dremio.py +0 -0
  140. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/drill.py +0 -0
  141. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/druid.py +0 -0
  142. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/dune.py +0 -0
  143. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/fabric.py +0 -0
  144. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/mysql.py +0 -0
  145. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/prql.py +0 -0
  146. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/singlestore.py +0 -0
  147. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/solr.py +0 -0
  148. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/spark.py +0 -0
  149. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/spark2.py +0 -0
  150. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/starrocks.py +0 -0
  151. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/tableau.py +0 -0
  152. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/teradata.py +0 -0
  153. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/trino.py +0 -0
  154. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/dialects/tsql.py +0 -0
  155. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/diff.py +0 -0
  156. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/errors.py +0 -0
  157. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/executor/__init__.py +0 -0
  158. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/executor/context.py +0 -0
  159. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/executor/env.py +0 -0
  160. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/executor/python.py +0 -0
  161. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/executor/table.py +0 -0
  162. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/__init__.py +0 -0
  163. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/aggregate.py +0 -0
  164. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/builders.py +0 -0
  165. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/ddl.py +0 -0
  166. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/functions.py +0 -0
  167. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/json.py +0 -0
  168. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/expressions/properties.py +0 -0
  169. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/__init__.py +0 -0
  170. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/athena.py +0 -0
  171. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/dax.py +0 -0
  172. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/doris.py +0 -0
  173. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/dremio.py +0 -0
  174. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/drill.py +0 -0
  175. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/druid.py +0 -0
  176. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/dune.py +0 -0
  177. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/fabric.py +0 -0
  178. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/mysql.py +0 -0
  179. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/oracle.py +0 -0
  180. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/prql.py +0 -0
  181. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/python.py +0 -0
  182. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/risingwave.py +0 -0
  183. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/singlestore.py +0 -0
  184. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/solr.py +0 -0
  185. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/starrocks.py +0 -0
  186. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/tableau.py +0 -0
  187. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/generators/trino.py +0 -0
  188. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/jsonpath.py +0 -0
  189. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/lineage.py +0 -0
  190. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/__init__.py +0 -0
  191. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/canonicalize.py +0 -0
  192. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/canonicalize_internal_names.py +0 -0
  193. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/eliminate_ctes.py +0 -0
  194. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/eliminate_joins.py +0 -0
  195. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/eliminate_subqueries.py +0 -0
  196. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/isolate_table_selects.py +0 -0
  197. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/journal.py +0 -0
  198. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/normalize.py +0 -0
  199. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/normalize_identifiers.py +0 -0
  200. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/optimize_joins.py +0 -0
  201. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/optimizer.py +0 -0
  202. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/pushdown_projections.py +0 -0
  203. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/qualify.py +0 -0
  204. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/qualify_tables.py +0 -0
  205. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/optimizer/resolver.py +0 -0
  206. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/__init__.py +0 -0
  207. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/athena.py +0 -0
  208. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/base.py +0 -0
  209. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/bigquery.py +0 -0
  210. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/dax.py +0 -0
  211. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/doris.py +0 -0
  212. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/dremio.py +0 -0
  213. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/druid.py +0 -0
  214. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/dune.py +0 -0
  215. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/exasol.py +0 -0
  216. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/fabric.py +0 -0
  217. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/oracle.py +0 -0
  218. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/prql.py +0 -0
  219. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/risingwave.py +0 -0
  220. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/singlestore.py +0 -0
  221. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/solr.py +0 -0
  222. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/spark.py +0 -0
  223. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/spark2.py +0 -0
  224. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/starrocks.py +0 -0
  225. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/tableau.py +0 -0
  226. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/parsers/trino.py +0 -0
  227. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/planner.py +0 -0
  228. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/py.typed +0 -0
  229. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/schema.py +0 -0
  230. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/serde.py +0 -0
  231. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/time.py +0 -0
  232. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/transforms.py +0 -0
  233. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/trie.py +0 -0
  234. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/clickhouse.py +0 -0
  235. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/duckdb.py +0 -0
  236. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/mysql.py +0 -0
  237. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/presto.py +0 -0
  238. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/snowflake.py +0 -0
  239. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/spark.py +0 -0
  240. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/spark2.py +0 -0
  241. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot/typing/tsql.py +0 -0
  242. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot.egg-info/dependency_links.txt +0 -0
  243. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot.egg-info/top_level.txt +0 -0
  244. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglot.png +0 -0
  245. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglotc/MANIFEST.in +0 -0
  246. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglotc/pyproject.toml +0 -0
  247. {sqlglot-30.32.0 → sqlglot-30.34.0}/sqlglotc/setup.py +0 -0
  248. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/__init__.py +0 -0
  249. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/__init__.py +0 -0
  250. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_dax.py +0 -0
  251. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_doris.py +0 -0
  252. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_dremio.py +0 -0
  253. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_drill.py +0 -0
  254. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_druid.py +0 -0
  255. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_dune.py +0 -0
  256. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_fabric.py +0 -0
  257. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_pipe_syntax.py +0 -0
  258. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_presto.py +0 -0
  259. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_prql.py +0 -0
  260. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_risingwave.py +0 -0
  261. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_solr.py +0 -0
  262. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_starrocks.py +0 -0
  263. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/dialects/test_tableau.py +0 -0
  264. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/jsonpath/LICENSE +0 -0
  265. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/jsonpath/cts.json +0 -0
  266. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/canonicalize.sql +0 -0
  267. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/canonicalize_internal_names.sql +0 -0
  268. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/eliminate_ctes.sql +0 -0
  269. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/eliminate_joins.sql +0 -0
  270. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/eliminate_subqueries.sql +0 -0
  271. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/isolate_table_selects.sql +0 -0
  272. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/normalize.sql +0 -0
  273. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/normalize_identifiers.sql +0 -0
  274. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/optimize_joins.sql +0 -0
  275. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/optimizer.sql +0 -0
  276. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/pushdown_cte_alias_columns.sql +0 -0
  277. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/pushdown_predicates.sql +0 -0
  278. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/pushdown_projections.sql +0 -0
  279. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/qualify_columns__with_invisible.sql +0 -0
  280. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/qualify_columns_ddl.sql +0 -0
  281. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/qualify_tables.sql +0 -0
  282. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/quote_identifiers.sql +0 -0
  283. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/call_center.csv.gz +0 -0
  284. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/catalog_page.csv.gz +0 -0
  285. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/catalog_returns.csv.gz +0 -0
  286. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/catalog_sales.csv.gz +0 -0
  287. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/customer.csv.gz +0 -0
  288. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/customer_address.csv.gz +0 -0
  289. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/customer_demographics.csv.gz +0 -0
  290. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/date_dim.csv.gz +0 -0
  291. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/household_demographics.csv.gz +0 -0
  292. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/income_band.csv.gz +0 -0
  293. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/inventory.csv.gz +0 -0
  294. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/item.csv.gz +0 -0
  295. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/promotion.csv.gz +0 -0
  296. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/reason.csv.gz +0 -0
  297. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/ship_mode.csv.gz +0 -0
  298. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/store.csv.gz +0 -0
  299. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/store_returns.csv.gz +0 -0
  300. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/store_sales.csv.gz +0 -0
  301. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/time_dim.csv.gz +0 -0
  302. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/tpc-ds.sql +0 -0
  303. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/warehouse.csv.gz +0 -0
  304. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/web_page.csv.gz +0 -0
  305. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/web_returns.csv.gz +0 -0
  306. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/web_sales.csv.gz +0 -0
  307. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-ds/web_site.csv.gz +0 -0
  308. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-h/customer.csv.gz +0 -0
  309. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-h/lineitem.csv.gz +0 -0
  310. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-h/nation.csv.gz +0 -0
  311. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-h/orders.csv.gz +0 -0
  312. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-h/part.csv.gz +0 -0
  313. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-h/partsupp.csv.gz +0 -0
  314. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-h/region.csv.gz +0 -0
  315. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-h/supplier.csv.gz +0 -0
  316. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/optimizer/tpc-h/tpc-h.sql +0 -0
  317. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/partial.sql +0 -0
  318. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/fixtures/pretty.sql +0 -0
  319. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/gen_fixtures.py +0 -0
  320. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/helpers.py +0 -0
  321. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/leakcheck.py +0 -0
  322. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/sqlglot/__init__.py +0 -0
  323. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_dialect_entry_points.py +0 -0
  324. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_dialect_imports.py +0 -0
  325. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_diff.py +0 -0
  326. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_docs.py +0 -0
  327. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_errors.py +0 -0
  328. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_executor.py +0 -0
  329. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_expressions.py +0 -0
  330. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_generator.py +0 -0
  331. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_helper.py +0 -0
  332. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_integration_loader.py +0 -0
  333. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_lineage.py +0 -0
  334. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_optimize_cross_joins.py +0 -0
  335. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_schema.py +0 -0
  336. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_serde.py +0 -0
  337. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_simplify_between.py +0 -0
  338. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_sqlglotc.py +0 -0
  339. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_time.py +0 -0
  340. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_tokens.py +0 -0
  341. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_transforms.py +0 -0
  342. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_transpile.py +0 -0
  343. {sqlglot-30.32.0 → sqlglot-30.34.0}/tests/test_typing.py +0 -0
@@ -4,7 +4,7 @@
4
4
  SQLGlot is a no-dependency SQL parser, transpiler, optimizer, and engine written in pure Python. It supports 31+ SQL dialects and can transpile between them while preserving semantics. The codebase is performance-critical despite being pure Python, with an optional mypyc-compiled C extension for speed improvements (`sqlglotc/`).
5
5
 
6
6
  ## Development Commands
7
- Before contributing read CONTRIBUTING.md
7
+ Read [CONTRIBUTING.md](CONTRIBUTING.md) before contributing. Only maintainers submit pull requests. External contributors can report bugs and request features through GitHub issues.
8
8
 
9
9
  ### Installation
10
10
  ```bash
@@ -1,6 +1,192 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## [v30.33.0] - 2026-11-17
5
+ ### :boom: BREAKING CHANGES
6
+ - 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))*:
7
+
8
+ treat SHA1/SHA256/SHA512 as binary digests [CLAUDE] (#9156)
9
+
10
+
11
+ ### :sparkles: New Features
12
+ - [`80c7137`](https://github.com/tobymao/sqlglot/commit/80c71376aebf4bdd3fd0c271d54204482df217f0) - **bigquery**: infer POWER results from numeric operand types *(PR [#9089](https://github.com/tobymao/sqlglot/pull/9089) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
13
+ - [`3ac233c`](https://github.com/tobymao/sqlglot/commit/3ac233c54cb8db46480f4778b4c7b6fcaab43d40) - **presto**: parse FORMAT_DATETIME Joda formats into TimeToStr *(PR [#9096](https://github.com/tobymao/sqlglot/pull/9096) by [@VaggelisD](https://github.com/VaggelisD))*
14
+ - [`c86e605`](https://github.com/tobymao/sqlglot/commit/c86e6050891096ea0dde094acdf19e2051fc3d90) - **Databricks**: Infer type for Databricks Date_TRUNC, SEQUENCE-to-EXPLODE propagation *(PR [#9158](https://github.com/tobymao/sqlglot/pull/9158) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
15
+ - [`b8b7e82`](https://github.com/tobymao/sqlglot/commit/b8b7e827cdc8e547497718b10fceee4ea4fa5dcc) - **databricks**: parse OPTIMIZE with table parser *(PR [#9164](https://github.com/tobymao/sqlglot/pull/9164) by [@Walkeer](https://github.com/Walkeer))*
16
+
17
+ ### :bug: Bug Fixes
18
+ - [`1d064df`](https://github.com/tobymao/sqlglot/commit/1d064dfb3fcb3cbc84106def136b6743340d5d1e) - **optimizer**: wrap merged projections used as the operand of IN / BETWEEN [CLAUDE] *(PR [#9139](https://github.com/tobymao/sqlglot/pull/9139) by [@arpangupta1805](https://github.com/arpangupta1805))*
19
+ - :arrow_lower_right: *fixes issue [#9138](https://github.com/tobymao/sqlglot/issues/9138) opened by [@arpangupta1805](https://github.com/arpangupta1805)*
20
+ - [`3194cf8`](https://github.com/tobymao/sqlglot/commit/3194cf84505461c5e5e0b80f089f9ddb504e772f) - **duckdb**: honor binary POSITION start offsets [CODEX] *(PR [#9145](https://github.com/tobymao/sqlglot/pull/9145) by [@krish-goradia](https://github.com/krish-goradia))*
21
+ - [`3159964`](https://github.com/tobymao/sqlglot/commit/315996469760c7034d37d1ca74e3facecef89896) - **postgres**: generate CARDINALITY for ArraySize without a dimension [CLAUDE] *(PR [#9157](https://github.com/tobymao/sqlglot/pull/9157) by [@EnesSoydan](https://github.com/EnesSoydan))*
22
+ - [`fe09eb5`](https://github.com/tobymao/sqlglot/commit/fe09eb5c2c7269acb908af083539d0aaeca25b93) - **clickhouse**: treat SHA1/SHA256/SHA512 as binary digests [CLAUDE] *(PR [#9156](https://github.com/tobymao/sqlglot/pull/9156) by [@DeepBuha06](https://github.com/DeepBuha06))*
23
+ - [`2359d11`](https://github.com/tobymao/sqlglot/commit/2359d11a233680ae9e9b7f8162377fe90ff99af6) - **hive**: handle MILLISECOND and MICROSECOND in DATEADD *(PR [#9161](https://github.com/tobymao/sqlglot/pull/9161) by [@saanvimundra](https://github.com/saanvimundra))*
24
+ - :arrow_lower_right: *fixes issue [#9160](https://github.com/tobymao/sqlglot/issues/9160) opened by [@saanvimundra](https://github.com/saanvimundra)*
25
+ - [`9ffdd7b`](https://github.com/tobymao/sqlglot/commit/9ffdd7bef97bcf59af1743fc72e28571c2d2ff08) - **sqlite**: translate week date arithmetic to days [CODEX] *(PR [#9168](https://github.com/tobymao/sqlglot/pull/9168) by [@prathamchoksi](https://github.com/prathamchoksi))*
26
+ - :arrow_lower_right: *fixes issue [#9167](https://github.com/tobymao/sqlglot/issues/9167) opened by [@prathamchoksi](https://github.com/prathamchoksi)*
27
+ - [`4d1409c`](https://github.com/tobymao/sqlglot/commit/4d1409c334d51ce508c5969c93ae8881301ddbbd) - **sqlite**: use DATETIME for sub-day DATE_ADD/DATE_SUB units *(PR [#9155](https://github.com/tobymao/sqlglot/pull/9155) by [@akchhayasharma](https://github.com/akchhayasharma))*
28
+ - :arrow_lower_right: *fixes issue [#9150](https://github.com/tobymao/sqlglot/issues/9150) opened by [@prathamchoksi](https://github.com/prathamchoksi)*
29
+ - [`2a2d341`](https://github.com/tobymao/sqlglot/commit/2a2d341d3eb8dcbc07f312a49821ff96f44ba346) - **sqlite**: preserve empty UNICODE results in DuckDB *(PR [#9175](https://github.com/tobymao/sqlglot/pull/9175) by [@georgesittas](https://github.com/georgesittas))*
30
+ - :arrow_lower_right: *fixes issue [#9172](https://github.com/tobymao/sqlglot/issues/9172) opened by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm)*
31
+ - [`0142578`](https://github.com/tobymao/sqlglot/commit/0142578dc440257299a36706167d890fe83b9d13) - **hive**: map SSS to milliseconds in Hive/Spark time formats *(PR [#9173](https://github.com/tobymao/sqlglot/pull/9173) by [@dayan02dev](https://github.com/dayan02dev))*
32
+ - [`c521a7c`](https://github.com/tobymao/sqlglot/commit/c521a7cc2b63c845fe3232b0fafddcb17bfbc360) - **optimizer**: respect join ordering during predicate pushdown *(commit by [@treysp](https://github.com/treysp))*
33
+ - [`307245f`](https://github.com/tobymao/sqlglot/commit/307245faf60c0b00c03368558a5482502635e750) - **sqlite**: preserve negative ROUND precision in DuckDB *(PR [#9174](https://github.com/tobymao/sqlglot/pull/9174) by [@georgesittas](https://github.com/georgesittas))*
34
+ - :arrow_lower_right: *fixes issue [#9159](https://github.com/tobymao/sqlglot/issues/9159) opened by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm)*
35
+ - [`30e99f7`](https://github.com/tobymao/sqlglot/commit/30e99f7b6b97dfc4c6da83d40655413f001c7aeb) - **optimizer**: preserve correlated column references when merging subqueries *(PR [#9051](https://github.com/tobymao/sqlglot/pull/9051) by [@treysp](https://github.com/treysp))*
36
+ - [`8ceabf8`](https://github.com/tobymao/sqlglot/commit/8ceabf87854bb55297f01c51864c8fbc1e8f7795) - **sqlite**: preserve integer RANDOM semantics in DuckDB *(PR [#9177](https://github.com/tobymao/sqlglot/pull/9177) by [@georgesittas](https://github.com/georgesittas))*
37
+ - :arrow_lower_right: *fixes issue [#9163](https://github.com/tobymao/sqlglot/issues/9163) opened by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm)*
38
+ - [`b9688a1`](https://github.com/tobymao/sqlglot/commit/b9688a13d249fd95edf83b7c7862b6846c088abf) - **duckdb**: distinguish printf and brace formatting [CODEX] *(PR [#9176](https://github.com/tobymao/sqlglot/pull/9176) by [@georgesittas](https://github.com/georgesittas))*
39
+ - :arrow_lower_right: *fixes issue [#9112](https://github.com/tobymao/sqlglot/issues/9112) opened by [@bardrop](https://github.com/bardrop)*
40
+ - [`8897257`](https://github.com/tobymao/sqlglot/commit/88972576a2d84ccdd9dcff25279a016d4e08071c) - **optimizer**: apply star REPLACE / RENAME to USING join columns [CLAUDE] *(PR [#9170](https://github.com/tobymao/sqlglot/pull/9170) by [@arpangupta1805](https://github.com/arpangupta1805))*
41
+ - :arrow_lower_right: *fixes issue [#9169](https://github.com/tobymao/sqlglot/issues/9169) opened by [@arpangupta1805](https://github.com/arpangupta1805)*
42
+ - [`0936dbe`](https://github.com/tobymao/sqlglot/commit/0936dbe9192a3b57c6e6992acfcb93d4b429c51f) - **optimizer**: preserve scalar subqueries in predicates [CODEX] *(PR [#9171](https://github.com/tobymao/sqlglot/pull/9171) by [@hector2394](https://github.com/hector2394))*
43
+ - :arrow_lower_right: *fixes issue [#9148](https://github.com/tobymao/sqlglot/issues/9148) opened by [@arpangupta1805](https://github.com/arpangupta1805)*
44
+
45
+ ### :recycle: Refactors
46
+ - [`1a6309a`](https://github.com/tobymao/sqlglot/commit/1a6309ade5b784e79033b924e55884a9545395f0) - **databricks**: inherit Optimize argument defaults *(commit by [@georgesittas](https://github.com/georgesittas))*
47
+
48
+ ### :wrench: Chores
49
+ - [`024134c`](https://github.com/tobymao/sqlglot/commit/024134c6691f5b6cb97b29d9e227f3343021f032) - **optimizer**: simplify merge_subqueries wrap check, test OR under AND *(commit by [@geooo109](https://github.com/geooo109))*
50
+ - [`b9c408b`](https://github.com/tobymao/sqlglot/commit/b9c408ba1fdf50de5f07ba97818db1baa7a60688) - **optimizer**: drop redundant SAFE_TO_REPLACE_UNWRAPPED comment *(commit by [@geooo109](https://github.com/geooo109))*
51
+
52
+
53
+ ## [v30.32.0] - 2026-11-16
54
+ ### :sparkles: New Features
55
+ - [`466a644`](https://github.com/tobymao/sqlglot/commit/466a6443905f6684cfc38eea0422284231cd1182) - **Snowflake**: Fix type for Snowflake TO_VARIANT *(PR [#8979](https://github.com/tobymao/sqlglot/pull/8979) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
56
+ - [`931b4fb`](https://github.com/tobymao/sqlglot/commit/931b4fb425d452aec854f8c3cf213aa0229b4c73) - **teradata**: parse NAMED aliases *(PR [#8978](https://github.com/tobymao/sqlglot/pull/8978) by [@Walkeer](https://github.com/Walkeer))*
57
+ - [`539d7b9`](https://github.com/tobymao/sqlglot/commit/539d7b94dd553b1df478b46ed3a789383c5e82f1) - **Snowflake**: Handle Snowflake IS_ARRAY boolean type correctly *(PR [#9003](https://github.com/tobymao/sqlglot/pull/9003) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
58
+ - [`c226be9`](https://github.com/tobymao/sqlglot/commit/c226be91617b74ba2a5bf3edcedc9c561add7afa) - **Bigquery**: Add fix for BQ Extract DATETIME type *(PR [#9048](https://github.com/tobymao/sqlglot/pull/9048) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
59
+ - [`c4893ba`](https://github.com/tobymao/sqlglot/commit/c4893ba8c762947a397f0856b59cd104574f90ab) - **teradata**: parse XC hexadecimal character values [CODEX] *(PR [#9069](https://github.com/tobymao/sqlglot/pull/9069) by [@Walkeer](https://github.com/Walkeer))*
60
+ - [`834f494`](https://github.com/tobymao/sqlglot/commit/834f494633487450170ead2e34bd0be1081428e7) - **teradata**: parse XCV hexadecimal character literals [CODEX] *(PR [#9141](https://github.com/tobymao/sqlglot/pull/9141) by [@Walkeer](https://github.com/Walkeer))*
61
+
62
+ ### :bug: Bug Fixes
63
+ - [`4a6fad3`](https://github.com/tobymao/sqlglot/commit/4a6fad3014a2de318a2223b896481acb8a37147a) - **mysql, spark**: return an empty string for a negative LEFT/RIGHT length in DuckDB [CLAUDE] *(PR [#8967](https://github.com/tobymao/sqlglot/pull/8967) by [@anishmehta24](https://github.com/anishmehta24))*
64
+ - [`6bff65f`](https://github.com/tobymao/sqlglot/commit/6bff65f64f943e64d08be11965d77f4a81386b0b) - **optimizer**: preserve NULL semantics when unnesting IN subqueries *(PR [#8990](https://github.com/tobymao/sqlglot/pull/8990) by [@georgesittas](https://github.com/georgesittas))*
65
+ - :arrow_lower_right: *fixes issue [#8984](https://github.com/tobymao/sqlglot/issues/8984) opened by [@ananya-patel81](https://github.com/ananya-patel81)*
66
+ - [`9738cfb`](https://github.com/tobymao/sqlglot/commit/9738cfbb22378bb94aa6b9ac26bd0dc3a8692ff0) - **optimizer**: preserve uncorrelated EXISTS subqueries *(PR [#8993](https://github.com/tobymao/sqlglot/pull/8993) by [@georgesittas](https://github.com/georgesittas))*
67
+ - :arrow_lower_right: *fixes issue [#8987](https://github.com/tobymao/sqlglot/issues/8987) opened by [@ananya-patel81](https://github.com/ananya-patel81)*
68
+ - [`c4130f4`](https://github.com/tobymao/sqlglot/commit/c4130f48d1bc4721682c89e0e413c212daa05581) - **optimizer**: guard string range simplification by column type *(PR [#8994](https://github.com/tobymao/sqlglot/pull/8994) by [@georgesittas](https://github.com/georgesittas))*
69
+ - :arrow_lower_right: *fixes issue [#8988](https://github.com/tobymao/sqlglot/issues/8988) opened by [@ananya-patel81](https://github.com/ananya-patel81)*
70
+ - [`14f79fe`](https://github.com/tobymao/sqlglot/commit/14f79fe818bd5a2dbe5743fcc88ab05acb9a1055) - **optimizer**: preserve merged keys in chained USING joins [CODEX] *(PR [#8992](https://github.com/tobymao/sqlglot/pull/8992) by [@georgesittas](https://github.com/georgesittas))*
71
+ - :arrow_lower_right: *fixes issue [#8986](https://github.com/tobymao/sqlglot/issues/8986) opened by [@ananya-patel81](https://github.com/ananya-patel81)*
72
+ - [`64edeec`](https://github.com/tobymao/sqlglot/commit/64edeecbee4be9d743d84fe06f8d920e34f03c43) - **optimizer**: preserve outer join NULLs when merging subqueries *(PR [#8995](https://github.com/tobymao/sqlglot/pull/8995) by [@georgesittas](https://github.com/georgesittas))*
73
+ - :arrow_lower_right: *fixes issue [#8983](https://github.com/tobymao/sqlglot/issues/8983) opened by [@ananya-patel81](https://github.com/ananya-patel81)*
74
+ - [`600e73b`](https://github.com/tobymao/sqlglot/commit/600e73b05805b3dffd6189288b473cd45ce19d8c) - **duckdb**: preserve correlated ALL semantics *(PR [#8991](https://github.com/tobymao/sqlglot/pull/8991) by [@georgesittas](https://github.com/georgesittas))*
75
+ - :arrow_lower_right: *fixes issue [#8985](https://github.com/tobymao/sqlglot/issues/8985) opened by [@ananya-patel81](https://github.com/ananya-patel81)*
76
+ - [`0fcfc11`](https://github.com/tobymao/sqlglot/commit/0fcfc119b42d1103b97fd888cfda365629c8d676) - **schema**: avoid retaining queries in schema caches *(PR [#8999](https://github.com/tobymao/sqlglot/pull/8999) by [@georgesittas](https://github.com/georgesittas))*
77
+ - :arrow_lower_right: *fixes issue [#8997](https://github.com/tobymao/sqlglot/issues/8997) opened by [@NikitaYurasov](https://github.com/NikitaYurasov)*
78
+ - [`ddc22ff`](https://github.com/tobymao/sqlglot/commit/ddc22ffcdb8cef8f4fdaecdd69747906b2d0a907) - **snowflake**: resolve 'e' flag capture group default in REGEXP_SUBSTR / REGEXP_SUBSTR_ALL *(PR [#8961](https://github.com/tobymao/sqlglot/pull/8961) by [@fivetran-kwoodbeck](https://github.com/fivetran-kwoodbeck))*
79
+ - [`715c4e3`](https://github.com/tobymao/sqlglot/commit/715c4e32d9bf349cab789f2e03b99b319563644d) - **optimizer**: preserve parenthesized joins *(PR [#9001](https://github.com/tobymao/sqlglot/pull/9001) by [@georgesittas](https://github.com/georgesittas))*
80
+ - :arrow_lower_right: *fixes issue [#9000](https://github.com/tobymao/sqlglot/issues/9000) opened by [@theblair](https://github.com/theblair)*
81
+ - [`39ea442`](https://github.com/tobymao/sqlglot/commit/39ea442e9b0fcbed8704b78b2a82563e41095af6) - **teradata**: handle overloaded TRUNC and DateTrunc transpilation *(PR [#8980](https://github.com/tobymao/sqlglot/pull/8980) by [@EduardoAndradeSLima](https://github.com/EduardoAndradeSLima))*
82
+ - [`9d77c91`](https://github.com/tobymao/sqlglot/commit/9d77c912450a80cf1423c8bc9e91994a750a53ee) - **mysql**: flag @> and <@ array operators as unsupported [CLAUDE] *(PR [#9012](https://github.com/tobymao/sqlglot/pull/9012) by [@zgurung](https://github.com/zgurung))*
83
+ - [`0ccd0ab`](https://github.com/tobymao/sqlglot/commit/0ccd0ab4542b53a8f6055da52b679db53ef3cc1f) - **parser**: require valid unit for interval + continuation *(PR [#9015](https://github.com/tobymao/sqlglot/pull/9015) by [@ansh-rohilla](https://github.com/ansh-rohilla))*
84
+ - :arrow_lower_right: *fixes issue [#9014](https://github.com/tobymao/sqlglot/issues/9014) opened by [@JabberWocky-22](https://github.com/JabberWocky-22)*
85
+ - [`233e6f3`](https://github.com/tobymao/sqlglot/commit/233e6f378f2b291628fa1dbf42dabf7491806066) - **generator**: prevent SELECT_KINDS leaks in compiled builds *(PR [#9026](https://github.com/tobymao/sqlglot/pull/9026) by [@georgesittas](https://github.com/georgesittas))*
86
+ - :arrow_lower_right: *fixes issue [#9019](https://github.com/tobymao/sqlglot/issues/9019) opened by [@arthurlaquieze](https://github.com/arthurlaquieze)*
87
+ - [`8e9f43a`](https://github.com/tobymao/sqlglot/commit/8e9f43a9919ef702ce478fad39ffac3ecef301ef) - **postgres**: avoid duplicate function parameter modes *(PR [#9020](https://github.com/tobymao/sqlglot/pull/9020) by [@georgesittas](https://github.com/georgesittas))*
88
+ - :arrow_lower_right: *fixes issue [#9008](https://github.com/tobymao/sqlglot/issues/9008) opened by [@rileythomp](https://github.com/rileythomp)*
89
+ - [`c111d0e`](https://github.com/tobymao/sqlglot/commit/c111d0e88d5de8cf782f80813c1c1185ef7cd001) - **databricks**: preserve UNNEST join semantics *(PR [#9025](https://github.com/tobymao/sqlglot/pull/9025) by [@georgesittas](https://github.com/georgesittas))*
90
+ - :arrow_lower_right: *fixes issue [#9018](https://github.com/tobymao/sqlglot/issues/9018) opened by [@swimming-potato](https://github.com/swimming-potato)*
91
+ - [`3463d9e`](https://github.com/tobymao/sqlglot/commit/3463d9ecab436616828f4fe0b20b0824608edf26) - **postgres**: parse CONVERT as charset conversion *(PR [#9024](https://github.com/tobymao/sqlglot/pull/9024) by [@georgesittas](https://github.com/georgesittas))*
92
+ - :arrow_lower_right: *fixes issue [#9016](https://github.com/tobymao/sqlglot/issues/9016) opened by [@JabberWocky-22](https://github.com/JabberWocky-22)*
93
+ - [`c7be595`](https://github.com/tobymao/sqlglot/commit/c7be595d85b232e62bf0b39bd604a26fe4331f34) - preserve Snowflake ASOF join semantics when transpiling *(PR [#9029](https://github.com/tobymao/sqlglot/pull/9029) by [@georgesittas](https://github.com/georgesittas))*
94
+ - :arrow_lower_right: *fixes issue [#9027](https://github.com/tobymao/sqlglot/issues/9027) opened by [@Ankitkj1999](https://github.com/Ankitkj1999)*
95
+ - [`5c473b2`](https://github.com/tobymao/sqlglot/commit/5c473b241c60a0f685a18bceb74466a2273a1e54) - **teradata**: preserve BYTEINT type identity [CODEX] *(PR [#9030](https://github.com/tobymao/sqlglot/pull/9030) by [@Walkeer](https://github.com/Walkeer))*
96
+ - [`8688c12`](https://github.com/tobymao/sqlglot/commit/8688c120ffee4c9b7d1ad2aa1373bfbe6d37a665) - preserve TRUNC calendar semantics across dialects *(PR [#9021](https://github.com/tobymao/sqlglot/pull/9021) by [@georgesittas](https://github.com/georgesittas))*
97
+ - [`3f22a0e`](https://github.com/tobymao/sqlglot/commit/3f22a0eef026441c27e718ee68ccacd959ca42e9) - **postgres**: preserve generate_series step semantics [CODEX] *(PR [#9023](https://github.com/tobymao/sqlglot/pull/9023) by [@georgesittas](https://github.com/georgesittas))*
98
+ - :arrow_lower_right: *fixes issue [#9017](https://github.com/tobymao/sqlglot/issues/9017) opened by [@JabberWocky-22](https://github.com/JabberWocky-22)*
99
+ - [`7dbf610`](https://github.com/tobymao/sqlglot/commit/7dbf610a9be24ee725b037f6faf37541b85c7bcb) - **optimizer**: prevent predicate pushdown through DISTINCT ON *(PR [#9035](https://github.com/tobymao/sqlglot/pull/9035) by [@georgesittas](https://github.com/georgesittas))*
100
+ - :arrow_lower_right: *fixes issue [#9031](https://github.com/tobymao/sqlglot/issues/9031) opened by [@xgbtxy](https://github.com/xgbtxy)*
101
+ - [`24503a1`](https://github.com/tobymao/sqlglot/commit/24503a1f148795ff77a9fe6e99b28bdce20a2658) - **optimizer**: preserve positional joins during optimization *(PR [#9042](https://github.com/tobymao/sqlglot/pull/9042) by [@georgesittas](https://github.com/georgesittas))*
102
+ - :arrow_lower_right: *fixes issue [#9038](https://github.com/tobymao/sqlglot/issues/9038) opened by [@Ankitkj1999](https://github.com/Ankitkj1999)*
103
+ - [`8c0c82e`](https://github.com/tobymao/sqlglot/commit/8c0c82e4b4cc083683942e38d69c266557ee97f0) - **teradata**: recognize CHARACTERS as character length [CODEX] *(PR [#9044](https://github.com/tobymao/sqlglot/pull/9044) by [@Walkeer](https://github.com/Walkeer))*
104
+ - [`6b2cef8`](https://github.com/tobymao/sqlglot/commit/6b2cef8a3c180478b4b265f6cc18f0c5346dd696) - **teradata**: recognize CURDATE() as current date [CODEX] *(PR [#9047](https://github.com/tobymao/sqlglot/pull/9047) by [@Walkeer](https://github.com/Walkeer))*
105
+ - [`0cac007`](https://github.com/tobymao/sqlglot/commit/0cac00719ffc0604fd7c63c9e230bc4925ae8e26) - **teradata**: omit empty parentheses from CURRENT_TIME [CODEX] *(PR [#9050](https://github.com/tobymao/sqlglot/pull/9050) by [@Walkeer](https://github.com/Walkeer))*
106
+ - [`e7e7f6c`](https://github.com/tobymao/sqlglot/commit/e7e7f6c45fdcdb5d56ecd4e90279e46503f331dd) - **optimizer**: preserve semi and anti join aliases in ON clauses *(PR [#9043](https://github.com/tobymao/sqlglot/pull/9043) by [@georgesittas](https://github.com/georgesittas))*
107
+ - :arrow_lower_right: *fixes issue [#9037](https://github.com/tobymao/sqlglot/issues/9037) opened by [@Ankitkj1999](https://github.com/Ankitkj1999)*
108
+ - [`61f63f0`](https://github.com/tobymao/sqlglot/commit/61f63f029a533c11b7db3446ffb758e27440a30b) - **teradata**: recognize CURTIME alias [CODEX] *(PR [#9059](https://github.com/tobymao/sqlglot/pull/9059) by [@Walkeer](https://github.com/Walkeer))*
109
+ - [`573e3cc`](https://github.com/tobymao/sqlglot/commit/573e3cca4d5fe701a6451bf1f04f0c8b5be4fe1c) - **optimizer**: preserve filters around special joins *(PR [#9040](https://github.com/tobymao/sqlglot/pull/9040) by [@georgesittas](https://github.com/georgesittas))*
110
+ - :arrow_lower_right: *fixes issue [#9036](https://github.com/tobymao/sqlglot/issues/9036) opened by [@Ankitkj1999](https://github.com/Ankitkj1999)*
111
+ - [`0f950e8`](https://github.com/tobymao/sqlglot/commit/0f950e8643318c71e356baa953f98a855af73c9e) - **teradata**: generate native DAYOFWEEK [CODEX] *(PR [#9064](https://github.com/tobymao/sqlglot/pull/9064) by [@Walkeer](https://github.com/Walkeer))*
112
+ - [`1357b56`](https://github.com/tobymao/sqlglot/commit/1357b5622dc80f9ba72187a02c7fa510e456ad12) - **duckdb**: count elapsed BigQuery timestamp units *(commit by [@fivetran-kwoodbeck](https://github.com/fivetran-kwoodbeck))*
113
+ - [`0d2f459`](https://github.com/tobymao/sqlglot/commit/0d2f459b9cd67bc4c2bf2853b09e0fe3b26426c9) - **parser**: parse qualified file format names in COPY INTO *(PR [#9054](https://github.com/tobymao/sqlglot/pull/9054) by [@zgurung](https://github.com/zgurung))*
114
+ - [`f7e901a`](https://github.com/tobymao/sqlglot/commit/f7e901a6fc848587ff461135ac7175984b6167d3) - **optimizer**: preserve single-row joins with USING, NATURAL, or outer sides [GEMINI] *(PR [#9053](https://github.com/tobymao/sqlglot/pull/9053) by [@xgbtxy](https://github.com/xgbtxy))*
115
+ - :arrow_lower_right: *fixes issue [#9052](https://github.com/tobymao/sqlglot/issues/9052) opened by [@xgbtxy](https://github.com/xgbtxy)*
116
+ - [`3c55eac`](https://github.com/tobymao/sqlglot/commit/3c55eacc64989f03eef1a99e96b738be2b0d3238) - **duckdb**: preserve timestamp difference overload semantics *(commit by [@georgesittas](https://github.com/georgesittas))*
117
+ - [`0e534d4`](https://github.com/tobymao/sqlglot/commit/0e534d4e74a8f2a7ff53870183609fae43649b58) - **parser**: gate multi-part interval addition behind dialect setting *(PR [#9057](https://github.com/tobymao/sqlglot/pull/9057) by [@ansh-rohilla](https://github.com/ansh-rohilla))*
118
+ - :arrow_lower_right: *fixes issue [#9055](https://github.com/tobymao/sqlglot/issues/9055) opened by [@JabberWocky-22](https://github.com/JabberWocky-22)*
119
+ - [`4c0e538`](https://github.com/tobymao/sqlglot/commit/4c0e538fdd93d14d8f29a987fc1b8dc4d7c552e7) - **oracle**: eliminate SEMI/ANTI joins, map VAR_POP and APPROX_COUNT_DISTINCT *(PR [#9067](https://github.com/tobymao/sqlglot/pull/9067) by [@imsurya26](https://github.com/imsurya26))*
120
+ - :arrow_lower_right: *fixes issue [#9061](https://github.com/tobymao/sqlglot/issues/9061) opened by [@haorein](https://github.com/haorein)*
121
+ - [`91c120c`](https://github.com/tobymao/sqlglot/commit/91c120c0ba447b41c6810a959ec1490ed341b9ae) - **postgres**: preserve date and interval arithmetic result types *(PR [#9070](https://github.com/tobymao/sqlglot/pull/9070) by [@georgesittas](https://github.com/georgesittas))*
122
+ - :arrow_lower_right: *fixes issue [#9056](https://github.com/tobymao/sqlglot/issues/9056) opened by [@JabberWocky-22](https://github.com/JabberWocky-22)*
123
+ - [`ec96d31`](https://github.com/tobymao/sqlglot/commit/ec96d31244ac7df0fd5bee2063c65d2b7de049b2) - **redshift**: type annotation for Redshift AT TIME ZONE *(PR [#9071](https://github.com/tobymao/sqlglot/pull/9071) by [@fivetran-kwoodbeck](https://github.com/fivetran-kwoodbeck))*
124
+ - [`968314b`](https://github.com/tobymao/sqlglot/commit/968314baa0b2eb3c66bf9ecfa3776cdac14dd044) - **redshift**: infer AT TIME ZONE types for DATE and TIMETZ *(PR [#9073](https://github.com/tobymao/sqlglot/pull/9073) by [@georgesittas](https://github.com/georgesittas))*
125
+ - [`76fcf25`](https://github.com/tobymao/sqlglot/commit/76fcf25549dc6a4ce59af6e1ee7f21e332243c65) - **clickhouse**: generate array sorts and logical aggregates *(PR [#9072](https://github.com/tobymao/sqlglot/pull/9072) by [@haorein](https://github.com/haorein))*
126
+ - :arrow_lower_right: *fixes issue [#9063](https://github.com/tobymao/sqlglot/issues/9063) opened by [@haorein](https://github.com/haorein)*
127
+ - [`38437a3`](https://github.com/tobymao/sqlglot/commit/38437a3bf91f908927f4980fbf6cb7963e523d8b) - **clickhouse**: preserve logical aggregate null and numeric semantics *(commit by [@georgesittas](https://github.com/georgesittas))*
128
+ - [`1965183`](https://github.com/tobymao/sqlglot/commit/19651830bda35784b85781767510d2dbee95b936) - **generator**: add ORDER BY to window functions that require it *(PR [#9066](https://github.com/tobymao/sqlglot/pull/9066) by [@baruchoxman](https://github.com/baruchoxman))*
129
+ - :arrow_lower_right: *fixes issue [#9065](https://github.com/tobymao/sqlglot/issues/9065) opened by [@baruchoxman](https://github.com/baruchoxman)*
130
+ - [`79716c7`](https://github.com/tobymao/sqlglot/commit/79716c77ffb007c09482ee2ddcf08b8ccf4c127f) - **oracle**: keep VARIANCE and VAR_SAMP apart *(PR [#9075](https://github.com/tobymao/sqlglot/pull/9075) by [@haorein](https://github.com/haorein))*
131
+ - :arrow_lower_right: *fixes issue [#9060](https://github.com/tobymao/sqlglot/issues/9060) opened by [@haorein](https://github.com/haorein)*
132
+ - [`593835a`](https://github.com/tobymao/sqlglot/commit/593835aa3d804a3e399cce38f5c52a25e5e79a16) - **oracle**: preserve variance semantics for windows and empty inputs *(commit by [@georgesittas](https://github.com/georgesittas))*
133
+ - [`036030a`](https://github.com/tobymao/sqlglot/commit/036030a42170acd3ca3cc279fcb43656155fcf5c) - **generator**: preserve original variance function names *(commit by [@georgesittas](https://github.com/georgesittas))*
134
+ - [`06d6bcc`](https://github.com/tobymao/sqlglot/commit/06d6bcc5eaaaab52ddc32d736bdacc2e1d681c12) - **presto**: mark the third SLICE argument as a length [CLAUDE] *(PR [#9087](https://github.com/tobymao/sqlglot/pull/9087) by [@dayan02dev](https://github.com/dayan02dev))*
135
+ - [`b476d29`](https://github.com/tobymao/sqlglot/commit/b476d29f42eeabfd0c8a150b9239a344b02e68dd) - **sqlite**: preserve quoted PRAGMA identifiers [CODEX] *(PR [#9088](https://github.com/tobymao/sqlglot/pull/9088) by [@pengpengyi92](https://github.com/pengpengyi92))*
136
+ - [`b294f7f`](https://github.com/tobymao/sqlglot/commit/b294f7fa89c8a6f59d0c1c963777202d9ef59549) - **parser**: keep comments inside multi-word keywords *(PR [#9004](https://github.com/tobymao/sqlglot/pull/9004) by [@tobymao](https://github.com/tobymao))*
137
+ - :arrow_lower_right: *fixes issue [#8981](https://github.com/tobymao/sqlglot/issues/8981) opened by [@rileythomp](https://github.com/rileythomp)*
138
+ - [`3a25325`](https://github.com/tobymao/sqlglot/commit/3a25325d62b012eac714663dd359a9ed31768582) - **clickhouse**: raise ParseError for empty XOR calls [CODEX] *(PR [#9106](https://github.com/tobymao/sqlglot/pull/9106) by [@hector2394](https://github.com/hector2394))*
139
+ - :arrow_lower_right: *fixes issue [#9101](https://github.com/tobymao/sqlglot/issues/9101) opened by [@Sun-Wukhan](https://github.com/Sun-Wukhan)*
140
+ - [`2ec8bcc`](https://github.com/tobymao/sqlglot/commit/2ec8bcc6091758ad67e27e84598d170f3ca8f8f2) - **parser**: distinguish conditionless JOIN from comma joins *(PR [#9076](https://github.com/tobymao/sqlglot/pull/9076) by [@georgesittas](https://github.com/georgesittas))*
141
+ - [`784c0d7`](https://github.com/tobymao/sqlglot/commit/784c0d787efea81de5ddfae83f65f9ddc73e6117) - **teradata**: simplify XC literal handling *(PR [#9125](https://github.com/tobymao/sqlglot/pull/9125) by [@georgesittas](https://github.com/georgesittas))*
142
+ - [`cf16865`](https://github.com/tobymao/sqlglot/commit/cf1686591b014c427e25edc84ba63776424db89c) - **tsql**: coerce boolean casts in predicate positions [CODEX] *(PR [#9127](https://github.com/tobymao/sqlglot/pull/9127) by [@hector2394](https://github.com/hector2394))*
143
+ - :arrow_lower_right: *fixes issue [#9102](https://github.com/tobymao/sqlglot/issues/9102) opened by [@Sun-Wukhan](https://github.com/Sun-Wukhan)*
144
+ - [`913be7d`](https://github.com/tobymao/sqlglot/commit/913be7dbe897148ca516ac9de8f4c835d4ac5fa8) - **sqlite**: preserve unary plus affinity *(PR [#9126](https://github.com/tobymao/sqlglot/pull/9126) by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm))*
145
+ - :arrow_lower_right: *fixes issue [#9124](https://github.com/tobymao/sqlglot/issues/9124) opened by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm)*
146
+ - [`0f48d14`](https://github.com/tobymao/sqlglot/commit/0f48d1487a59dbc9ed78321d7a75950cca6addeb) - **optimizer**: don't decorrelate EXISTS predicates that use IS [CLAUDE] *(PR [#9121](https://github.com/tobymao/sqlglot/pull/9121) by [@hemtilva](https://github.com/hemtilva))*
147
+ - :arrow_lower_right: *fixes issue [#9120](https://github.com/tobymao/sqlglot/issues/9120) opened by [@hemtilva](https://github.com/hemtilva)*
148
+ - [`a97d8d6`](https://github.com/tobymao/sqlglot/commit/a97d8d63ebeaa5b9e2a94095f42df271b0ba4756) - **parser**: validate missing date arithmetic arguments *(commit by [@georgesittas](https://github.com/georgesittas))*
149
+ - :arrow_lower_right: *fixes issue [#9103](https://github.com/tobymao/sqlglot/issues/9103) opened by [@Sun-Wukhan](https://github.com/Sun-Wukhan)*
150
+ - [`ab10a79`](https://github.com/tobymao/sqlglot/commit/ab10a79f5966a72c66b0902926cef5f8168bb408) - **optimizer**: preserve parentheses under unary plus *(commit by [@georgesittas](https://github.com/georgesittas))*
151
+ - [`83d02ae`](https://github.com/tobymao/sqlglot/commit/83d02aeedd97366e0d9ebe6611047f7dbb40bebd) - **sqlite**: keep the exclusive end of RANGE in GENERATE_SERIES *(PR [#9123](https://github.com/tobymao/sqlglot/pull/9123) by [@DeepBuha06](https://github.com/DeepBuha06))*
152
+ - [`5b64475`](https://github.com/tobymao/sqlglot/commit/5b64475fc1ef950d3ae99d7d2d75de998342e378) - **bigquery**: type DATETIME_ADD/TIMESTAMP_ADD by their argument *(PR [#9117](https://github.com/tobymao/sqlglot/pull/9117) by [@VaggelisD](https://github.com/VaggelisD))*
153
+ - [`1a9c2d0`](https://github.com/tobymao/sqlglot/commit/1a9c2d0607019e82c7defab7d6c50ec489737401) - **sqlite**: map JSON and JSONB casts to JSON function ([#9113](https://github.com/tobymao/sqlglot/pull/9113)) *(PR [#9116](https://github.com/tobymao/sqlglot/pull/9116) by [@Gowthamsuryagolla](https://github.com/Gowthamsuryagolla))*
154
+ - :arrow_lower_right: *fixes issue [#9113](https://github.com/tobymao/sqlglot/issues/9113) opened by [@bardrop](https://github.com/bardrop)*
155
+ - [`14b6900`](https://github.com/tobymao/sqlglot/commit/14b69001c86abfbcf821ade0706749af23c18937) - **generator**: concatenate CHR calls for multi-argument CHAR *(PR [#9119](https://github.com/tobymao/sqlglot/pull/9119) by [@EnesSoydan](https://github.com/EnesSoydan))*
156
+ - :arrow_lower_right: *fixes issue [#8542](https://github.com/tobymao/sqlglot/issues/8542) opened by [@ParamTanna](https://github.com/ParamTanna)*
157
+ - [`361f808`](https://github.com/tobymao/sqlglot/commit/361f808132984bedfdb42e0950b1298bdd66a427) - **optimizer**: keep parentheses for reversed DATE_TRUNC comparisons under NOT *(PR [#9108](https://github.com/tobymao/sqlglot/pull/9108) by [@parthdembla007](https://github.com/parthdembla007))*
158
+ - :arrow_lower_right: *fixes issue [#9107](https://github.com/tobymao/sqlglot/issues/9107) opened by [@parthdembla007](https://github.com/parthdembla007)*
159
+ - [`b385119`](https://github.com/tobymao/sqlglot/commit/b385119d78f976519a08d1e94de8f25805b1040b) - preserve property comments and refine SQLite JSON cast tests *(commit by [@georgesittas](https://github.com/georgesittas))*
160
+ - [`df4496e`](https://github.com/tobymao/sqlglot/commit/df4496e48f5dec0c1105e31bc758d207e967b6ae) - **duckdb**: keep NULL and empty arrays for LATERAL VIEW OUTER as LEFT JOIN UNNEST [CLAUDE] *(PR [#9091](https://github.com/tobymao/sqlglot/pull/9091) by [@dayan02dev](https://github.com/dayan02dev))*
161
+ - [`d78ad66`](https://github.com/tobymao/sqlglot/commit/d78ad66cbdfda24e0ce9a1c535c7beaa6df1e18d) - **bigquery**: stabilize INFORMATION_SCHEMA round trips [CODEX] *(PR [#9133](https://github.com/tobymao/sqlglot/pull/9133) by [@georgesittas](https://github.com/georgesittas))*
162
+ - [`708fc0b`](https://github.com/tobymao/sqlglot/commit/708fc0bd605ac36561071c6924927c1c382aca35) - **optimizer**: keep LEFT JOINs onto UNION ALL derived tables in eliminate_joins [CLAUDE] *(PR [#9092](https://github.com/tobymao/sqlglot/pull/9092) by [@anishmehta24](https://github.com/anishmehta24))*
163
+ - [`c8e5853`](https://github.com/tobymao/sqlglot/commit/c8e5853d9979b34c2a4aab5b66c46bd674b62c9c) - **duckdb**: only match binary POSITION on byte boundaries *(commit by [@krish-goradia](https://github.com/krish-goradia))*
164
+ - [`3b6c49c`](https://github.com/tobymao/sqlglot/commit/3b6c49c8e440d65c16663d5d78ac9b7064b2389c) - **clickhouse**: map formatDateTime specifiers that differ from strftime *(commit by [@DeepBuha06](https://github.com/DeepBuha06))*
165
+ - [`35916ab`](https://github.com/tobymao/sqlglot/commit/35916abf778be027b31faf00564cf126d8c7dbf0) - **clickhouse**: preserve escaped time format specifiers *(commit by [@georgesittas](https://github.com/georgesittas))*
166
+ - [`505c4a3`](https://github.com/tobymao/sqlglot/commit/505c4a35d1c99c118377d5ef2a7c15f9e6b8f421) - **hive**: preserve sub-day DATEADD units in Hive and Spark [CODEX] *(PR [#9085](https://github.com/tobymao/sqlglot/pull/9085) by [@georgesittas](https://github.com/georgesittas))*
167
+ - :arrow_lower_right: *fixes issue [#9083](https://github.com/tobymao/sqlglot/issues/9083) opened by [@ryuan-cz](https://github.com/ryuan-cz)*
168
+ - [`e31d209`](https://github.com/tobymao/sqlglot/commit/e31d209ee0a3ed5aa35da952328aa03d475ce75d) - **bigquery**: rewrite LIKE ... ESCAPE literal patterns to backslash escapes *(PR [#9095](https://github.com/tobymao/sqlglot/pull/9095) by [@VaggelisD](https://github.com/VaggelisD))*
169
+ - [`ae3d013`](https://github.com/tobymao/sqlglot/commit/ae3d0139e760fe7bec499cd6fba3a53d727b6f8b) - **bigquery**: cast zoneless Presto/Trino AT TIME ZONE operand to TIMESTAMP *(PR [#9097](https://github.com/tobymao/sqlglot/pull/9097) by [@VaggelisD](https://github.com/VaggelisD))*
170
+ - [`8802c5a`](https://github.com/tobymao/sqlglot/commit/8802c5a7c9745703a29a824f4e245d44671ad940) - **generator**: keep the lambda of Spark's EXISTS(array, lambda) *(PR [#9140](https://github.com/tobymao/sqlglot/pull/9140) by [@EnesSoydan](https://github.com/EnesSoydan))*
171
+ - :arrow_lower_right: *fixes issue [#9032](https://github.com/tobymao/sqlglot/issues/9032) opened by [@Ankitkj1999](https://github.com/Ankitkj1999)*
172
+ - [`997b7cf`](https://github.com/tobymao/sqlglot/commit/997b7cfeb8cef2b361208bb72df7eead792cc0db) - **optimizer**: preserve BETWEEN SYMMETRIC semantics [CODEX] *(PR [#9142](https://github.com/tobymao/sqlglot/pull/9142) by [@Ramji-Purwar](https://github.com/Ramji-Purwar))*
173
+ - [`fccb238`](https://github.com/tobymao/sqlglot/commit/fccb2380b247f652e668d6508f1a3d2ff9a8eee2) - stop walking into udtf for walk_in_scope *(PR [#9099](https://github.com/tobymao/sqlglot/pull/9099) by [@barakalon](https://github.com/barakalon))*
174
+ - [`8c0dcfe`](https://github.com/tobymao/sqlglot/commit/8c0dcfe6872d5fbe1b65f62eb2b3269930dd3e55) - **sqlite**: omit default separator for DISTINCT aggregates [CODEX] *(PR [#9147](https://github.com/tobymao/sqlglot/pull/9147) by [@prathamchoksi](https://github.com/prathamchoksi))*
175
+ - :arrow_lower_right: *fixes issue [#9146](https://github.com/tobymao/sqlglot/issues/9146) opened by [@prathamchoksi](https://github.com/prathamchoksi)*
176
+ - [`152f69d`](https://github.com/tobymao/sqlglot/commit/152f69da577c9e9af7ee90c625668c23e576ef1c) - **optimizer**: retain conditional CROSS JOIN predicates [CODEX] *(PR [#9149](https://github.com/tobymao/sqlglot/pull/9149) by [@Ramji-Purwar](https://github.com/Ramji-Purwar))*
177
+ - [`0424c5d`](https://github.com/tobymao/sqlglot/commit/0424c5d9fcc007239a2324ca93e6cecfc74b5b67) - **duckdb**: preserve SQLite NULL group_concat separators [CODEX] *(PR [#9144](https://github.com/tobymao/sqlglot/pull/9144) by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm))*
178
+ - :arrow_lower_right: *fixes issue [#9143](https://github.com/tobymao/sqlglot/issues/9143) opened by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm)*
179
+ - [`34ac378`](https://github.com/tobymao/sqlglot/commit/34ac378866650d732a1de72c96058078938c95f3) - **optimizer**: preserve NULL semantics when decorrelating IN subqueries *(PR [#9151](https://github.com/tobymao/sqlglot/pull/9151) by [@geooo109](https://github.com/geooo109))*
180
+ - :arrow_lower_right: *fixes issue [#9122](https://github.com/tobymao/sqlglot/issues/9122) opened by [@hemtilva](https://github.com/hemtilva)*
181
+ - [`798a1d7`](https://github.com/tobymao/sqlglot/commit/798a1d77270da43041b37b4f5166252571f1243f) - **redshift**: preserve date unit expressions *(commit by [@georgesittas](https://github.com/georgesittas))*
182
+
183
+ ### :zap: Performance Improvements
184
+ - [`6332eff`](https://github.com/tobymao/sqlglot/commit/6332eff5414991744a5055bacafdadbd4db5ae57) - **expressions**: shallow-copy immutable meta in deepcopy [CLAUDE] *(PR [#9013](https://github.com/tobymao/sqlglot/pull/9013) by [@g4lb](https://github.com/g4lb))*
185
+
186
+ ### :wrench: Chores
187
+ - [`d95ad4f`](https://github.com/tobymao/sqlglot/commit/d95ad4f026f37a9083c697819ac4247ed919ceee) - sync conditionless join fixtures *(commit by [@georgesittas](https://github.com/georgesittas))*
188
+
189
+
4
190
  ## [v30.31.0] - 2026-11-10
5
191
  ### :boom: BREAKING CHANGES
6
192
  - due to [`56525f7`](https://github.com/tobymao/sqlglot/commit/56525f74855190c45b102e7f0aee7d6d80d3a480) - NormalizationStrategy.CASE_INSENSITIVE_EXCEPT_TALBES *(PR [#8935](https://github.com/tobymao/sqlglot/pull/8935) by [@barakalon](https://github.com/barakalon))*:
@@ -16710,3 +16896,5 @@ pip install "sqlglot[c]" # compiled — faster, but no subclassing
16710
16896
  [v30.29.0]: https://github.com/tobymao/sqlglot/compare/v30.28.0...v30.29.0
16711
16897
  [v30.30.0]: https://github.com/tobymao/sqlglot/compare/v30.29.0...v30.30.0
16712
16898
  [v30.31.0]: https://github.com/tobymao/sqlglot/compare/v30.30.0...v30.31.0
16899
+ [v30.32.0]: https://github.com/tobymao/sqlglot/compare/v30.31.0...v30.32.0
16900
+ [v30.33.0]: https://github.com/tobymao/sqlglot/compare/v30.32.0...v30.33.0
@@ -4,7 +4,7 @@
4
4
  SQLGlot is a no-dependency SQL parser, transpiler, optimizer, and engine written in pure Python. It supports 31+ SQL dialects and can transpile between them while preserving semantics. The codebase is performance-critical despite being pure Python, with an optional mypyc-compiled C extension for speed improvements (`sqlglotc/`).
5
5
 
6
6
  ## Development Commands
7
- Before contributing read CONTRIBUTING.md
7
+ Read [CONTRIBUTING.md](CONTRIBUTING.md) before contributing. Only maintainers submit pull requests. External contributors can report bugs and request features through GitHub issues.
8
8
 
9
9
  ### Installation
10
10
  ```bash
@@ -7,14 +7,14 @@ easy and transparent as possible, whether it's:
7
7
 
8
8
  - Reporting a bug
9
9
  - Discussing the current state of the code
10
- - Submitting a fix
10
+ - Suggesting a fix
11
11
  - Proposing new features
12
12
 
13
13
  ## We develop with GitHub
14
14
 
15
- We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
15
+ SQLGlot accepts pull requests only from maintainers. Anyone can [open an issue](https://github.com/tobymao/sqlglot/issues/new/choose) to report a bug, suggest a fix, or request a feature. The core team decides which issues to take on based on project priorities.
16
16
 
17
- ## Finding tasks to work on
17
+ ## Finding tasks to work on (maintainers only)
18
18
 
19
19
  When the core SQLGlot team does not plan to work on an issue, it is usually closed as "not planned". This may happen
20
20
  when a request is exceptionally difficult to address, or because the team deems that it shouldn't be prioritized.
@@ -25,9 +25,7 @@ need guidance, feel free to ask for clarifications.
25
25
 
26
26
  Before taking on a task, consider studying the [AST primer](https://github.com/tobymao/sqlglot/blob/main/posts/ast_primer.md) and the [onboarding document](https://github.com/tobymao/sqlglot/blob/main/posts/onboarding.md).
27
27
 
28
- ## Submitting code changes
29
-
30
- Pull requests are the best way to propose changes to the codebase, and we actively welcome them.
28
+ ## Submitting code changes (maintainers only)
31
29
 
32
30
  Pull requests should be small and they need to follow the conventions of the project. For features that require
33
31
  many changes, please reach out to us on [Slack](https://tobikodata.com/slack) before making a request, in order
@@ -63,7 +61,7 @@ Our policy:
63
61
  - **Disclose LLM use.** Human contributors who used an LLM are encouraged to mention it in a disclaimer.
64
62
  - **Write the PR description yourself.** Keep it concise and human-written; a few clear sentences without
65
63
  emojis summaries and restatements of the diff are worth more than a wall of text.
66
- - **If you are a new contributor, prefer opening an issue over a PR.** We are interested in growing
64
+ - **If you are an external contributor, open an issue.** We are interested in growing
67
65
  long-term contributors who genuinely understand the codebase. If you have found a bug or have a fix in
68
66
  mind, open a well-written issue with a reproducible example (see below). The core team can usually
69
67
  address it faster and more accurately than it takes to review an AI-generated PR.
@@ -86,11 +84,9 @@ We use GitHub issues to track public bugs. Report a bug by opening a new issue.
86
84
  - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
87
85
  - References (e.g. documentation pages related to the issue)
88
86
 
89
- ## Start a discussion using GitHub's [discussions](https://github.com/tobymao/sqlglot/discussions)
87
+ ## Request a feature
90
88
 
91
- [We use GitHub discussions](https://github.com/tobymao/sqlglot/discussions/190) to discuss about the current state
92
- of the code. If you want to propose a new feature, this is the right place to do it. Just start a discussion, and
93
- let us know why you think this feature would be a good addition to SQLGlot (by possibly including some usage examples).
89
+ To propose a feature, [open an issue](https://github.com/tobymao/sqlglot/issues/new/choose) explaining why it would be a good addition to SQLGlot. Include a usage example if you can.
94
90
 
95
91
  ## Deployment (maintainers only)
96
92
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlglot
3
- Version: 30.32.0
3
+ Version: 30.34.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.32.0; python_version >= "3.10" and extra == "c"
37
+ Requires-Dist: sqlglotc==30.34.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.32.0; python_version >= "3.10" and extra == "rs"
40
+ Requires-Dist: sqlglotc==30.34.0; python_version >= "3.10" and extra == "rs"
41
41
  Dynamic: license-file
42
42
  Dynamic: provides-extra
43
43
 
@@ -53,7 +53,9 @@ SQLGlot can detect a variety of [syntax errors](#parser-errors), such as unbalan
53
53
 
54
54
  Learn more about SQLGlot in the API [documentation](https://sqlglot.com/) and the expression tree [primer](https://github.com/tobymao/sqlglot/blob/main/posts/ast_primer.md).
55
55
 
56
- Contributions are very welcome in SQLGlot; read the [contribution guide](https://github.com/tobymao/sqlglot/blob/main/CONTRIBUTING.md) and the [onboarding document](https://github.com/tobymao/sqlglot/blob/main/posts/onboarding.md) to get started!
56
+ SQLGlot now accepts pull requests only from maintainers. Reviewing the growing volume of LLM-generated pull requests was taking time away from fixing bugs and improving SQLGlot.
57
+
58
+ You can still contribute by [opening an issue](https://github.com/tobymao/sqlglot/issues/new/choose) to report a bug or request a feature. The core team decides which issues to take on and which to close as "not planned" based on project priorities. See the [contribution guide](https://github.com/tobymao/sqlglot/blob/main/CONTRIBUTING.md) for help writing a report.
57
59
 
58
60
  ## Table of Contents
59
61
 
@@ -326,7 +328,7 @@ sqlglot.errors.UnsupportedError: Argument 'accuracy' is not supported for expres
326
328
 
327
329
  Some queries need additional information to be transpiled accurately, such as the schemas of the referenced tables. This is because certain transformations are type-sensitive and depend on type inference. The `qualify` and `annotate_types` optimizer [rules](https://github.com/tobymao/sqlglot/tree/main/sqlglot/optimizer) can provide this information, but they are not used by default because they add overhead and complexity.
328
330
 
329
- Transpilation is a hard problem, so SQLGlot solves it incrementally. Some dialect pairs may lack support for certain inputs, but coverage improves over time. We highly appreciate well-documented and tested issues or PRs, so feel free to [reach out](#get-in-touch) if you need guidance!
331
+ Transpilation is a hard problem, so SQLGlot solves it incrementally. Some dialect pairs may lack support for certain inputs, but coverage improves over time. If a translation is incorrect, please [open an issue](https://github.com/tobymao/sqlglot/issues/new/choose) with the input SQL, the source and target dialects, and the output you expected.
330
332
 
331
333
  ### Build and Modify SQL
332
334
 
@@ -681,7 +683,7 @@ Without dateutil, the optimizer leaves this arithmetic unevaluated.
681
683
 
682
684
  **Official Dialects** are maintained by the core SQLGlot team with higher priority for bug fixes and feature additions.
683
685
 
684
- **Community Dialects** are developed and maintained primarily through community contributions. These are fully functional but may receive lower priority for issue resolution compared to officially supported dialects. We welcome and encourage community contributions to improve these dialects.
686
+ **Community Dialects** grew out of community contributions. These are fully functional but may receive lower priority for issue resolution compared to officially supported dialects. We welcome bug reports and feature requests for these dialects.
685
687
 
686
688
  **Plugin Dialects** (supported since v28.6.0) are third-party dialects developed and maintained in external repositories by independent contributors. These dialects are not part of the SQLGlot codebase and are distributed as separate packages. The SQLGlot team does not provide support or maintenance for plugin dialects — please direct any issues or feature requests to their respective repositories. See [Creating a Dialect Plugin](#creating-a-dialect-plugin) below for information on how to build your own.
687
689
 
@@ -10,7 +10,9 @@ SQLGlot can detect a variety of [syntax errors](#parser-errors), such as unbalan
10
10
 
11
11
  Learn more about SQLGlot in the API [documentation](https://sqlglot.com/) and the expression tree [primer](https://github.com/tobymao/sqlglot/blob/main/posts/ast_primer.md).
12
12
 
13
- Contributions are very welcome in SQLGlot; read the [contribution guide](https://github.com/tobymao/sqlglot/blob/main/CONTRIBUTING.md) and the [onboarding document](https://github.com/tobymao/sqlglot/blob/main/posts/onboarding.md) to get started!
13
+ SQLGlot now accepts pull requests only from maintainers. Reviewing the growing volume of LLM-generated pull requests was taking time away from fixing bugs and improving SQLGlot.
14
+
15
+ You can still contribute by [opening an issue](https://github.com/tobymao/sqlglot/issues/new/choose) to report a bug or request a feature. The core team decides which issues to take on and which to close as "not planned" based on project priorities. See the [contribution guide](https://github.com/tobymao/sqlglot/blob/main/CONTRIBUTING.md) for help writing a report.
14
16
 
15
17
  ## Table of Contents
16
18
 
@@ -283,7 +285,7 @@ sqlglot.errors.UnsupportedError: Argument 'accuracy' is not supported for expres
283
285
 
284
286
  Some queries need additional information to be transpiled accurately, such as the schemas of the referenced tables. This is because certain transformations are type-sensitive and depend on type inference. The `qualify` and `annotate_types` optimizer [rules](https://github.com/tobymao/sqlglot/tree/main/sqlglot/optimizer) can provide this information, but they are not used by default because they add overhead and complexity.
285
287
 
286
- Transpilation is a hard problem, so SQLGlot solves it incrementally. Some dialect pairs may lack support for certain inputs, but coverage improves over time. We highly appreciate well-documented and tested issues or PRs, so feel free to [reach out](#get-in-touch) if you need guidance!
288
+ Transpilation is a hard problem, so SQLGlot solves it incrementally. Some dialect pairs may lack support for certain inputs, but coverage improves over time. If a translation is incorrect, please [open an issue](https://github.com/tobymao/sqlglot/issues/new/choose) with the input SQL, the source and target dialects, and the output you expected.
287
289
 
288
290
  ### Build and Modify SQL
289
291
 
@@ -638,7 +640,7 @@ Without dateutil, the optimizer leaves this arithmetic unevaluated.
638
640
 
639
641
  **Official Dialects** are maintained by the core SQLGlot team with higher priority for bug fixes and feature additions.
640
642
 
641
- **Community Dialects** are developed and maintained primarily through community contributions. These are fully functional but may receive lower priority for issue resolution compared to officially supported dialects. We welcome and encourage community contributions to improve these dialects.
643
+ **Community Dialects** grew out of community contributions. These are fully functional but may receive lower priority for issue resolution compared to officially supported dialects. We welcome bug reports and feature requests for these dialects.
642
644
 
643
645
  **Plugin Dialects** (supported since v28.6.0) are third-party dialects developed and maintained in external repositories by independent contributors. These dialects are not part of the SQLGlot codebase and are distributed as separate packages. The SQLGlot team does not provide support or maintenance for plugin dialects — please direct any issues or feature requests to their respective repositories. See [Creating a Dialect Plugin](#creating-a-dialect-plugin) below for information on how to build your own.
644
646
 
@@ -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.32.0'
22
- __version_tuple__ = version_tuple = (30, 32, 0)
21
+ __version__ = version = '30.34.0'
22
+ __version_tuple__ = version_tuple = (30, 34, 0)
23
23
 
24
- __commit_id__ = commit_id = 'g798a1d772'
24
+ __commit_id__ = commit_id = 'g4caae634b'
@@ -21,6 +21,7 @@ ANONYMIZED_TYPES = {
21
21
  TokenType.RAW_STRING,
22
22
  TokenType.STRING,
23
23
  TokenType.UNICODE_STRING,
24
+ TokenType.UNICODE_IDENTIFIER,
24
25
  TokenType.VAR,
25
26
  }
26
27
  QUOTED_TYPES = ANONYMIZED_TYPES - {TokenType.NUMBER, TokenType.VAR}
@@ -152,8 +153,9 @@ def render(sql: str, tokens: list[Token], dialect: DialectType = None) -> str:
152
153
 
153
154
  result = []
154
155
  prev = 0
156
+ uescape_alias = ""
155
157
 
156
- for token in tokens:
158
+ for i, token in enumerate(tokens):
157
159
  result.append(_redact(sql[prev : token.start], comments, nested))
158
160
  prev = token.end + 1
159
161
  span = sql[token.start : prev]
@@ -162,6 +164,13 @@ def render(sql: str, tokens: list[Token], dialect: DialectType = None) -> str:
162
164
  result.append(token.text)
163
165
  elif token.token_type in ANONYMIZED_TYPES:
164
166
  result.append(_fit(span, token.text, quotes, token.token_type))
167
+ elif token.token_type == TokenType.UESCAPE:
168
+ if token.text.upper() == "UESCAPE":
169
+ uescape_alias = tokens[i - 1].text
170
+ elif token.text and token.text in uescape_alias:
171
+ # Keep the alias literal when it contains the clause's escape character.
172
+ span = "'!'".ljust(len(span))
173
+ result.append(span)
165
174
  else:
166
175
  result.append(span)
167
176
 
@@ -251,6 +260,8 @@ def _fit(span: str, alias: str, quotes: list[tuple[str, str]], token_type: Token
251
260
  break
252
261
 
253
262
  width = len(span) - start - end
263
+ if token_type == TokenType.IDENTIFIER and end and len(alias) < width:
264
+ return (span[:start] + alias + span[-end:]).ljust(len(span))
254
265
  pad = "0" if token_type == TokenType.NUMBER else "a"
255
266
 
256
267
  return span[:start] + alias[:width].rjust(width, pad) + span[len(span) - end :]
@@ -70,6 +70,9 @@ class BigQuery(Dialect):
70
70
  # Preserve %E6S instead of expanding to %T.%f - since both %E6S & %T.%f are semantically different in BigQuery
71
71
  # %E6S is semantically different from %T.%f: %E6S works as a single atomic specifier for seconds with microseconds, while %T.%f expands incorrectly and fails to parse.
72
72
  "%H:%M:%S.%f": "%H:%M:%E6S",
73
+ # Milliseconds are only written, so BigQuery's own %E3S is read and kept as is
74
+ "%S.%f_three": "%E3S",
75
+ "%H:%M:%S.%f_three": "%H:%M:%E3S",
73
76
  }
74
77
 
75
78
  FORMAT_MAPPING = {
@@ -16,9 +16,11 @@ class ClickHouse(Dialect):
16
16
  INDEX_OFFSET = 1
17
17
  NORMALIZE_FUNCTIONS: bool | str = False
18
18
  NULL_ORDERING = "nulls_are_last"
19
+ SUPPORTS_ORDER_BY_ALL = True
19
20
  SUPPORTS_USER_DEFINED_TYPES = False
20
21
  LOG_BASE_FIRST: bool | None = None
21
22
  FORCE_EARLY_ALIAS_REF_EXPANSION = True
23
+ PREFER_PROJECTION_ALIASES_IN_DOT_PATHS = True
22
24
  ORIGINAL_NAME_META_KEY = "clickhouse_name"
23
25
  NUMBERS_CAN_BE_UNDERSCORE_SEPARATED = True
24
26
  IDENTIFIERS_CAN_START_WITH_DIGIT = True
@@ -33,7 +33,9 @@ class Databricks(Spark):
33
33
  class Tokenizer(Spark.Tokenizer):
34
34
  KEYWORDS = {
35
35
  **Spark.Tokenizer.KEYWORDS,
36
+ "?::": TokenType.QDCOLON,
36
37
  "MATCH_RECOGNIZE": TokenType.MATCH_RECOGNIZE,
38
+ "OPTIMIZE": TokenType.OPTIMIZE,
37
39
  "STREAM": TokenType.STREAM,
38
40
  "VOID": TokenType.VOID,
39
41
  }