sqlglot 28.0.0__tar.gz → 28.1.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 (239) hide show
  1. {sqlglot-28.0.0 → sqlglot-28.1.0}/CHANGELOG.md +281 -0
  2. {sqlglot-28.0.0 → sqlglot-28.1.0}/PKG-INFO +2 -2
  3. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/_version.py +3 -3
  4. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/bigquery.py +30 -6
  5. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/clickhouse.py +3 -0
  6. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/dialect.py +179 -19
  7. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/duckdb.py +227 -6
  8. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/exasol.py +74 -3
  9. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/hive.py +4 -0
  10. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/mysql.py +6 -0
  11. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/oracle.py +19 -0
  12. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/postgres.py +18 -2
  13. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/presto.py +9 -0
  14. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/redshift.py +4 -0
  15. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/risingwave.py +3 -0
  16. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/snowflake.py +8 -0
  17. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/spark.py +2 -2
  18. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/spark2.py +8 -0
  19. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/trino.py +6 -0
  20. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/tsql.py +39 -10
  21. sqlglot-28.1.0/sqlglot/errors.py +162 -0
  22. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/expressions.py +113 -14
  23. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/generator.py +55 -18
  24. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/annotate_types.py +61 -81
  25. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/optimizer.py +4 -0
  26. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/qualify.py +8 -1
  27. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/qualify_columns.py +58 -321
  28. sqlglot-28.1.0/sqlglot/optimizer/qualify_tables.py +214 -0
  29. sqlglot-28.1.0/sqlglot/optimizer/resolver.py +301 -0
  30. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/scope.py +20 -10
  31. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/simplify.py +131 -100
  32. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/parser.py +113 -39
  33. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/schema.py +15 -4
  34. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/tokens.py +14 -6
  35. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/typing/__init__.py +7 -9
  36. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/typing/bigquery.py +8 -12
  37. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/typing/snowflake.py +121 -27
  38. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/typing/spark2.py +0 -2
  39. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot.egg-info/PKG-INFO +2 -2
  40. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot.egg-info/SOURCES.txt +2 -0
  41. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot.egg-info/requires.txt +1 -1
  42. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/Cargo.lock +1 -1
  43. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/Cargo.toml +1 -1
  44. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/src/tokenizer.rs +2 -10
  45. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_bigquery.py +185 -28
  46. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_clickhouse.py +1 -1
  47. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_databricks.py +2 -0
  48. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_dialect.py +241 -3
  49. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_duckdb.py +41 -6
  50. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_exasol.py +70 -20
  51. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_hive.py +7 -3
  52. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_mysql.py +10 -0
  53. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_oracle.py +4 -0
  54. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_presto.py +8 -0
  55. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_redshift.py +6 -0
  56. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_singlestore.py +1 -1
  57. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_snowflake.py +75 -2
  58. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_trino.py +1 -0
  59. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_tsql.py +47 -44
  60. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/identity.sql +6 -6
  61. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/annotate_functions.sql +379 -7
  62. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/optimizer.sql +64 -64
  63. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/pushdown_projections.sql +17 -17
  64. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/qualify_columns.sql +49 -40
  65. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/qualify_columns__with_invisible.sql +4 -4
  66. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/qualify_columns_ddl.sql +3 -3
  67. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/qualify_tables.sql +80 -14
  68. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/tpc-ds.sql +11 -11
  69. sqlglot-28.1.0/tests/test_errors.py +143 -0
  70. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_expressions.py +8 -4
  71. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_lineage.py +6 -6
  72. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_optimizer.py +81 -6
  73. sqlglot-28.0.0/sqlglot/errors.py +0 -93
  74. sqlglot-28.0.0/sqlglot/optimizer/qualify_tables.py +0 -169
  75. {sqlglot-28.0.0 → sqlglot-28.1.0}/.gitignore +0 -0
  76. {sqlglot-28.0.0 → sqlglot-28.1.0}/.gitpod.yml +0 -0
  77. {sqlglot-28.0.0 → sqlglot-28.1.0}/.pre-commit-config.yaml +0 -0
  78. {sqlglot-28.0.0 → sqlglot-28.1.0}/CONTRIBUTING.md +0 -0
  79. {sqlglot-28.0.0 → sqlglot-28.1.0}/LICENSE +0 -0
  80. {sqlglot-28.0.0 → sqlglot-28.1.0}/MANIFEST.in +0 -0
  81. {sqlglot-28.0.0 → sqlglot-28.1.0}/Makefile +0 -0
  82. {sqlglot-28.0.0 → sqlglot-28.1.0}/README.md +0 -0
  83. {sqlglot-28.0.0 → sqlglot-28.1.0}/pyproject.toml +0 -0
  84. {sqlglot-28.0.0 → sqlglot-28.1.0}/setup.cfg +0 -0
  85. {sqlglot-28.0.0 → sqlglot-28.1.0}/setup.py +0 -0
  86. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/__init__.py +0 -0
  87. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/__main__.py +0 -0
  88. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/_typing.py +0 -0
  89. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/__init__.py +0 -0
  90. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/athena.py +0 -0
  91. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/databricks.py +0 -0
  92. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/doris.py +0 -0
  93. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/dremio.py +0 -0
  94. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/drill.py +0 -0
  95. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/druid.py +0 -0
  96. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/dune.py +0 -0
  97. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/fabric.py +0 -0
  98. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/materialize.py +0 -0
  99. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/prql.py +0 -0
  100. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/singlestore.py +0 -0
  101. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/solr.py +0 -0
  102. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/sqlite.py +0 -0
  103. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/starrocks.py +0 -0
  104. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/tableau.py +0 -0
  105. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/dialects/teradata.py +0 -0
  106. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/diff.py +0 -0
  107. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/executor/__init__.py +0 -0
  108. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/executor/context.py +0 -0
  109. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/executor/env.py +0 -0
  110. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/executor/python.py +0 -0
  111. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/executor/table.py +0 -0
  112. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/helper.py +0 -0
  113. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/jsonpath.py +0 -0
  114. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/lineage.py +0 -0
  115. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/__init__.py +0 -0
  116. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/canonicalize.py +0 -0
  117. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/eliminate_ctes.py +0 -0
  118. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/eliminate_joins.py +0 -0
  119. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/eliminate_subqueries.py +0 -0
  120. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/isolate_table_selects.py +0 -0
  121. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/merge_subqueries.py +0 -0
  122. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/normalize.py +0 -0
  123. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/normalize_identifiers.py +0 -0
  124. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/optimize_joins.py +0 -0
  125. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/pushdown_predicates.py +0 -0
  126. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/pushdown_projections.py +0 -0
  127. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/optimizer/unnest_subqueries.py +0 -0
  128. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/planner.py +0 -0
  129. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/py.typed +0 -0
  130. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/serde.py +0 -0
  131. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/time.py +0 -0
  132. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/transforms.py +0 -0
  133. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/trie.py +0 -0
  134. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/typing/hive.py +0 -0
  135. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/typing/presto.py +0 -0
  136. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot/typing/tsql.py +0 -0
  137. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot.egg-info/dependency_links.txt +0 -0
  138. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot.egg-info/top_level.txt +0 -0
  139. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglot.png +0 -0
  140. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/benches/dialect_settings.json +0 -0
  141. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/benches/long.rs +0 -0
  142. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/benches/token_type_settings.json +0 -0
  143. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/benches/tokenizer_dialect_settings.json +0 -0
  144. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/benches/tokenizer_settings.json +0 -0
  145. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/pyproject.toml +0 -0
  146. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/src/lib.rs +0 -0
  147. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/src/settings.rs +0 -0
  148. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/src/token.rs +0 -0
  149. {sqlglot-28.0.0 → sqlglot-28.1.0}/sqlglotrs/src/trie.rs +0 -0
  150. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/__init__.py +0 -0
  151. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/__init__.py +0 -0
  152. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_athena.py +0 -0
  153. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_doris.py +0 -0
  154. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_dremio.py +0 -0
  155. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_drill.py +0 -0
  156. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_druid.py +0 -0
  157. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_dune.py +0 -0
  158. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_fabric.py +0 -0
  159. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_materialize.py +0 -0
  160. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_pipe_syntax.py +0 -0
  161. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_postgres.py +0 -0
  162. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_prql.py +0 -0
  163. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_risingwave.py +0 -0
  164. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_solr.py +0 -0
  165. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_spark.py +0 -0
  166. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_sqlite.py +0 -0
  167. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_starrocks.py +0 -0
  168. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_tableau.py +0 -0
  169. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/dialects/test_teradata.py +0 -0
  170. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/jsonpath/LICENSE +0 -0
  171. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/jsonpath/cts.json +0 -0
  172. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/annotate_types.sql +0 -0
  173. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/canonicalize.sql +0 -0
  174. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/eliminate_ctes.sql +0 -0
  175. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/eliminate_joins.sql +0 -0
  176. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/eliminate_subqueries.sql +0 -0
  177. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/isolate_table_selects.sql +0 -0
  178. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/merge_subqueries.sql +0 -0
  179. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/normalize.sql +0 -0
  180. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/normalize_identifiers.sql +0 -0
  181. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/optimize_joins.sql +0 -0
  182. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/pushdown_cte_alias_columns.sql +0 -0
  183. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/pushdown_predicates.sql +0 -0
  184. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/qualify_columns__invalid.sql +0 -0
  185. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/quote_identifiers.sql +0 -0
  186. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/simplify.sql +0 -0
  187. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/call_center.csv.gz +0 -0
  188. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/catalog_page.csv.gz +0 -0
  189. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/catalog_returns.csv.gz +0 -0
  190. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/catalog_sales.csv.gz +0 -0
  191. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/customer.csv.gz +0 -0
  192. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/customer_address.csv.gz +0 -0
  193. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/customer_demographics.csv.gz +0 -0
  194. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/date_dim.csv.gz +0 -0
  195. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/household_demographics.csv.gz +0 -0
  196. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/income_band.csv.gz +0 -0
  197. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/inventory.csv.gz +0 -0
  198. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/item.csv.gz +0 -0
  199. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/promotion.csv.gz +0 -0
  200. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/reason.csv.gz +0 -0
  201. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/ship_mode.csv.gz +0 -0
  202. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/store.csv.gz +0 -0
  203. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/store_returns.csv.gz +0 -0
  204. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/store_sales.csv.gz +0 -0
  205. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/time_dim.csv.gz +0 -0
  206. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/warehouse.csv.gz +0 -0
  207. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/web_page.csv.gz +0 -0
  208. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/web_returns.csv.gz +0 -0
  209. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/web_sales.csv.gz +0 -0
  210. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-ds/web_site.csv.gz +0 -0
  211. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-h/customer.csv.gz +0 -0
  212. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-h/lineitem.csv.gz +0 -0
  213. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-h/nation.csv.gz +0 -0
  214. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-h/orders.csv.gz +0 -0
  215. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-h/part.csv.gz +0 -0
  216. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-h/partsupp.csv.gz +0 -0
  217. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-h/region.csv.gz +0 -0
  218. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-h/supplier.csv.gz +0 -0
  219. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/tpc-h/tpc-h.sql +0 -0
  220. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/optimizer/unnest_subqueries.sql +0 -0
  221. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/partial.sql +0 -0
  222. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/fixtures/pretty.sql +0 -0
  223. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/gen_fixtures.py +0 -0
  224. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/helpers.py +0 -0
  225. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_build.py +0 -0
  226. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_dialect_imports.py +0 -0
  227. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_diff.py +0 -0
  228. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_docs.py +0 -0
  229. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_executor.py +0 -0
  230. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_generator.py +0 -0
  231. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_helper.py +0 -0
  232. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_jsonpath.py +0 -0
  233. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_parser.py +0 -0
  234. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_schema.py +0 -0
  235. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_serde.py +0 -0
  236. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_time.py +0 -0
  237. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_tokens.py +0 -0
  238. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_transforms.py +0 -0
  239. {sqlglot-28.0.0 → sqlglot-28.1.0}/tests/test_transpile.py +0 -0
