Azat Khuzhin
33d99c8ffb
Introduce compatiblity mode for SETTINGS after FORMAT
...
Add allow_settings_after_format_in_insert setting, OFF by default.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: s/parser_settings_after_format_compact/allow_settings_after_format_in_insert/ (suggested by vitlibar)
v3: replace ParserSettings with a flag (requested by vitlibar)
2022-04-07 16:36:34 +03:00
Azat Khuzhin
c5ffbc688e
Do not allow SETTINGS after FORMAT for INSERT queries
...
Parsing SETTINGS after FORMAT, that has been introduced in [1], can
interpret SETTING as some values, which is misleading.
[1]: https://github.com/ClickHouse/ClickHouse/pull/4174/files#diff-ba7bd0657630b1cd94cf6ed364bd857338096f49f66dc82918438d6745753775R106
Note, that we are touching only INSERT queries, not SELECT, since this
is a backward incompatible change, and in case of modifying SELECT it
can break too much.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Fixes : #35100
Fixes : #20343
2022-04-07 16:29:36 +03:00
avogar
c4cd8c6da4
Fix parsing query INSERT INTO ... VALUES SETTINGS ... (...), ...
2022-01-19 14:22:32 +03:00
avogar
7ea75b3082
Fix parsing queries with FROM INFILE statement again
2022-01-12 12:59:40 +03:00
Kruglov Pavel
dca9753e7a
Delete unecessary line
2022-01-11 20:26:43 +03:00
Kruglov Pavel
186020d906
Update ParserInsertQuery.cpp
2022-01-11 20:24:34 +03:00
mergify[bot]
7999d90900
Merge branch 'master' into auto_format_by_file_extension
2022-01-11 17:21:14 +00:00
avogar
070fd60b02
Fix parsing queries with FROM INFILE statement
2022-01-11 17:16:54 +03:00
zhongyuankai
146068c911
INTO OUTFILE / FROM INFILE: autodetect FORMAT by file extension
2022-01-11 21:52:09 +08:00
zhongyuankai
878e44eb97
auto format by file extension
2022-01-08 21:47:14 +08:00
Raúl Marín
051dddd8df
Reduce dependencies on ASTIdentifier.h
...
Goes from rebuilding 483 objects to 165 when it's modified
2021-11-26 16:49:40 +01:00
Nikolay Degterinsky
7b5954b736
Merge branch 'master' into query_parameters
2021-11-11 11:43:00 +00:00
Anton Popov
6b34398e9c
support VALUES format in async inserts
2021-10-20 17:20:58 +03:00
Nikolay Degterinsky
2ed72501d1
Fix tests
2021-10-13 10:00:00 +03:00
Nikolay Degterinsky
5fa0f9e7fd
Add parameters to INSERT queries
2021-10-13 03:01:41 +03:00
Filatenkov Artur
67df28bee0
Update ParserInsertQuery.cpp
2021-09-10 19:58:15 +03:00
Artur
a7c43c3e2d
add compression key-word and some tests
2021-09-10 13:59:22 +00:00
Artur Filatenkov
31c7e22bd6
correct style
2021-08-25 18:29:25 +03:00
Filatenkov Artur
884b51116d
Merge branch 'master' into master
2021-08-25 14:34:39 +03:00
Vladimir Chebotarev
a6e246b9ba
Parsing.
2021-08-23 09:22:12 +03:00
Vladimir Chebotarev
441958f590
Proper parser.
2021-08-23 09:22:12 +03:00
Artur
3591c3c8f4
correct code according to comments
2021-08-16 13:28:39 +00:00
Artur
9ba9d39d42
correct style
2021-08-14 11:15:32 +00:00
Artur
49e211bead
add from infile syntax
2021-08-13 16:30:28 +00:00
Azat Khuzhin
3f67e320dd
Fix parsing of SETTINGS clause of the INSERT ... SELECT ... SETTINGS query
...
Before this patch the following query ignores the settings for INSERT:
insert into test_parallel_insert select * from numbers_mt(65535*2) settings max_insert_threads=10
And the reason is that SETTINGS was parsed by the SELECT parser.
Fix this by push down the SETTINGS from the SELECT to INSERT.
Also note that since INSERT parser does not use ParserQueryWithOutput the
following works:
insert into test_parallel_insert select * from numbers_mt(65535*2) format Null settings max_insert_threads=10
2020-11-25 22:53:58 +03:00
Amos Bird
016f707ea1
column transformers in insert select
2020-09-13 10:21:13 +08:00
Vitaliy Zakaznikov
34a03939ea
First changes to try to support INSERT INTO table WATCH query.
2020-04-25 07:33:47 -04:00
Ivan Lezhankin
06446b4f08
dbms/ → src/
2020-04-03 18:14:31 +03:00