1
+ <!-- -
2
+ Licensed to the Apache Software Foundation (ASF) under one
3
+ or more contributor license agreements. See the NOTICE file
4
+ distributed with this work for additional information
5
+ regarding copyright ownership. The ASF licenses this file
6
+ to you under the Apache License, Version 2.0 (the
7
+ "License"); you may not use this file except in compliance
8
+ with the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing,
13
+ software distributed under the License is distributed on an
14
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ KIND, either express or implied. See the License for the
16
+ specific language governing permissions and limitations
17
+ under the License.
18
+ -->
19
+
1
20
# Changelog
2
21
All notable changes to this project will be documented in this file.
3
22
@@ -11,6 +30,133 @@ changes that break via addition as "Added".
11
30
Check https://github.com/sqlparser-rs/sqlparser-rs/commits/main for undocumented changes.
12
31
13
32
33
+ ## [ 0.51.0] 2024-09-11
34
+ As always, huge props to @iffyio @jmhain and @lovasoa for their help reviewing and merging PRs 🙏.
35
+ Without them this project would not be possible.
36
+
37
+ Reminder: we are in the final phases of moving sqlparser-rs into the Apache
38
+ DataFusion project: https://github.com/sqlparser-rs/sqlparser-rs/issues/1294
39
+
40
+ ### Fixed
41
+ * Fix Hive table comment should be after table column definitions (#1413 ) - Thanks @git-hulk
42
+ * Fix stack overflow in ` parse_subexpr ` (#1410 ) - Thanks @eejbyfeldt
43
+ * Fix ` INTERVAL ` parsing to support expressions and units via dialect (#1398 ) - Thanks @samuelcolvin
44
+ * Fix identifiers starting with ` $ ` should be regarded as a placeholder in SQLite (#1402 ) - Thanks @git-hulk
45
+
46
+ ### Added
47
+ * Support for MSSQL table options (#1414 ) - Thanks @bombsimon
48
+ * Test showing how negative constants are parsed (#1421 ) - Thanks @alamb
49
+ * Support databricks dialect to dialect_from_str (#1416 ) - Thanks @milenkovicmalamb
50
+ * Support ` DROP|CLEAR|MATERIALIZE PROJECTION ` syntax for ClickHouse (#1417 ) - Thanks @git-hulk
51
+ * Support postgres ` TRUNCATE ` syntax (#1406 ) - Thanks @tobyhede
52
+ * Support ` CREATE INDEX ` with clause (#1389 ) - Thanks @lewiszlw
53
+ * Support parsing ` CLUSTERED BY ` clause for Hive (#1397 ) - Thanks @git-hulk
54
+ * Support different ` USE ` statement syntaxes (#1387 ) - Thanks @kacpermuda
55
+ * Support ` ADD PROJECTION ` syntax for ClickHouse (#1390 ) - Thanks @git-hulk
56
+
57
+ ### Changed
58
+ * Implement common traits for OneOrManyWithParens (#1368 ) - Thanks @gstvg
59
+ * Cleanup parse_statement (#1407 ) - Thanks @samuelcolvin
60
+ * Allow ` DateTimeField::Custom ` with ` EXTRACT ` in Postgres (#1394 ) - Thanks @samuelcolvin
61
+
62
+
63
+ ## [ 0.50.0] 2024-08-15
64
+ Again, huge props to @iffyio @jmhain and @lovasoa for their help reviewing and merging PRs 🙏.
65
+ Without them this project would not be possible.
66
+
67
+ Reminder: are in the process of moving sqlparser to governed as part of the Apache
68
+ DataFusion project: https://github.com/sqlparser-rs/sqlparser-rs/issues/1294
69
+
70
+ ### Fixed
71
+ * Clippy 1.80 warnings (#1357 ) - Thanks @lovasoa
72
+
73
+ ### Added
74
+ * Support ` STRUCT ` and list of structs for DuckDB dialect (#1372 ) - Thanks @jayzhan211
75
+ * Support custom lexical precedence in PostgreSQL dialect (#1379 ) - Thanks @samuelcolvin
76
+ * Support ` FREEZE|UNFREEZE PARTITION ` syntax for ClickHouse (#1380 ) - Thanks @git-hulk
77
+ * Support scale in ` CEIL ` and ` FLOOR ` functions (#1377 ) - Thanks @seve-martinez
78
+ * Support ` CREATE TRIGGER ` and ` DROP TRIGGER ` statements (#1352 ) - Thanks @LucaCappelletti94
79
+ * Support ` EXTRACT ` syntax for snowflake (#1374 ) - Thanks @seve-martinez
80
+ * Support ` ATTACH ` / ` DETACH PARTITION ` for ClickHouse (#1362 ) - Thanks @git-hulk
81
+ * Support Dialect level precedence, update Postgres Dialect to match Postgres (#1360 ) - Thanks @samuelcolvin
82
+ * Support parsing empty map literal syntax for DuckDB and Generic dialects (#1361 ) - Thanks @goldmedal
83
+ * Support ` SETTINGS ` clause for ClickHouse table-valued functions (#1358 ) - Thanks @Jesse-Bakker
84
+ * Support ` OPTIMIZE TABLE ` statement for ClickHouse (#1359 ) - Thanks @git-hulk
85
+ * Support ` ON CLUSTER ` in ` ALTER TABLE ` for ClickHouse (#1342 ) - Thanks @git-hulk
86
+ * Support ` GLOBAL ` keyword before the join operator (#1353 ) - Thanks @git-hulk
87
+ * Support postgres String Constants with Unicode Escapes (#1355 ) - Thanks @lovasoa
88
+ * Support position with normal function call syntax for Snowflake (#1341 ) - Thanks @jmhain
89
+ * Support ` TABLE ` keyword in ` DESC|DESCRIBE|EXPLAIN TABLE ` statement (#1351 ) - Thanks @git-hulk
90
+
91
+ ### Changed
92
+ * Only require ` DESCRIBE TABLE ` for Snowflake and ClickHouse dialect (#1386 ) - Thanks @ alamb
93
+ * Rename (unreleased) ` get_next_precedence_full ` to ` get_next_precedence_default ` (#1378 ) - Thanks @samuelcolvin
94
+ * Use local GitHub Action to replace setup-rust-action (#1371 ) - Thanks @git-hulk
95
+ * Simplify arrow_cast tests (#1367 ) - Thanks @alamb
96
+ * Update version of GitHub Actions (#1363 ) - Thanks @git-hulk
97
+ * Make ` Parser::maybe_parse ` pub (#1364 ) - Thanks @Jesse-Bakker
98
+ * Improve comments on 1Dialect` (#1366 ) - Thanks @alamb
99
+
100
+
101
+ ## [ 0.49.0] 2024-07-23
102
+ As always, huge props to @iffyio @jmhain and @lovasoa for their help reviewing and merging PRs!
103
+
104
+ We are in the process of moving sqlparser to governed as part of the Apache
105
+ DataFusion project: https://github.com/sqlparser-rs/sqlparser-rs/issues/1294
106
+
107
+ ### Fixed
108
+ * Fix quoted identifier regression edge-case with "from" in SELECT (#1346 ) - Thanks @alexander-beedie
109
+ * Fix ` AS ` query clause should be after the create table options (#1339 ) - Thanks @git-hulk
110
+
111
+ ### Added
112
+
113
+ * Support ` MATERIALIZED ` /` ALIAS ` /` EPHERMERAL ` default column options for ClickHouse (#1348 ) - Thanks @git-hulk
114
+ * Support ` () ` as the ` GROUP BY ` nothing (#1347 ) - Thanks @git-hulk
115
+ * Support Map literal syntax for DuckDB and Generic (#1344 ) - Thanks @goldmedal
116
+ * Support subquery expression in ` SET ` expressions (#1343 ) - Thanks @iffyio
117
+ * Support ` WITH FILL ` for ClickHouse (#1330 ) - Thanks @nickpresta
118
+ * Support ` PARTITION BY ` for PostgreSQL in ` CREATE TABLE ` statement (#1338 ) - Thanks @git-hulk
119
+ * Support of table function ` WITH ORDINALITY ` modifier for Postgres (#1337 ) - Thanks @git-hulk
120
+
121
+
122
+ ## [ 0.48.0] 2024-07-09
123
+
124
+ Huge shout out to @iffyio @jmhain and @lovasoa for their help reviewing and merging PRs!
125
+
126
+ ### Fixed
127
+ * Fix CI error message in CI (#1333 ) - Thanks @alamb
128
+ * Fix typo in sqlparser-derive README (#1310 ) - Thanks @leoyvens
129
+ * Re-enable trailing commas in DCL (#1318 ) - Thanks @MohamedAbdeen21
130
+ * Fix a few typos in comment lines (#1316 ) - Thanks @git-hulk
131
+ * Fix Snowflake ` SELECT * wildcard REPLACE ... RENAME ` order (#1321 ) - Thanks @alexander-beedie
132
+ * Allow semi-colon at the end of UNCACHE statement (#1320 ) - Thanks @LorrensP-2158466
133
+ * Return errors, not panic, when integers fail to parse in ` AUTO_INCREMENT ` and ` TOP ` (#1305 ) - Thanks @eejbyfeldt
134
+
135
+ ### Added
136
+ * Support ` OWNER TO ` clause in Postgres (#1314 ) - Thanks @gainings
137
+ * Support ` FORMAT ` clause for ClickHouse (#1335 ) - Thanks @git-hulk
138
+ * Support ` DROP PROCEDURE ` statement (#1324 ) - Thanks @LorrensP-2158466
139
+ * Support ` PREWHERE ` condition for ClickHouse dialect (#1328 ) - Thanks @git-hulk
140
+ * Support ` SETTINGS ` pairs for ClickHouse dialect (#1327 ) - Thanks @git-hulk
141
+ * Support ` GROUP BY WITH MODIFIER ` for ClickHouse dialect (#1323 ) - Thanks @git-hulk
142
+ * Support DuckDB Union datatype (#1322 ) - Thanks @gstvg
143
+ * Support parametric arguments to ` FUNCTION ` for ClickHouse dialect (#1315 ) - Thanks @git-hulk
144
+ * Support ` TO ` in ` CREATE VIEW ` clause for Clickhouse (#1313 ) - Thanks @Bidaya0
145
+ * Support ` UPDATE ` statements that contain tuple assignments (#1317 ) - Thanks @lovasoa
146
+ * Support `BY NAME quantifier across all set ops (#1309 ) - Thanks @alexander-beedie
147
+ * Support SnowFlake exclusive ` CREATE TABLE ` options (#1233 ) - Thanks @balliegojr
148
+ * Support ClickHouse ` CREATE TABLE ` with primary key and parametrised table engine (#1289 ) - Thanks @7phs
149
+ * Support custom operators in Postgres (#1302 ) - Thanks @lovasoa
150
+ * Support ClickHouse data types (#1285 ) - Thanks @7phs
151
+
152
+ ### Changed
153
+ * Add stale PR github workflow (#1331 ) - Thanks @alamb
154
+ * Refine docs (#1326 ) - Thanks @emilsivervik
155
+ * Improve error messages with additional colons (#1319 ) - Thanks @LorrensP-2158466
156
+ * Move Display fmt to struct for ` CreateIndex ` (#1307 ) - Thanks @philipcristiano
157
+ * Enhancing Trailing Comma Option (#1212 ) - Thanks @MohamedAbdeen21
158
+ * Encapsulate ` CreateTable ` , ` CreateIndex ` into specific structs (#1291 ) - Thanks @philipcristiano
159
+
14
160
## [ 0.47.0] 2024-06-01
15
161
16
162
### Fixed
0 commit comments