sqlglot 30.33.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.
Files changed (343) hide show
  1. {sqlglot-30.33.0 → sqlglot-30.35.0}/AGENTS.md +1 -1
  2. {sqlglot-30.33.0 → sqlglot-30.35.0}/CHANGELOG.md +189 -0
  3. {sqlglot-30.33.0 → sqlglot-30.35.0}/CLAUDE.md +1 -1
  4. {sqlglot-30.33.0 → sqlglot-30.35.0}/CONTRIBUTING.md +7 -11
  5. {sqlglot-30.33.0/sqlglot.egg-info → sqlglot-30.35.0}/PKG-INFO +8 -6
  6. {sqlglot-30.33.0 → sqlglot-30.35.0}/README.md +5 -3
  7. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/_version.py +3 -3
  8. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/anonymize.py +12 -1
  9. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/athena.py +1 -0
  10. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/clickhouse.py +3 -0
  11. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/databricks.py +1 -0
  12. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/dialect.py +80 -31
  13. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/duckdb.py +2 -0
  14. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/exasol.py +1 -0
  15. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/hive.py +1 -0
  16. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/materialize.py +1 -0
  17. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/oracle.py +0 -1
  18. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/postgres.py +8 -0
  19. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/presto.py +7 -0
  20. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/redshift.py +2 -0
  21. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/risingwave.py +2 -0
  22. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/snowflake.py +8 -0
  23. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/spark.py +1 -0
  24. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/sqlite.py +8 -0
  25. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/trino.py +11 -0
  26. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/array.py +13 -0
  27. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/constraints.py +2 -2
  28. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/core.py +33 -7
  29. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/datatypes.py +1 -0
  30. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/ddl.py +4 -0
  31. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/dml.py +2 -0
  32. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/query.py +5 -1
  33. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/string.py +5 -1
  34. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/temporal.py +1 -1
  35. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generator.py +73 -24
  36. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/athena.py +1 -0
  37. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/bigquery.py +142 -6
  38. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/clickhouse.py +26 -1
  39. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/databricks.py +3 -3
  40. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/duckdb.py +52 -24
  41. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/exasol.py +1 -0
  42. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/hive.py +1 -2
  43. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/materialize.py +5 -0
  44. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/postgres.py +68 -3
  45. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/presto.py +24 -0
  46. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/redshift.py +4 -0
  47. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/snowflake.py +9 -3
  48. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/spark.py +2 -0
  49. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/spark2.py +10 -3
  50. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/sqlite.py +155 -38
  51. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/teradata.py +8 -0
  52. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/trino.py +1 -0
  53. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/tsql.py +1 -0
  54. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/helper.py +18 -0
  55. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/annotate_types.py +34 -19
  56. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/eliminate_ctes.py +5 -2
  57. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/eliminate_subqueries.py +7 -0
  58. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/helpers.py +19 -6
  59. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/merge_subqueries.py +4 -2
  60. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/pushdown_projections.py +6 -0
  61. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/qualify_columns.py +126 -4
  62. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/scope.py +17 -2
  63. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/simplify.py +91 -45
  64. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/unnest_subqueries.py +14 -3
  65. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parser.py +149 -57
  66. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/athena.py +1 -0
  67. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/bigquery.py +22 -14
  68. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/databricks.py +17 -10
  69. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/drill.py +0 -2
  70. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/duckdb.py +12 -7
  71. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/hive.py +3 -1
  72. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/materialize.py +2 -0
  73. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/mysql.py +1 -0
  74. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/postgres.py +9 -7
  75. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/redshift.py +10 -1
  76. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/snowflake.py +27 -2
  77. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/sqlite.py +124 -12
  78. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/teradata.py +211 -57
  79. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/trino.py +28 -0
  80. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/tokenizer_core.py +117 -9
  81. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/tokens.py +8 -1
  82. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/transforms.py +36 -16
  83. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/__init__.py +2 -0
  84. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/bigquery.py +13 -4
  85. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/hive.py +1 -0
  86. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/postgres.py +10 -0
  87. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/presto.py +1 -0
  88. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/redshift.py +10 -0
  89. {sqlglot-30.33.0 → sqlglot-30.35.0/sqlglot.egg-info}/PKG-INFO +8 -6
  90. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot.egg-info/requires.txt +2 -2
  91. sqlglot-30.35.0/sqlglot.egg-info/scm_version.json +8 -0
  92. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_athena.py +9 -6
  93. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_bigquery.py +256 -35
  94. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_clickhouse.py +6 -4
  95. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_databricks.py +51 -8
  96. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_dialect.py +68 -5
  97. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_duckdb.py +140 -16
  98. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_exasol.py +20 -10
  99. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_materialize.py +3 -2
  100. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_mysql.py +13 -5
  101. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_oracle.py +2 -0
  102. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_postgres.py +149 -16
  103. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_redshift.py +25 -13
  104. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_singlestore.py +0 -17
  105. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_snowflake.py +114 -26
  106. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_spark.py +40 -1
  107. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_sqlite.py +567 -6
  108. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_teradata.py +166 -7
  109. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_trino.py +101 -1
  110. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_tsql.py +0 -28
  111. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/identity.sql +0 -6
  112. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/annotate_functions.sql +0 -20
  113. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/annotate_types.sql +28 -0
  114. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_columns.sql +96 -0
  115. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_columns__invalid.sql +6 -0
  116. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/simplify.sql +83 -40
  117. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/unnest_subqueries.sql +12 -0
  118. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_anonymize.py +62 -0
  119. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_build.py +13 -0
  120. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_jsonpath.py +5 -0
  121. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_lineage.py +9 -0
  122. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_optimizer.py +166 -7
  123. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_parser.py +41 -0
  124. sqlglot-30.33.0/sqlglot.egg-info/scm_version.json +0 -8
  125. {sqlglot-30.33.0 → sqlglot-30.35.0}/.gitignore +0 -0
  126. {sqlglot-30.33.0 → sqlglot-30.35.0}/.gitmodules +0 -0
  127. {sqlglot-30.33.0 → sqlglot-30.35.0}/.gitpod.yml +0 -0
  128. {sqlglot-30.33.0 → sqlglot-30.35.0}/.pre-commit-config.yaml +0 -0
  129. {sqlglot-30.33.0 → sqlglot-30.35.0}/LICENSE +0 -0
  130. {sqlglot-30.33.0 → sqlglot-30.35.0}/MANIFEST.in +0 -0
  131. {sqlglot-30.33.0 → sqlglot-30.35.0}/Makefile +0 -0
  132. {sqlglot-30.33.0 → sqlglot-30.35.0}/pyproject.toml +0 -0
  133. {sqlglot-30.33.0 → sqlglot-30.35.0}/setup.cfg +0 -0
  134. {sqlglot-30.33.0 → sqlglot-30.35.0}/setup.py +0 -0
  135. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/__init__.py +0 -0
  136. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/__main__.py +0 -0
  137. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/_typing.py +0 -0
  138. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/__init__.py +0 -0
  139. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/bigquery.py +0 -0
  140. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/dax.py +0 -0
  141. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/doris.py +0 -0
  142. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/dremio.py +0 -0
  143. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/drill.py +0 -0
  144. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/druid.py +0 -0
  145. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/dune.py +0 -0
  146. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/fabric.py +0 -0
  147. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/mysql.py +0 -0
  148. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/prql.py +0 -0
  149. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/singlestore.py +0 -0
  150. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/solr.py +0 -0
  151. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/spark2.py +0 -0
  152. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/starrocks.py +0 -0
  153. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/tableau.py +0 -0
  154. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/teradata.py +0 -0
  155. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/dialects/tsql.py +0 -0
  156. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/diff.py +0 -0
  157. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/errors.py +0 -0
  158. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/executor/__init__.py +0 -0
  159. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/executor/context.py +0 -0
  160. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/executor/env.py +0 -0
  161. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/executor/python.py +0 -0
  162. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/executor/table.py +0 -0
  163. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/__init__.py +0 -0
  164. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/aggregate.py +0 -0
  165. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/builders.py +0 -0
  166. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/functions.py +0 -0
  167. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/json.py +0 -0
  168. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/math.py +0 -0
  169. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/expressions/properties.py +0 -0
  170. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/__init__.py +0 -0
  171. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/dax.py +0 -0
  172. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/doris.py +0 -0
  173. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/dremio.py +0 -0
  174. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/drill.py +0 -0
  175. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/druid.py +0 -0
  176. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/dune.py +0 -0
  177. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/fabric.py +0 -0
  178. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/mysql.py +0 -0
  179. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/oracle.py +0 -0
  180. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/prql.py +0 -0
  181. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/python.py +0 -0
  182. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/risingwave.py +0 -0
  183. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/singlestore.py +0 -0
  184. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/solr.py +0 -0
  185. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/starrocks.py +0 -0
  186. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/generators/tableau.py +0 -0
  187. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/jsonpath.py +0 -0
  188. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/lineage.py +0 -0
  189. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/__init__.py +0 -0
  190. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/canonicalize.py +0 -0
  191. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/canonicalize_internal_names.py +0 -0
  192. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/eliminate_joins.py +0 -0
  193. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/isolate_table_selects.py +0 -0
  194. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/journal.py +0 -0
  195. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/normalize.py +0 -0
  196. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/normalize_identifiers.py +0 -0
  197. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/optimize_joins.py +0 -0
  198. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/optimizer.py +0 -0
  199. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/pushdown_predicates.py +0 -0
  200. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/qualify.py +0 -0
  201. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/qualify_tables.py +0 -0
  202. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/optimizer/resolver.py +0 -0
  203. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/__init__.py +0 -0
  204. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/base.py +0 -0
  205. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/clickhouse.py +0 -0
  206. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/dax.py +0 -0
  207. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/doris.py +0 -0
  208. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/dremio.py +0 -0
  209. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/druid.py +0 -0
  210. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/dune.py +0 -0
  211. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/exasol.py +0 -0
  212. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/fabric.py +0 -0
  213. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/oracle.py +0 -0
  214. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/presto.py +0 -0
  215. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/prql.py +0 -0
  216. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/risingwave.py +0 -0
  217. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/singlestore.py +0 -0
  218. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/solr.py +0 -0
  219. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/spark.py +0 -0
  220. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/spark2.py +0 -0
  221. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/starrocks.py +0 -0
  222. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/tableau.py +0 -0
  223. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/parsers/tsql.py +0 -0
  224. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/planner.py +0 -0
  225. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/py.typed +0 -0
  226. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/schema.py +0 -0
  227. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/serde.py +0 -0
  228. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/time.py +0 -0
  229. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/trie.py +0 -0
  230. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/clickhouse.py +0 -0
  231. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/databricks.py +0 -0
  232. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/duckdb.py +0 -0
  233. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/mysql.py +0 -0
  234. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/snowflake.py +0 -0
  235. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/spark.py +0 -0
  236. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/spark2.py +0 -0
  237. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/sqlite.py +0 -0
  238. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot/typing/tsql.py +0 -0
  239. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot.egg-info/SOURCES.txt +0 -0
  240. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot.egg-info/dependency_links.txt +0 -0
  241. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot.egg-info/scm_file_list.json +0 -0
  242. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot.egg-info/top_level.txt +0 -0
  243. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglot.png +0 -0
  244. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglotc/MANIFEST.in +0 -0
  245. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglotc/pyproject.toml +0 -0
  246. {sqlglot-30.33.0 → sqlglot-30.35.0}/sqlglotc/setup.py +0 -0
  247. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/__init__.py +0 -0
  248. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/__init__.py +0 -0
  249. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_dax.py +0 -0
  250. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_doris.py +0 -0
  251. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_dremio.py +0 -0
  252. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_drill.py +0 -0
  253. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_druid.py +0 -0
  254. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_dune.py +0 -0
  255. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_fabric.py +0 -0
  256. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_hive.py +0 -0
  257. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_pipe_syntax.py +0 -0
  258. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_presto.py +0 -0
  259. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_prql.py +0 -0
  260. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_risingwave.py +0 -0
  261. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_solr.py +0 -0
  262. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_starrocks.py +0 -0
  263. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/dialects/test_tableau.py +0 -0
  264. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/jsonpath/LICENSE +0 -0
  265. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/jsonpath/cts.json +0 -0
  266. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/canonicalize.sql +0 -0
  267. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/canonicalize_internal_names.sql +0 -0
  268. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/eliminate_ctes.sql +0 -0
  269. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/eliminate_joins.sql +0 -0
  270. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/eliminate_subqueries.sql +0 -0
  271. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/isolate_table_selects.sql +0 -0
  272. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/merge_subqueries.sql +0 -0
  273. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/normalize.sql +0 -0
  274. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/normalize_identifiers.sql +0 -0
  275. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/optimize_joins.sql +0 -0
  276. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/optimizer.sql +0 -0
  277. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/pushdown_cte_alias_columns.sql +0 -0
  278. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/pushdown_predicates.sql +0 -0
  279. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/pushdown_projections.sql +0 -0
  280. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_columns__with_invisible.sql +0 -0
  281. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_columns_ddl.sql +0 -0
  282. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/qualify_tables.sql +0 -0
  283. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/quote_identifiers.sql +0 -0
  284. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/call_center.csv.gz +0 -0
  285. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/catalog_page.csv.gz +0 -0
  286. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/catalog_returns.csv.gz +0 -0
  287. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/catalog_sales.csv.gz +0 -0
  288. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/customer.csv.gz +0 -0
  289. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/customer_address.csv.gz +0 -0
  290. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/customer_demographics.csv.gz +0 -0
  291. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/date_dim.csv.gz +0 -0
  292. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/household_demographics.csv.gz +0 -0
  293. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/income_band.csv.gz +0 -0
  294. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/inventory.csv.gz +0 -0
  295. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/item.csv.gz +0 -0
  296. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/promotion.csv.gz +0 -0
  297. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/reason.csv.gz +0 -0
  298. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/ship_mode.csv.gz +0 -0
  299. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/store.csv.gz +0 -0
  300. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/store_returns.csv.gz +0 -0
  301. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/store_sales.csv.gz +0 -0
  302. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/time_dim.csv.gz +0 -0
  303. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/tpc-ds.sql +0 -0
  304. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/warehouse.csv.gz +0 -0
  305. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/web_page.csv.gz +0 -0
  306. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/web_returns.csv.gz +0 -0
  307. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/web_sales.csv.gz +0 -0
  308. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-ds/web_site.csv.gz +0 -0
  309. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/customer.csv.gz +0 -0
  310. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/lineitem.csv.gz +0 -0
  311. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/nation.csv.gz +0 -0
  312. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/orders.csv.gz +0 -0
  313. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/part.csv.gz +0 -0
  314. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/partsupp.csv.gz +0 -0
  315. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/region.csv.gz +0 -0
  316. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/supplier.csv.gz +0 -0
  317. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/optimizer/tpc-h/tpc-h.sql +0 -0
  318. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/partial.sql +0 -0
  319. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/fixtures/pretty.sql +0 -0
  320. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/gen_fixtures.py +0 -0
  321. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/helpers.py +0 -0
  322. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/leakcheck.py +0 -0
  323. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/sqlglot/__init__.py +0 -0
  324. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_dialect_entry_points.py +0 -0
  325. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_dialect_imports.py +0 -0
  326. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_diff.py +0 -0
  327. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_docs.py +0 -0
  328. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_errors.py +0 -0
  329. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_executor.py +0 -0
  330. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_expressions.py +0 -0
  331. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_generator.py +0 -0
  332. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_helper.py +0 -0
  333. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_integration_loader.py +0 -0
  334. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_optimize_cross_joins.py +0 -0
  335. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_schema.py +0 -0
  336. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_serde.py +0 -0
  337. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_simplify_between.py +0 -0
  338. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_sqlglotc.py +0 -0
  339. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_time.py +0 -0
  340. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_tokens.py +0 -0
  341. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_transforms.py +0 -0
  342. {sqlglot-30.33.0 → sqlglot-30.35.0}/tests/test_transpile.py +0 -0
  343. {sqlglot-30.33.0 → sqlglot-30.35.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,193 @@
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
+
142
+ ## [v30.33.0] - 2026-11-17
143
+ ### :boom: BREAKING CHANGES
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))*:
145
+
146
+ treat SHA1/SHA256/SHA512 as binary digests [CLAUDE] (#9156)
147
+
148
+
149
+ ### :sparkles: New Features
150
+ - [`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))*
151
+ - [`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))*
152
+ - [`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))*
153
+ - [`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))*
154
+
155
+ ### :bug: Bug Fixes
156
+ - [`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))*
157
+ - :arrow_lower_right: *fixes issue [#9138](https://github.com/tobymao/sqlglot/issues/9138) opened by [@arpangupta1805](https://github.com/arpangupta1805)*
158
+ - [`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))*
159
+ - [`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))*
160
+ - [`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))*
161
+ - [`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))*
162
+ - :arrow_lower_right: *fixes issue [#9160](https://github.com/tobymao/sqlglot/issues/9160) opened by [@saanvimundra](https://github.com/saanvimundra)*
163
+ - [`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))*
164
+ - :arrow_lower_right: *fixes issue [#9167](https://github.com/tobymao/sqlglot/issues/9167) opened by [@prathamchoksi](https://github.com/prathamchoksi)*
165
+ - [`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))*
166
+ - :arrow_lower_right: *fixes issue [#9150](https://github.com/tobymao/sqlglot/issues/9150) opened by [@prathamchoksi](https://github.com/prathamchoksi)*
167
+ - [`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))*
168
+ - :arrow_lower_right: *fixes issue [#9172](https://github.com/tobymao/sqlglot/issues/9172) opened by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm)*
169
+ - [`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))*
170
+ - [`c521a7c`](https://github.com/tobymao/sqlglot/commit/c521a7cc2b63c845fe3232b0fafddcb17bfbc360) - **optimizer**: respect join ordering during predicate pushdown *(commit by [@treysp](https://github.com/treysp))*
171
+ - [`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))*
172
+ - :arrow_lower_right: *fixes issue [#9159](https://github.com/tobymao/sqlglot/issues/9159) opened by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm)*
173
+ - [`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))*
174
+ - [`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))*
175
+ - :arrow_lower_right: *fixes issue [#9163](https://github.com/tobymao/sqlglot/issues/9163) opened by [@vanshbarfiwala-lgtm](https://github.com/vanshbarfiwala-lgtm)*
176
+ - [`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))*
177
+ - :arrow_lower_right: *fixes issue [#9112](https://github.com/tobymao/sqlglot/issues/9112) opened by [@bardrop](https://github.com/bardrop)*
178
+ - [`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))*
179
+ - :arrow_lower_right: *fixes issue [#9169](https://github.com/tobymao/sqlglot/issues/9169) opened by [@arpangupta1805](https://github.com/arpangupta1805)*
180
+ - [`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))*
181
+ - :arrow_lower_right: *fixes issue [#9148](https://github.com/tobymao/sqlglot/issues/9148) opened by [@arpangupta1805](https://github.com/arpangupta1805)*
182
+
183
+ ### :recycle: Refactors
184
+ - [`1a6309a`](https://github.com/tobymao/sqlglot/commit/1a6309ade5b784e79033b924e55884a9545395f0) - **databricks**: inherit Optimize argument defaults *(commit by [@georgesittas](https://github.com/georgesittas))*
185
+
186
+ ### :wrench: Chores
187
+ - [`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))*
188
+ - [`b9c408b`](https://github.com/tobymao/sqlglot/commit/b9c408ba1fdf50de5f07ba97818db1baa7a60688) - **optimizer**: drop redundant SAFE_TO_REPLACE_UNWRAPPED comment *(commit by [@geooo109](https://github.com/geooo109))*
189
+
190
+
4
191
  ## [v30.32.0] - 2026-11-16
5
192
  ### :sparkles: New Features
6
193
  - [`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))*
@@ -16848,3 +17035,5 @@ pip install "sqlglot[c]" # compiled — faster, but no subclassing
16848
17035
  [v30.30.0]: https://github.com/tobymao/sqlglot/compare/v30.29.0...v30.30.0
16849
17036
  [v30.31.0]: https://github.com/tobymao/sqlglot/compare/v30.30.0...v30.31.0
16850
17037
  [v30.32.0]: https://github.com/tobymao/sqlglot/compare/v30.31.0...v30.32.0
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
@@ -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.33.0
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.33.0; python_version >= "3.10" and extra == "c"
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.33.0; python_version >= "3.10" and extra == "rs"
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
 
@@ -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.33.0'
22
- __version_tuple__ = version_tuple = (30, 33, 0)
21
+ __version__ = version = '30.35.0'
22
+ __version_tuple__ = version_tuple = (30, 35, 0)
23
23
 
24
- __commit_id__ = commit_id = 'g0936dbe91'
24
+ __commit_id__ = commit_id = 'g324cdefc4'
@@ -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 :]
@@ -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,
@@ -16,9 +16,12 @@ 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
+ SUPPORTS_FORWARD_ALIAS_REFS = True
24
+ PREFER_PROJECTION_ALIASES_IN_DOT_PATHS = True
22
25
  ORIGINAL_NAME_META_KEY = "clickhouse_name"
23
26
  NUMBERS_CAN_BE_UNDERSCORE_SEPARATED = True
24
27
  IDENTIFIERS_CAN_START_WITH_DIGIT = True
@@ -33,6 +33,7 @@ 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,
37
38
  "OPTIMIZE": TokenType.OPTIMIZE,
38
39
  "STREAM": TokenType.STREAM,