@@ -1,6 +1,286 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## [v28.0.0] - 2025-11-17
5
+ ### :boom: BREAKING CHANGES
6
+ - due to [`39d8e19`](https://github.com/tobymao/sqlglot/commit/39d8e19419c2adbb80465be414d1cc3bbc6d007b) - include VARIABLE kind in SET transpilation to DuckDB *(PR [#6201](https://github.com/tobymao/sqlglot/pull/6201) by [@toriwei](https://github.com/toriwei))*:
7
+
8
+ include VARIABLE kind in SET transpilation to DuckDB (#6201)
9
+
10
+ - due to [`e7ddad1`](https://github.com/tobymao/sqlglot/commit/e7ddad10b5edf9b801d2151e3e5fca448754df0d) - ensure `NULL` coerces into any type *(PR [#6211](https://github.com/tobymao/sqlglot/pull/6211) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
11
+
12
+ ensure `NULL` coerces into any type (#6211)
13
+
14
+ - due to [`0037266`](https://github.com/tobymao/sqlglot/commit/00372664bf6acf2b0fff9ad4b206b597ef5378f7) - annotate types for GETBIT *(PR [#6219](https://github.com/tobymao/sqlglot/pull/6219) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
15
+
16
+ annotate types for GETBIT (#6219)
17
+
18
+ - due to [`a5458ce`](https://github.com/tobymao/sqlglot/commit/a5458ceca3bc239fb611791e38020632dd0824c8) - add type annotation for DECODE function support *(PR [#6199](https://github.com/tobymao/sqlglot/pull/6199) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
19
+
20
+ add type annotation for DECODE function support (#6199)
21
+
22
+ - due to [`417f1e8`](https://github.com/tobymao/sqlglot/commit/417f1e8ee50fb8f4377fad261660ffbd7444a429) - annotate types for BITNOT *(PR [#6234](https://github.com/tobymao/sqlglot/pull/6234) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
23
+
24
+ annotate types for BITNOT (#6234)
25
+
26
+ - due to [`fe8ab40`](https://github.com/tobymao/sqlglot/commit/fe8ab40e8e0559201e0b1896a6f1a8fb6b5b932d) - 1st-class parsing support for BITAND, BIT_AND, BIT_NOT *(PR [#6243](https://github.com/tobymao/sqlglot/pull/6243) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
27
+
28
+ 1st-class parsing support for BITAND, BIT_AND, BIT_NOT (#6243)
29
+
30
+ - due to [`5ae3c47`](https://github.com/tobymao/sqlglot/commit/5ae3c47b1c6993b87341472c08714f4a0f738168) - add type annotation for GROUPING() function *(PR [#6244](https://github.com/tobymao/sqlglot/pull/6244) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
31
+
32
+ add type annotation for GROUPING() function (#6244)
33
+
34
+ - due to [`4133265`](https://github.com/tobymao/sqlglot/commit/413326514507ef06537dcc3d4b80a3fcbcd26f66) - parse `has` function into an `ArrayContains` expression *(PR [#6245](https://github.com/tobymao/sqlglot/pull/6245) by [@joeyutong](https://github.com/joeyutong))*:
35
+
36
+ parse `has` function into an `ArrayContains` expression (#6245)
37
+
38
+ - due to [`cdd45b9`](https://github.com/tobymao/sqlglot/commit/cdd45b949fd1eefb147053424279b56b8effcbcf) - annotate types for GROUPING_ID function. *(PR [#6249](https://github.com/tobymao/sqlglot/pull/6249) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
39
+
40
+ annotate types for GROUPING_ID function. (#6249)
41
+
42
+ - due to [`080ff3b`](https://github.com/tobymao/sqlglot/commit/080ff3bd93b36291d5bb0092d722f8307f0ae082) - annotate types for BITAND_AGG *(PR [#6248](https://github.com/tobymao/sqlglot/pull/6248) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
43
+
44
+ annotate types for BITAND_AGG (#6248)
45
+
46
+ - due to [`87a818a`](https://github.com/tobymao/sqlglot/commit/87a818a899f61a675c22c697f468b3f6f7e2787f) - annotate types for BITOR_AGG *(PR [#6251](https://github.com/tobymao/sqlglot/pull/6251) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
47
+
48
+ annotate types for BITOR_AGG (#6251)
49
+
50
+ - due to [`4c4189b`](https://github.com/tobymao/sqlglot/commit/4c4189b4083d272a6e678d83b5c567a2e9c0d672) - Transpile CONCAT function to double pipe operators when source … *(PR [#6241](https://github.com/tobymao/sqlglot/pull/6241) by [@vchan](https://github.com/vchan))*:
51
+
52
+ Transpile CONCAT function to double pipe operators when source … (#6241)
53
+
54
+ - due to [`a1b884d`](https://github.com/tobymao/sqlglot/commit/a1b884dc9ddfd2185de48cc9451a39f152879d39) - annotate types for BITXOR_AGG *(PR [#6253](https://github.com/tobymao/sqlglot/pull/6253) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
55
+
56
+ annotate types for BITXOR_AGG (#6253)
57
+
58
+ - due to [`fc78d20`](https://github.com/tobymao/sqlglot/commit/fc78d2016d8f7d20c094df791f746de323cd3639) - Unwrap subqueries without modifiers *(PR [#6247](https://github.com/tobymao/sqlglot/pull/6247) by [@VaggelisD](https://github.com/VaggelisD))*:
59
+
60
+ Unwrap subqueries without modifiers (#6247)
61
+
62
+ - due to [`ad2ad23`](https://github.com/tobymao/sqlglot/commit/ad2ad234b5a508040dce4f3920439be052742573) - add missing return type mapping for MAX_BY and MAX_BY function *(PR [#6250](https://github.com/tobymao/sqlglot/pull/6250) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
63
+
64
+ add missing return type mapping for MAX_BY and MAX_BY function (#6250)
65
+
66
+ - due to [`39c1d81`](https://github.com/tobymao/sqlglot/commit/39c1d81174f2390b6b0c9dd14c0e550ad452a1df) - annotate types for BOOLXOR_AGG *(PR [#6261](https://github.com/tobymao/sqlglot/pull/6261) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
67
+
68
+ annotate types for BOOLXOR_AGG (#6261)
69
+
70
+ - due to [`71590d2`](https://github.com/tobymao/sqlglot/commit/71590d22cdb05594e2173a1500f763dc1a32a81d) - add type annotation for SKEW function. *(PR [#6262](https://github.com/tobymao/sqlglot/pull/6262) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
71
+
72
+ add type annotation for SKEW function. (#6262)
73
+
74
+ - due to [`5fd366d`](https://github.com/tobymao/sqlglot/commit/5fd366d9e6f7b3f1eb7a9cf41975cf13ce890ffe) - annotate types for OBJECT_AGG *(PR [#6265](https://github.com/tobymao/sqlglot/pull/6265) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
75
+
76
+ annotate types for OBJECT_AGG (#6265)
77
+
78
+ - due to [`00abc39`](https://github.com/tobymao/sqlglot/commit/00abc393c9042e839457c5a6582e95cdb74356f3) - handle casting for bytestrings *(PR [#6252](https://github.com/tobymao/sqlglot/pull/6252) by [@toriwei](https://github.com/toriwei))*:
79
+
80
+ handle casting for bytestrings (#6252)
81
+
82
+ - due to [`3dae0fb`](https://github.com/tobymao/sqlglot/commit/3dae0fbb528762e5d5fd446350d42e9c841e2959) - Support position and occurrence args for REGEXP_EXTRACT *(PR [#6266](https://github.com/tobymao/sqlglot/pull/6266) by [@vchan](https://github.com/vchan))*:
83
+
84
+ Support position and occurrence args for REGEXP_EXTRACT (#6266)
85
+
86
+ - due to [`ddea61d`](https://github.com/tobymao/sqlglot/commit/ddea61d83f6699c97cc7b25aabe01a138138bdb1) - simplify connector complements only for non-null operands *(PR [#6214](https://github.com/tobymao/sqlglot/pull/6214) by [@geooo109](https://github.com/geooo109))*:
87
+
88
+ simplify connector complements only for non-null operands (#6214)
89
+
90
+ - due to [`771732d`](https://github.com/tobymao/sqlglot/commit/771732d81459cc576f11eccc49794f33e62d14af) - annotate types for REGR_AVGY *(PR [#6271](https://github.com/tobymao/sqlglot/pull/6271) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
91
+
92
+ annotate types for REGR_AVGY (#6271)
93
+
94
+ - due to [`8470be0`](https://github.com/tobymao/sqlglot/commit/8470be00731a4d79518a533a5f7ba884fa2f047e) - add type annotation for BITMAP_COUNT function. *(PR [#6274](https://github.com/tobymao/sqlglot/pull/6274) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
95
+
96
+ add type annotation for BITMAP_COUNT function. (#6274)
97
+
98
+ - due to [`98f25f9`](https://github.com/tobymao/sqlglot/commit/98f25f92cc1175ac7b2118a5a342db82adade13a) - support splitBy function *(PR [#6278](https://github.com/tobymao/sqlglot/pull/6278) by [@joeyutong](https://github.com/joeyutong))*:
99
+
100
+ support splitBy function (#6278)
101
+
102
+ - due to [`fabbf05`](https://github.com/tobymao/sqlglot/commit/fabbf057aba88f30205767d8c339727de45991c8) - Add support for shorthand struct array literals in duckDB. *(PR [#6233](https://github.com/tobymao/sqlglot/pull/6233) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*:
103
+
104
+ Add support for shorthand struct array literals in duckDB. (#6233)
105
+
106
+ - due to [`c02b64c`](https://github.com/tobymao/sqlglot/commit/c02b64c3524dd074c2108baaca668ab2607ac843) - Handle pseudocolumns differently than columns *(PR [#6273](https://github.com/tobymao/sqlglot/pull/6273) by [@VaggelisD](https://github.com/VaggelisD))*:
107
+
108
+ Handle pseudocolumns differently than columns (#6273)
109
+
110
+ - due to [`05c5181`](https://github.com/tobymao/sqlglot/commit/05c5181b36a7ada32b96fc91bdfbf73b38a1a408) - refactor `Connector` simplification to factor in types *(PR [#6152](https://github.com/tobymao/sqlglot/pull/6152) by [@geooo109](https://github.com/geooo109))*:
111
+
112
+ refactor `Connector` simplification to factor in types (#6152)
113
+
114
+ - due to [`9c1a222`](https://github.com/tobymao/sqlglot/commit/9c1a2221b0327ba6848542c7b906e92f25a05bea) - add type annotation for BITMAP_CONSTRUCT_AGG function. *(PR [#6285](https://github.com/tobymao/sqlglot/pull/6285) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
115
+
116
+ add type annotation for BITMAP_CONSTRUCT_AGG function. (#6285)
117
+
118
+ - due to [`cb0bcff`](https://github.com/tobymao/sqlglot/commit/cb0bcff310e9acdf806fc98e99cb9938b747c771) - cast UUID() output to varchar when source dialect UUID() returns string *(PR [#6284](https://github.com/tobymao/sqlglot/pull/6284) by [@toriwei](https://github.com/toriwei))*:
119
+
120
+ cast UUID() output to varchar when source dialect UUID() returns string (#6284)
121
+
122
+ - due to [`358105d`](https://github.com/tobymao/sqlglot/commit/358105d1296c7425e071ccf3189a31a02c00c923) - type annotation for BITMAP_BIT_POSITION function *(PR [#6301](https://github.com/tobymao/sqlglot/pull/6301) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
123
+
124
+ type annotation for BITMAP_BIT_POSITION function (#6301)
125
+
126
+ - due to [`4ee7a50`](https://github.com/tobymao/sqlglot/commit/4ee7a500cc460b6f6a1ed103a12dca72e6d01c18) - type inference for BITMAP_OR_AGG *(PR [#6297](https://github.com/tobymao/sqlglot/pull/6297) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
127
+
128
+ type inference for BITMAP_OR_AGG (#6297)
129
+
130
+ - due to [`fcd537d`](https://github.com/tobymao/sqlglot/commit/fcd537de2c993ad0bd18acd84dbae354165f7d3f) - conflict resolution. type annotation for BITMAP_BUCKET_NUMBER function. Tests added all dialects that support BITMAP_BUCKET_NUMBER *(PR [#6299](https://github.com/tobymao/sqlglot/pull/6299) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
131
+
132
+ conflict resolution. type annotation for BITMAP_BUCKET_NUMBER function. Tests added all dialects that support BITMAP_BUCKET_NUMBER (#6299)
133
+
134
+ - due to [`3dffd59`](https://github.com/tobymao/sqlglot/commit/3dffd598496a9f2d94caec9d7f3dcb9791c94019) - annotate types for PERCENTILE_DISC and WithinGroup *(PR [#6300](https://github.com/tobymao/sqlglot/pull/6300) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*:
135
+
136
+ annotate types for PERCENTILE_DISC and WithinGroup (#6300)
137
+
138
+ - due to [`f9287f7`](https://github.com/tobymao/sqlglot/commit/f9287f7d596a6d8a1e1cd2c48978a4dec77a96cb) - robust deduplication of connectors *(PR [#6296](https://github.com/tobymao/sqlglot/pull/6296) by [@geooo109](https://github.com/geooo109))*:
139
+
140
+ robust deduplication of connectors (#6296)
141
+
142
+ - due to [`ea0ea79`](https://github.com/tobymao/sqlglot/commit/ea0ea79c1c611b62c79f82f744fe0c98803598a3) - Parse `LIKE` functions *(PR [#6314](https://github.com/tobymao/sqlglot/pull/6314) by [@VaggelisD](https://github.com/VaggelisD))*:
143
+
144
+ Parse `LIKE` functions (#6314)
145
+
146
+ - due to [`e903883`](https://github.com/tobymao/sqlglot/commit/e90388328fcf5b8061c99e325b87d5beb0046ffc) - type annotation for APPROX_TOP_K_ACCUMULATE functio… *(PR [#6309](https://github.com/tobymao/sqlglot/pull/6309) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*:
147
+
148
+ type annotation for APPROX_TOP_K_ACCUMULATE functio… (#6309)
149
+
150
+ - due to [`d3fefad`](https://github.com/tobymao/sqlglot/commit/d3fefad80d25ff5a6dd02426667ff0ea8478a1b2) - support `DATEDIFF_BIG` *(PR [#6323](https://github.com/tobymao/sqlglot/pull/6323) by [@lBilali](https://github.com/lBilali))*:
151
+
152
+ support `DATEDIFF_BIG` (#6323)
153
+
154
+ - due to [`21d1468`](https://github.com/tobymao/sqlglot/commit/21d1468377b9c8ad48c6cca1ae3b3744a807c29e) - annotate type for APPROX_TOP_K *(PR [#6286](https://github.com/tobymao/sqlglot/pull/6286) by [@fivetran-MichaelLee](https://github.com/fivetran-MichaelLee))*:
155
+
156
+ annotate type for APPROX_TOP_K (#6286)
157
+
158
+ - due to [`85ddcc5`](https://github.com/tobymao/sqlglot/commit/85ddcc5eca22ac726582de454f2f12b9d4877634) - Do not normalize JSON fields in dot notation *(PR [#6320](https://github.com/tobymao/sqlglot/pull/6320) by [@VaggelisD](https://github.com/VaggelisD))*:
159
+
160
+ Do not normalize JSON fields in dot notation (#6320)
161
+
162
+ - due to [`933e981`](https://github.com/tobymao/sqlglot/commit/933e98102fb39d24ae0350da13337d981287130a) - more robust NULL reduction *(PR [#6327](https://github.com/tobymao/sqlglot/pull/6327) by [@geooo109](https://github.com/geooo109))*:
163
+
164
+ more robust NULL reduction (#6327)
165
+
166
+
167
+ ### :sparkles: New Features
168
+ - [`39d8e19`](https://github.com/tobymao/sqlglot/commit/39d8e19419c2adbb80465be414d1cc3bbc6d007b) - **snowflake**: include VARIABLE kind in SET transpilation to DuckDB *(PR [#6201](https://github.com/tobymao/sqlglot/pull/6201) by [@toriwei](https://github.com/toriwei))*
169
+ - :arrow_lower_right: *addresses issue [#6177](https://github.com/tobymao/sqlglot/issues/6177) opened by [@baruchoxman](https://github.com/baruchoxman)*
170
+ - [`0037266`](https://github.com/tobymao/sqlglot/commit/00372664bf6acf2b0fff9ad4b206b597ef5378f7) - **snowflake**: annotate types for GETBIT *(PR [#6219](https://github.com/tobymao/sqlglot/pull/6219) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
171
+ - [`a5458ce`](https://github.com/tobymao/sqlglot/commit/a5458ceca3bc239fb611791e38020632dd0824c8) - **snowflake**: add type annotation for DECODE function support *(PR [#6199](https://github.com/tobymao/sqlglot/pull/6199) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
172
+ - [`a9d0f63`](https://github.com/tobymao/sqlglot/commit/a9d0f6333c38ffb0b5afc3c213ac7bf008d98ad6) - **DuckDB**: Transpile unix_millis to epoch_ms *(PR [#6224](https://github.com/tobymao/sqlglot/pull/6224) by [@vchan](https://github.com/vchan))*
173
+ - [`238f705`](https://github.com/tobymao/sqlglot/commit/238f705940751f09464ee0f8260186f3f8124374) - **DuckDB**: Transpile unix_seconds to epoch *(PR [#6225](https://github.com/tobymao/sqlglot/pull/6225) by [@vchan](https://github.com/vchan))*
174
+ - [`c8b0129`](https://github.com/tobymao/sqlglot/commit/c8b0129380df389be6ff22cafb4251181e919d23) - **exasol**: support bracket-delimited identifiers *(PR [#6231](https://github.com/tobymao/sqlglot/pull/6231) by [@JoepvandenHoven-Bluemine](https://github.com/JoepvandenHoven-Bluemine))*
175
+ - [`417f1e8`](https://github.com/tobymao/sqlglot/commit/417f1e8ee50fb8f4377fad261660ffbd7444a429) - **snowflake**: annotate types for BITNOT *(PR [#6234](https://github.com/tobymao/sqlglot/pull/6234) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
176
+ - [`fe8ab40`](https://github.com/tobymao/sqlglot/commit/fe8ab40e8e0559201e0b1896a6f1a8fb6b5b932d) - **snowflake**: 1st-class parsing support for BITAND, BIT_AND, BIT_NOT *(PR [#6243](https://github.com/tobymao/sqlglot/pull/6243) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
177
+ - [`5ae3c47`](https://github.com/tobymao/sqlglot/commit/5ae3c47b1c6993b87341472c08714f4a0f738168) - **snowflake**: add type annotation for GROUPING() function *(PR [#6244](https://github.com/tobymao/sqlglot/pull/6244) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
178
+ - [`4133265`](https://github.com/tobymao/sqlglot/commit/413326514507ef06537dcc3d4b80a3fcbcd26f66) - **clickhouse**: parse `has` function into an `ArrayContains` expression *(PR [#6245](https://github.com/tobymao/sqlglot/pull/6245) by [@joeyutong](https://github.com/joeyutong))*
179
+ - [`b722aa2`](https://github.com/tobymao/sqlglot/commit/b722aa2d4b65c698921066426838f080a31bdc35) - **duckdb**: cast LOWER() result to BLOB if input is bytes *(PR [#6218](https://github.com/tobymao/sqlglot/pull/6218) by [@toriwei](https://github.com/toriwei))*
180
+ - [`cdd45b9`](https://github.com/tobymao/sqlglot/commit/cdd45b949fd1eefb147053424279b56b8effcbcf) - **optimizer**: annotate types for GROUPING_ID function. *(PR [#6249](https://github.com/tobymao/sqlglot/pull/6249) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
181
+ - [`080ff3b`](https://github.com/tobymao/sqlglot/commit/080ff3bd93b36291d5bb0092d722f8307f0ae082) - **snowflake**: annotate types for BITAND_AGG *(PR [#6248](https://github.com/tobymao/sqlglot/pull/6248) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
182
+ - [`87a818a`](https://github.com/tobymao/sqlglot/commit/87a818a899f61a675c22c697f468b3f6f7e2787f) - **snowflake**: annotate types for BITOR_AGG *(PR [#6251](https://github.com/tobymao/sqlglot/pull/6251) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
183
+ - [`a1b884d`](https://github.com/tobymao/sqlglot/commit/a1b884dc9ddfd2185de48cc9451a39f152879d39) - **snowflake**: annotate types for BITXOR_AGG *(PR [#6253](https://github.com/tobymao/sqlglot/pull/6253) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
184
+ - [`71d93b1`](https://github.com/tobymao/sqlglot/commit/71d93b181d2aa3a77a022820446d6fec0133291f) - **duckdb**: implement casting to blob for UPPER() and move to helper method *(PR [#6254](https://github.com/tobymao/sqlglot/pull/6254) by [@toriwei](https://github.com/toriwei))*
185
+ - [`ad2ad23`](https://github.com/tobymao/sqlglot/commit/ad2ad234b5a508040dce4f3920439be052742573) - **snowflake**: add missing return type mapping for MAX_BY and MAX_BY function *(PR [#6250](https://github.com/tobymao/sqlglot/pull/6250) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
186
+ - [`39c1d81`](https://github.com/tobymao/sqlglot/commit/39c1d81174f2390b6b0c9dd14c0e550ad452a1df) - **snowflake**: annotate types for BOOLXOR_AGG *(PR [#6261](https://github.com/tobymao/sqlglot/pull/6261) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
187
+ - [`71590d2`](https://github.com/tobymao/sqlglot/commit/71590d22cdb05594e2173a1500f763dc1a32a81d) - **snowflake**: add type annotation for SKEW function. *(PR [#6262](https://github.com/tobymao/sqlglot/pull/6262) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
188
+ - [`5fd366d`](https://github.com/tobymao/sqlglot/commit/5fd366d9e6f7b3f1eb7a9cf41975cf13ce890ffe) - **snowflake**: annotate types for OBJECT_AGG *(PR [#6265](https://github.com/tobymao/sqlglot/pull/6265) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
189
+ - [`3dae0fb`](https://github.com/tobymao/sqlglot/commit/3dae0fbb528762e5d5fd446350d42e9c841e2959) - **duckdb**: Support position and occurrence args for REGEXP_EXTRACT *(PR [#6266](https://github.com/tobymao/sqlglot/pull/6266) by [@vchan](https://github.com/vchan))*
190
+ - [`dba0414`](https://github.com/tobymao/sqlglot/commit/dba04145c4bcda8c55890b4d7173dd6c0a64c37e) - **clickhouse**: Parse toStartOfxxx into exp.TimestampTrunc *(PR [#6268](https://github.com/tobymao/sqlglot/pull/6268) by [@joeyutong](https://github.com/joeyutong))*
191
+ - [`d959ad0`](https://github.com/tobymao/sqlglot/commit/d959ad02140d692483a63b67d69d2a5d49954ea3) - transpile DuckDB exclusive end RANGE to SEQUENCE *(PR [#6270](https://github.com/tobymao/sqlglot/pull/6270) by [@georgesittas](https://github.com/georgesittas))*
192
+ - :arrow_lower_right: *addresses issue [#6267](https://github.com/tobymao/sqlglot/issues/6267) opened by [@joeyutong](https://github.com/joeyutong)*
193
+ - [`771732d`](https://github.com/tobymao/sqlglot/commit/771732d81459cc576f11eccc49794f33e62d14af) - **snowflake**: annotate types for REGR_AVGY *(PR [#6271](https://github.com/tobymao/sqlglot/pull/6271) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
194
+ - [`8470be0`](https://github.com/tobymao/sqlglot/commit/8470be00731a4d79518a533a5f7ba884fa2f047e) - **snowflake**: add type annotation for BITMAP_COUNT function. *(PR [#6274](https://github.com/tobymao/sqlglot/pull/6274) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
195
+ - [`98f25f9`](https://github.com/tobymao/sqlglot/commit/98f25f92cc1175ac7b2118a5a342db82adade13a) - **clickhouse**: support splitBy function *(PR [#6278](https://github.com/tobymao/sqlglot/pull/6278) by [@joeyutong](https://github.com/joeyutong))*
196
+ - [`fabbf05`](https://github.com/tobymao/sqlglot/commit/fabbf057aba88f30205767d8c339727de45991c8) - **duckDB**: Add support for shorthand struct array literals in duckDB. *(PR [#6233](https://github.com/tobymao/sqlglot/pull/6233) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
197
+ - [`a909fde`](https://github.com/tobymao/sqlglot/commit/a909fde068919823dc4cccc2655af48e4290137a) - **duckdb**: Add support for CREATE MACRO *(PR [#6292](https://github.com/tobymao/sqlglot/pull/6292) by [@VaggelisD](https://github.com/VaggelisD))*
198
+ - :arrow_lower_right: *addresses issue [#6290](https://github.com/tobymao/sqlglot/issues/6290) opened by [@francescomucio](https://github.com/francescomucio)*
199
+ - [`11989be`](https://github.com/tobymao/sqlglot/commit/11989be34153ccdedeab3ab18ccf735f86e8b822) - add more expressions with positional meta *(PR [#6289](https://github.com/tobymao/sqlglot/pull/6289) by [@tobymao](https://github.com/tobymao))*
200
+ - [`87651a6`](https://github.com/tobymao/sqlglot/commit/87651a671db2fe6162f06e2dcdef0b98e229bea5) - semantic facts closes [#6287](https://github.com/tobymao/sqlglot/pull/6287) *(PR [#6288](https://github.com/tobymao/sqlglot/pull/6288) by [@tobymao](https://github.com/tobymao))*
201
+ - [`9c1a222`](https://github.com/tobymao/sqlglot/commit/9c1a2221b0327ba6848542c7b906e92f25a05bea) - **snowflake**: add type annotation for BITMAP_CONSTRUCT_AGG function. *(PR [#6285](https://github.com/tobymao/sqlglot/pull/6285) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
202
+ - [`358105d`](https://github.com/tobymao/sqlglot/commit/358105d1296c7425e071ccf3189a31a02c00c923) - **snowflake**: type annotation for BITMAP_BIT_POSITION function *(PR [#6301](https://github.com/tobymao/sqlglot/pull/6301) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
203
+ - [`4ee7a50`](https://github.com/tobymao/sqlglot/commit/4ee7a500cc460b6f6a1ed103a12dca72e6d01c18) - **snowflake**: type inference for BITMAP_OR_AGG *(PR [#6297](https://github.com/tobymao/sqlglot/pull/6297) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
204
+ - [`fcd537d`](https://github.com/tobymao/sqlglot/commit/fcd537de2c993ad0bd18acd84dbae354165f7d3f) - **snowflake**: conflict resolution. type annotation for BITMAP_BUCKET_NUMBER function. Tests added all dialects that support BITMAP_BUCKET_NUMBER *(PR [#6299](https://github.com/tobymao/sqlglot/pull/6299) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
205
+ - [`3dffd59`](https://github.com/tobymao/sqlglot/commit/3dffd598496a9f2d94caec9d7f3dcb9791c94019) - **snowflake**: annotate types for PERCENTILE_DISC and WithinGroup *(PR [#6300](https://github.com/tobymao/sqlglot/pull/6300) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
206
+ - [`6ce3cd7`](https://github.com/tobymao/sqlglot/commit/6ce3cd7de958d9f3773579ab22ae6cbbcb56ceb0) - **sqlite**: support binary `MATCH` operator closes [#6305](https://github.com/tobymao/sqlglot/pull/6305) *(PR [#6306](https://github.com/tobymao/sqlglot/pull/6306) by [@georgesittas](https://github.com/georgesittas))*
207
+ - [`e903883`](https://github.com/tobymao/sqlglot/commit/e90388328fcf5b8061c99e325b87d5beb0046ffc) - **snowflake**: type annotation for APPROX_TOP_K_ACCUMULATE functio… *(PR [#6309](https://github.com/tobymao/sqlglot/pull/6309) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
208
+ - [`afc0242`](https://github.com/tobymao/sqlglot/commit/afc0242c564f8de53e11865c2fba43fb36df0694) - **duckDB**: Cast inputs (BLOB → VARCHAR) for duckDB STARTS_WITH *(PR [#6240](https://github.com/tobymao/sqlglot/pull/6240) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
209
+ - [`d170bbd`](https://github.com/tobymao/sqlglot/commit/d170bbde800a0308aaf8c81e59152c65be312155) - **duckdb**: transpile bigquery's `BYTES` variant of `REPLACE` *(PR [#6312](https://github.com/tobymao/sqlglot/pull/6312) by [@toriwei](https://github.com/toriwei))*
210
+ - [`d3fefad`](https://github.com/tobymao/sqlglot/commit/d3fefad80d25ff5a6dd02426667ff0ea8478a1b2) - **tsql**: support `DATEDIFF_BIG` *(PR [#6323](https://github.com/tobymao/sqlglot/pull/6323) by [@lBilali](https://github.com/lBilali))*
211
+ - [`21d1468`](https://github.com/tobymao/sqlglot/commit/21d1468377b9c8ad48c6cca1ae3b3744a807c29e) - **optimizer**: annotate type for APPROX_TOP_K *(PR [#6286](https://github.com/tobymao/sqlglot/pull/6286) by [@fivetran-MichaelLee](https://github.com/fivetran-MichaelLee))*
212
+ - [`93b4039`](https://github.com/tobymao/sqlglot/commit/93b4039f957f3eefbaaed2cb147bfa8c8c2a304e) - **duckdb**: preserve time zone and timestamp in DATE_TRUNC() *(PR [#6318](https://github.com/tobymao/sqlglot/pull/6318) by [@toriwei](https://github.com/toriwei))*
213
+ - [`b71990f`](https://github.com/tobymao/sqlglot/commit/b71990f528d55c845f5771bfc4c5f6098eb97ad7) - **duckdb**: Add transpilation support for ANY_VALUE function with HAVING MAX and MIN clauses *(PR [#6325](https://github.com/tobymao/sqlglot/pull/6325) by [@fivetran-amrutabhimsenayachit](https://github.com/fivetran-amrutabhimsenayachit))*
214
+ - [`64c0d55`](https://github.com/tobymao/sqlglot/commit/64c0d554207ad40bcd6a93c20d15020752a5929d) - **sqlite**: support indexed table clause closes [#6331](https://github.com/tobymao/sqlglot/pull/6331) *(commit by [@georgesittas](https://github.com/georgesittas))*
215
+ - [`6725217`](https://github.com/tobymao/sqlglot/commit/6725217d4058b5202006576bdf6ff4ec7230a9b9) - **sqlite**: support `NOT NULL` operator closes [#6334](https://github.com/tobymao/sqlglot/pull/6334) closes [#6335](https://github.com/tobymao/sqlglot/pull/6335) *(commit by [@georgesittas](https://github.com/georgesittas))*
216
+
217
+ ### :bug: Bug Fixes
218
+ - [`e7ddad1`](https://github.com/tobymao/sqlglot/commit/e7ddad10b5edf9b801d2151e3e5fca448754df0d) - **optimizer**: ensure `NULL` coerces into any type *(PR [#6211](https://github.com/tobymao/sqlglot/pull/6211) by [@fivetran-ashashankar](https://github.com/fivetran-ashashankar))*
219
+ - [`4c4189b`](https://github.com/tobymao/sqlglot/commit/4c4189b4083d272a6e678d83b5c567a2e9c0d672) - Transpile CONCAT function to double pipe operators when source … *(PR [#6241](https://github.com/tobymao/sqlglot/pull/6241) by [@vchan](https://github.com/vchan))*
220
+ - [`fc78d20`](https://github.com/tobymao/sqlglot/commit/fc78d2016d8f7d20c094df791f746de323cd3639) - **parser**: Unwrap subqueries without modifiers *(PR [#6247](https://github.com/tobymao/sqlglot/pull/6247) by [@VaggelisD](https://github.com/VaggelisD))*
221
+ - :arrow_lower_right: *fixes issue [#6237](https://github.com/tobymao/sqlglot/issues/6237) opened by [@preet-sheth](https://github.com/preet-sheth)*
222
+ - [`7ad4c17`](https://github.com/tobymao/sqlglot/commit/7ad4c177fbf8dda78aa8de1ca112f606b2fd5456) - **databricks**: Support table names in FROM STREAM *(PR [#6259](https://github.com/tobymao/sqlglot/pull/6259) by [@roveo](https://github.com/roveo))*
223
+ - [`00abc39`](https://github.com/tobymao/sqlglot/commit/00abc393c9042e839457c5a6582e95cdb74356f3) - **generator**: handle casting for bytestrings *(PR [#6252](https://github.com/tobymao/sqlglot/pull/6252) by [@toriwei](https://github.com/toriwei))*
224
+ - [`bcf2eac`](https://github.com/tobymao/sqlglot/commit/bcf2eace0baf1d85047841f36cb5c0082c61b29c) - **duckdb**: map int8 to bigint instead of tinyint fixes [#6269](https://github.com/tobymao/sqlglot/pull/6269) *(commit by [@georgesittas](https://github.com/georgesittas))*
225
+ - [`ddea61d`](https://github.com/tobymao/sqlglot/commit/ddea61d83f6699c97cc7b25aabe01a138138bdb1) - **optimizer**: simplify connector complements only for non-null operands *(PR [#6214](https://github.com/tobymao/sqlglot/pull/6214) by [@geooo109](https://github.com/geooo109))*
226
+ - :arrow_lower_right: *fixes issue [#6213](https://github.com/tobymao/sqlglot/issues/6213) opened by [@geooo109](https://github.com/geooo109)*
227
+ - [`e17320e`](https://github.com/tobymao/sqlglot/commit/e17320ee3bdd0ef541d616c447b4973d12780dae) - Handle edge cases in for DuckDB RANGE to Spark SEQUENCE transpilation *(PR [#6276](https://github.com/tobymao/sqlglot/pull/6276) by [@joeyutong](https://github.com/joeyutong))*
228
+ - [`33b6218`](https://github.com/tobymao/sqlglot/commit/33b62183a15cdedf0b1ebd96fcb856afbe8879a0) - sqlsecurityproperty parseerror *(PR [#6280](https://github.com/tobymao/sqlglot/pull/6280) by [@ds-cbo](https://github.com/ds-cbo))*
229
+ - :arrow_lower_right: *fixes issue [#6279](https://github.com/tobymao/sqlglot/issues/6279) opened by [@ds-cbo](https://github.com/ds-cbo)*
230
+ - [`c02b64c`](https://github.com/tobymao/sqlglot/commit/c02b64c3524dd074c2108baaca668ab2607ac843) - **optimizer**: Handle pseudocolumns differently than columns *(PR [#6273](https://github.com/tobymao/sqlglot/pull/6273) by [@VaggelisD](https://github.com/VaggelisD))*
231
+ - :arrow_lower_right: *fixes issue [#6256](https://github.com/tobymao/sqlglot/issues/6256) opened by [@azilya](https://github.com/azilya)*
232
+ - [`05c5181`](https://github.com/tobymao/sqlglot/commit/05c5181b36a7ada32b96fc91bdfbf73b38a1a408) - **optimizer**: refactor `Connector` simplification to factor in types *(PR [#6152](https://github.com/tobymao/sqlglot/pull/6152) by [@geooo109](https://github.com/geooo109))*
233
+ - :arrow_lower_right: *fixes issue [#6137](https://github.com/tobymao/sqlglot/issues/6137) opened by [@dllggyx](https://github.com/dllggyx)*
234
+ - [`cb0bcff`](https://github.com/tobymao/sqlglot/commit/cb0bcff310e9acdf806fc98e99cb9938b747c771) - **duckdb**: cast UUID() output to varchar when source dialect UUID() returns string *(PR [#6284](https://github.com/tobymao/sqlglot/pull/6284) by [@toriwei](https://github.com/toriwei))*
235
+ - [`f9287f7`](https://github.com/tobymao/sqlglot/commit/f9287f7d596a6d8a1e1cd2c48978a4dec77a96cb) - **optimizer**: robust deduplication of connectors *(PR [#6296](https://github.com/tobymao/sqlglot/pull/6296) by [@geooo109](https://github.com/geooo109))*
236
+ - :arrow_lower_right: *fixes issue [#6182](https://github.com/tobymao/sqlglot/issues/6182) opened by [@dllggyx](https://github.com/dllggyx)*
237
+ - [`ea0ea79`](https://github.com/tobymao/sqlglot/commit/ea0ea79c1c611b62c79f82f744fe0c98803598a3) - **clickhouse**: Parse `LIKE` functions *(PR [#6314](https://github.com/tobymao/sqlglot/pull/6314) by [@VaggelisD](https://github.com/VaggelisD))*
238
+ - :arrow_lower_right: *fixes issue [#6313](https://github.com/tobymao/sqlglot/issues/6313) opened by [@CainYang](https://github.com/CainYang)*
239
+ - [`bbd4c90`](https://github.com/tobymao/sqlglot/commit/bbd4c901a9550beb363758e6be1e1877d4e56f2c) - **sqlite**: support IS with identifier as RHS *(PR [#6316](https://github.com/tobymao/sqlglot/pull/6316) by [@geooo109](https://github.com/geooo109))*
240
+ - :arrow_lower_right: *fixes issue [#6315](https://github.com/tobymao/sqlglot/issues/6315) opened by [@VLDB2026](https://github.com/VLDB2026)*
241
+ - [`65d213a`](https://github.com/tobymao/sqlglot/commit/65d213a7662962d4226368590508fbf61675c055) - **dialect**: fix typo from millenium to millennium [#6321](https://github.com/tobymao/sqlglot/pull/6321) *(commit by [@lBilali](https://github.com/lBilali))*
242
+ - [`c9d1615`](https://github.com/tobymao/sqlglot/commit/c9d16150a408a41daf704d2d0b0ebfce57425b81) - **tsql**: map iso_week with the correct python directive from strftime *(PR [#6322](https://github.com/tobymao/sqlglot/pull/6322) by [@lBilali](https://github.com/lBilali))*
243
+ - [`85ddcc5`](https://github.com/tobymao/sqlglot/commit/85ddcc5eca22ac726582de454f2f12b9d4877634) - **bigquery**: Do not normalize JSON fields in dot notation *(PR [#6320](https://github.com/tobymao/sqlglot/pull/6320) by [@VaggelisD](https://github.com/VaggelisD))*
244
+ - [`933e981`](https://github.com/tobymao/sqlglot/commit/933e98102fb39d24ae0350da13337d981287130a) - **optimizer**: more robust NULL reduction *(PR [#6327](https://github.com/tobymao/sqlglot/pull/6327) by [@geooo109](https://github.com/geooo109))*
245
+ - [`e1c6d57`](https://github.com/tobymao/sqlglot/commit/e1c6d5716f80eb24b6d0a9c93e187a8c9f05e555) - **parser**: improve between .. preceding .. following parser fixes [#6332](https://github.com/tobymao/sqlglot/pull/6332) *(commit by [@georgesittas](https://github.com/georgesittas))*
246
+ - [`65706e8`](https://github.com/tobymao/sqlglot/commit/65706e8c7edeb7de674d427718eac181df206dc9) - avoid full traversal for pushdown_cte_alias_columns *(commit by [@tobymao](https://github.com/tobymao))*
247
+ - [`c81258e`](https://github.com/tobymao/sqlglot/commit/c81258e9c26f637f6f8520051c159685c8b1cb7e) - **parser**: allow using OVER token as unquoted identifier *(PR [#6338](https://github.com/tobymao/sqlglot/pull/6338) by [@georgesittas](https://github.com/georgesittas))*
248
+ - :arrow_lower_right: *fixes issue [#6337](https://github.com/tobymao/sqlglot/issues/6337) opened by [@VLDB2026](https://github.com/VLDB2026)*
249
+ - [`73abfac`](https://github.com/tobymao/sqlglot/commit/73abfac4cec27350754c942be71175fa7bdfd1d0) - **redshift**: do not inherit postgres `ROUND` generator closes [#6340](https://github.com/tobymao/sqlglot/pull/6340) *(commit by [@georgesittas](https://github.com/georgesittas))*
250
+
251
+ ### :recycle: Refactors
252
+ - [`9c98fc2`](https://github.com/tobymao/sqlglot/commit/9c98fc2b39fef2bd052b60ba4e15a4b93fd66c00) - **optimizer**: avoid extra copy in simplify *(commit by [@geooo109](https://github.com/geooo109))*
253
+ - [`43985fb`](https://github.com/tobymao/sqlglot/commit/43985fbcb9edea088119951c5c245a9606cf92ae) - **snowflake**: remove redundant tests for ANY_VALUE *(commit by [@geooo109](https://github.com/geooo109))*
254
+ - [`bf7b032`](https://github.com/tobymao/sqlglot/commit/bf7b032baae0c0fd112054a7bed6fa2f56f32890) - clean up struct name inheritance *(PR [#6295](https://github.com/tobymao/sqlglot/pull/6295) by [@georgesittas](https://github.com/georgesittas))*
255
+ - [`49e0f43`](https://github.com/tobymao/sqlglot/commit/49e0f43ba19739575987f2e9c52c2061a6f59717) - extra test for spark approx_top_k_accumulate *(commit by [@geooo109](https://github.com/geooo109))*
256
+
257
+ ### :wrench: Chores
258
+ - [`d7be4a5`](https://github.com/tobymao/sqlglot/commit/d7be4a5da3dca6bcc44230b2a176c8b17b81c46e) - **optimizer**: add annotation test for COALESCE *(PR [#6210](https://github.com/tobymao/sqlglot/pull/6210) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
259
+ - [`8aa7356`](https://github.com/tobymao/sqlglot/commit/8aa7356ab8adee26193086754ca1a1805957d944) - **optimizer**: add annotation tests for IFF *(PR [#6215](https://github.com/tobymao/sqlglot/pull/6215) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
260
+ - [`160a1b9`](https://github.com/tobymao/sqlglot/commit/160a1b90f4ce39a2fce6f7f0e9e854d974fed053) - **optimizer**: mixed type annotation test for sf IFNULL *(commit by [@geooo109](https://github.com/geooo109))*
261
+ - [`893ad2a`](https://github.com/tobymao/sqlglot/commit/893ad2a5b1a28339ccc65c85ac813506e6ad56f1) - **optimizer**: add annotation tests for NULLIF *(PR [#6221](https://github.com/tobymao/sqlglot/pull/6221) by [@fivetran-MichaelLee](https://github.com/fivetran-MichaelLee))*
262
+ - [`78d7733`](https://github.com/tobymao/sqlglot/commit/78d77335819d1796fa3989ef072d3f8fd4b83559) - remove redundant or term for unknown in annotate_types *(commit by [@georgesittas](https://github.com/georgesittas))*
263
+ - [`b202f3a`](https://github.com/tobymao/sqlglot/commit/b202f3ad64e88a47e52c45e32c9e4faae6c8ac45) - **optimizer**: add test for BITXOR *(PR [#6223](https://github.com/tobymao/sqlglot/pull/6223) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
264
+ - [`b20f2e8`](https://github.com/tobymao/sqlglot/commit/b20f2e88d86038f1a98f4b97b5a2ae0b86652e33) - **optimizer**: add test for BITSHIFTLEFT *(PR [#6227](https://github.com/tobymao/sqlglot/pull/6227) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
265
+ - [`7f93e85`](https://github.com/tobymao/sqlglot/commit/7f93e8551b00cc32014236a07c8794bd7a3a2b91) - **optimizer**: add annotation tests for BITSHIFTRIGHT *(PR [#6228](https://github.com/tobymao/sqlglot/pull/6228) by [@fivetran-felixhuang](https://github.com/fivetran-felixhuang))*
266
+ - [`fcf017c`](https://github.com/tobymao/sqlglot/commit/fcf017cfb95923fea8ae5669340713a326f4f306) - rename `EXPRESSION_SPEC` to `EXPRESSION_METADATA` *(commit by [@georgesittas](https://github.com/georgesittas))*
267
+ - [`55bc9e4`](https://github.com/tobymao/sqlglot/commit/55bc9e4019f8ef8d7e571256d7b0e07b30d9240c) - remove predicate/connector/not from typing metadata *(commit by [@georgesittas](https://github.com/georgesittas))*
268
+ - [`349ab29`](https://github.com/tobymao/sqlglot/commit/349ab29aa84fb087388b6a1494fea70273a4a560) - **optimizer**: add annotation test for BOOLAND_OR *(PR [#6260](https://github.com/tobymao/sqlglot/pull/6260) by [@fivetran-MichaelLee](https://github.com/fivetran-MichaelLee))*
269
+ - [`75ec424`](https://github.com/tobymao/sqlglot/commit/75ec424667b95462bb1750a251a5096da0d5161b) - **optimizer**: add annotation test for BOOLAND_AGG *(PR [#6257](https://github.com/tobymao/sqlglot/pull/6257) by [@fivetran-MichaelLee](https://github.com/fivetran-MichaelLee))*
270
+ - [`bb574aa`](https://github.com/tobymao/sqlglot/commit/bb574aa0cf0a8c0b92f9af7ef3dfddb7de725a8b) - **optimizer**: add annotation test for ARRAY_AGG *(PR [#6264](https://github.com/tobymao/sqlglot/pull/6264) by [@fivetran-MichaelLee](https://github.com/fivetran-MichaelLee))*
271
+ - [`a95c5cc`](https://github.com/tobymao/sqlglot/commit/a95c5ccf411dc4d28ef9c19fb03bd8a3615d7c4b) - **optimizer**: add nonnull clickhouse column test case *(commit by [@georgesittas](https://github.com/georgesittas))*
272
+ - [`6d6c689`](https://github.com/tobymao/sqlglot/commit/6d6c68915ca699da7cb707675aece963df97f80b) - **optimizer**: add annotation tests for ANY_VALUE *(PR [#6275](https://github.com/tobymao/sqlglot/pull/6275) by [@fivetran-MichaelLee](https://github.com/fivetran-MichaelLee))*
273
+ - [`2459f88`](https://github.com/tobymao/sqlglot/commit/2459f8832ae398aa1381025724a4286f7f5e3e9d) - Follow up of 6280 *(PR [#6281](https://github.com/tobymao/sqlglot/pull/6281) by [@VaggelisD](https://github.com/VaggelisD))*
274
+ - [`a7d33d0`](https://github.com/tobymao/sqlglot/commit/a7d33d0e190fc5c9f23a1ab43082ac017d20fd18) - **optimizer**: add annotation tests for APPROX_PERCENTILE *(PR [#6283](https://github.com/tobymao/sqlglot/pull/6283) by [@fivetran-MichaelLee](https://github.com/fivetran-MichaelLee))*
275
+ - [`1b2d139`](https://github.com/tobymao/sqlglot/commit/1b2d139d3338c7053dee333914323236a2d15d97) - **optimizer**: add type annotation tests with window for sf APPROX_PERCENTILE *(commit by [@geooo109](https://github.com/geooo109))*
276
+ - [`d059648`](https://github.com/tobymao/sqlglot/commit/d05964851c99553ba06e318bbbda39f9851120db) - **optimizer**: add annotation tests for APPROX_COUNT_DISTINCT *(PR [#6282](https://github.com/tobymao/sqlglot/pull/6282) by [@fivetran-MichaelLee](https://github.com/fivetran-MichaelLee))*
277
+ - [`6bd59ac`](https://github.com/tobymao/sqlglot/commit/6bd59acf2288da5bfe6151c5adf6f2a63792dc1e) - Follow up of PR 6288 *(PR [#6293](https://github.com/tobymao/sqlglot/pull/6293) by [@VaggelisD](https://github.com/VaggelisD))*
278
+ - [`546fd2a`](https://github.com/tobymao/sqlglot/commit/546fd2a2588f7b385bdbb9e39490bd6a422283ca) - Remove dead line in qualify_columns *(PR [#6304](https://github.com/tobymao/sqlglot/pull/6304) by [@VaggelisD](https://github.com/VaggelisD))*
279
+ - [`ac7ac19`](https://github.com/tobymao/sqlglot/commit/ac7ac198a3b915e63ba8a055e9a0193c3dd3e26a) - **exasol**: Implement ODBC date time literals in Exasol Sqlglot *(PR [#6311](https://github.com/tobymao/sqlglot/pull/6311) by [@nnamdi16](https://github.com/nnamdi16))*
280
+ - [`8d1d25c`](https://github.com/tobymao/sqlglot/commit/8d1d25c6de7ad03c50e3efe892d16d16329d8ee9) - **exasol**: Implement local qualifier for-aliases, in GROUP BY, WHERE AND HAVING clause in exasol dialect *(PR [#6277](https://github.com/tobymao/sqlglot/pull/6277) by [@nnamdi16](https://github.com/nnamdi16))*
281
+ - [`509b0aa`](https://github.com/tobymao/sqlglot/commit/509b0aaada0e27542864771ba14777d398b6cee0) - **exasol**: Implement day_of_week function *(PR [#6319](https://github.com/tobymao/sqlglot/pull/6319) by [@nnamdi16](https://github.com/nnamdi16))*
282
+
283
+
4
284
  ## [v27.29.0] - 2025-10-29
5
285
  ### :boom: BREAKING CHANGES
6
286
  - due to [`5242cdd`](https://github.com/tobymao/sqlglot/commit/5242cddf487e367e7f543ca19d9bccae858f36ac) - annotate type for bq LENGTH *(commit by [@geooo109](https://github.com/geooo109))*:
@@ -8170,3 +8450,4 @@ Changelog
8170
8450
  [v27.27.0]: https://github.com/tobymao/sqlglot/compare/v27.26.0...v27.27.0
8171
8451
  [v27.28.0]: https://github.com/tobymao/sqlglot/compare/v27.27.0...v27.28.0
8172
8452
  [v27.29.0]: https://github.com/tobymao/sqlglot/compare/v27.28.1...v27.29.0
8453
+ [v28.0.0]: https://github.com/tobymao/sqlglot/compare/v27.29.0...v28.0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlglot
3
- Version: 28.0.0
3
+ Version: 28.1.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
@@ -33,7 +33,7 @@ Requires-Dist: typing_extensions; extra == "dev"
33
33
  Requires-Dist: maturin<2.0,>=1.4; extra == "dev"
34
34
  Requires-Dist: pyperf; extra == "dev"
35
35
  Provides-Extra: rs
36
- Requires-Dist: sqlglotrs==0.7.3; extra == "rs"
36
+ Requires-Dist: sqlglotrs==0.8.0; extra == "rs"
37
37
  Dynamic: license-file
38
38
  Dynamic: provides-extra
39
39
 
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '28.0.0'
32
- __version_tuple__ = version_tuple = (28, 0, 0)
31
+ __version__ = version = '28.1.0'
32
+ __version_tuple__ = version_tuple = (28, 1, 0)
33
33
 
34
- __commit_id__ = commit_id = 'g73abfac4c'
34
+ __commit_id__ = commit_id = 'gb321ca619'
@@ -32,6 +32,7 @@ from sqlglot.dialects.dialect import (
32
32
  unit_to_var,
33
33
  strposition_sql,
34
34
  groupconcat_sql,
35
+ sha2_digest_sql,
35
36
  )
36
37
  from sqlglot.generator import unsupported_args
37
38
  from sqlglot.helper import seq_get, split_num_words
@@ -310,11 +311,11 @@ def _build_levenshtein(args: t.List) -> exp.Levenshtein:
310
311
 
311
312
  def _build_format_time(expr_type: t.Type[exp.Expression]) -> t.Callable[[t.List], exp.TimeToStr]:
312
313
  def _builder(args: t.List) -> exp.TimeToStr:
313
- return exp.TimeToStr(
314
- this=expr_type(this=seq_get(args, 1)),
315
- format=seq_get(args, 0),
316
- zone=seq_get(args, 2),
314
+ formatted_time = build_formatted_time(exp.TimeToStr, "bigquery")(
315
+ [expr_type(this=seq_get(args, 1)), seq_get(args, 0)]
317
316
  )
317
+ formatted_time.set("zone", seq_get(args, 2))
318
+ return formatted_time
318
319
 
319
320
  return _builder
320
321
 
@@ -353,10 +354,21 @@ class BigQuery(Dialect):
353
354
  LOG_BASE_FIRST = False
354
355
  HEX_LOWERCASE = True
355
356
  FORCE_EARLY_ALIAS_REF_EXPANSION = True
357
+ EXPAND_ONLY_GROUP_ALIAS_REF = True
356
358
  PRESERVE_ORIGINAL_NAMES = True
357
359
  HEX_STRING_IS_INTEGER_TYPE = True
358
360
  BYTE_STRING_IS_BYTES_TYPE = True
359
361
  UUID_IS_STRING_TYPE = True
362
+ ANNOTATE_ALL_SCOPES = True
363
+ PROJECTION_ALIASES_SHADOW_SOURCE_NAMES = True
364
+ TABLES_REFERENCEABLE_AS_COLUMNS = True
365
+ SUPPORTS_STRUCT_STAR_EXPANSION = True
366
+ EXCLUDES_PSEUDOCOLUMNS_FROM_STAR = True
367
+ QUERY_RESULTS_ARE_STRUCTS = True
368
+ JSON_EXTRACT_SCALAR_SCALAR_ONLY = True
369
+
370
+ # https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#initcap
371
+ INITCAP_DEFAULT_DELIMITER_CHARS = ' \t\n\r\f\v\\[\\](){}/|<>!?@"^#$&~_,.:;*%+\\-'
360
372
 
361
373
  # https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical#case_sensitivity
362
374
  NORMALIZATION_STRATEGY = NormalizationStrategy.CASE_INSENSITIVE
@@ -366,6 +378,7 @@ class BigQuery(Dialect):
366
378
 
367
379
  # https://cloud.google.com/bigquery/docs/reference/standard-sql/format-elements#format_elements_date_time
368
380
  TIME_MAPPING = {
381
+ "%x": "%m/%d/%y",
369
382
  "%D": "%m/%d/%y",
370
383
  "%E6S": "%S.%f",
371
384
  "%e": "%-d",
@@ -542,6 +555,12 @@ class BigQuery(Dialect):
542
555
  "EDIT_DISTANCE": _build_levenshtein,
543
556
  "FORMAT_DATE": _build_format_time(exp.TsOrDsToDate),
544
557
  "GENERATE_ARRAY": exp.GenerateSeries.from_arg_list,
558
+ "GREATEST": lambda args: exp.Greatest(
559
+ this=seq_get(args, 0), expressions=args[1:], null_if_any_null=True
560
+ ),
561
+ "LEAST": lambda args: exp.Least(
562
+ this=seq_get(args, 0), expressions=args[1:], null_if_any_null=True
563
+ ),
545
564
  "JSON_EXTRACT_SCALAR": _build_extract_json_with_default_path(exp.JSONExtractScalar),
546
565
  "JSON_EXTRACT_ARRAY": _build_extract_json_with_default_path(exp.JSONExtractArray),
547
566
  "JSON_EXTRACT_STRING_ARRAY": _build_extract_json_with_default_path(exp.JSONValueArray),
@@ -553,6 +572,7 @@ class BigQuery(Dialect):
553
572
  "JSON_VALUE_ARRAY": _build_extract_json_with_default_path(exp.JSONValueArray),
554
573
  "LENGTH": lambda args: exp.Length(this=seq_get(args, 0), binary=True),
555
574
  "MD5": exp.MD5Digest.from_arg_list,
575
+ "SHA1": exp.SHA1Digest.from_arg_list,
556
576
  "NORMALIZE_AND_CASEFOLD": lambda args: exp.Normalize(
557
577
  this=seq_get(args, 0), form=seq_get(args, 1), is_casefold=True
558
578
  ),
@@ -574,7 +594,9 @@ class BigQuery(Dialect):
574
594
  "REGEXP_EXTRACT_ALL": _build_regexp_extract(
575
595
  exp.RegexpExtractAll, default_group=exp.Literal.number(0)
576
596
  ),
577
- "SHA256": lambda args: exp.SHA2(this=seq_get(args, 0), length=exp.Literal.number(256)),
597
+ "SHA256": lambda args: exp.SHA2Digest(
598
+ this=seq_get(args, 0), length=exp.Literal.number(256)
599
+ ),
578
600
  "SHA512": lambda args: exp.SHA2(this=seq_get(args, 0), length=exp.Literal.number(512)),
579
601
  "SPLIT": lambda args: exp.Split(
580
602
  # https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#split
@@ -1074,7 +1096,7 @@ class BigQuery(Dialect):
1074
1096
  ),
1075
1097
  exp.GenerateSeries: rename_func("GENERATE_ARRAY"),
1076
1098
  exp.GroupConcat: lambda self, e: groupconcat_sql(
1077
- self, e, func_name="STRING_AGG", within_group=False
1099
+ self, e, func_name="STRING_AGG", within_group=False, sep=None
1078
1100
  ),
1079
1101
  exp.Hex: lambda self, e: self.func("UPPER", self.func("TO_HEX", self.sql(e, "this"))),
1080
1102
  exp.HexString: lambda self, e: self.hexstring_sql(e, binary_function_repr="FROM_HEX"),
@@ -1133,6 +1155,8 @@ class BigQuery(Dialect):
1133
1155
  ),
1134
1156
  exp.SHA: rename_func("SHA1"),
1135
1157
  exp.SHA2: sha256_sql,
1158
+ exp.SHA1Digest: rename_func("SHA1"),
1159
+ exp.SHA2Digest: sha2_digest_sql,
1136
1160
  exp.StabilityProperty: lambda self, e: (
1137
1161
  "DETERMINISTIC" if e.name == "IMMUTABLE" else "NOT DETERMINISTIC"
1138
1162
  ),
@@ -24,6 +24,7 @@ from sqlglot.dialects.dialect import (
24
24
  timestamptrunc_sql,
25
25
  unit_to_var,
26
26
  trim_sql,
27
+ sha2_digest_sql,
27
28
  )
28
29
  from sqlglot.generator import Generator
29
30
  from sqlglot.helper import is_int, seq_get
@@ -1199,7 +1200,9 @@ class ClickHouse(Dialect):
1199
1200
  exp.MD5Digest: rename_func("MD5"),
1200
1201
  exp.MD5: lambda self, e: self.func("LOWER", self.func("HEX", self.func("MD5", e.this))),
1201
1202
  exp.SHA: rename_func("SHA1"),
1203
+ exp.SHA1Digest: rename_func("SHA1"),
1202
1204
  exp.SHA2: sha256_sql,
1205
+ exp.SHA2Digest: sha2_digest_sql,
1203
1206
  exp.Split: lambda self, e: self.func(
1204
1207
  "splitByString", e.args.get("expression"), e.this, e.args.get("limit")
1205
1208
  ),