Commit Graph

846 Commits

Author SHA1 Message Date
Daniel Qin
25d8c047c5
Add a check to avoid exception when long alias equals to column (#18968)
* Add a check to avoid exception when long alias equas to column

* try fix with add an underlying table name, add function test

* format code

Co-authored-by: Ling Qin <lqin@freewheel.com>
2021-01-20 18:34:17 +03:00
Alexander Kuzmenkov
0526c55206 Merge remote-tracking branch 'origin/master' into tmp 2021-01-20 10:11:24 +03:00
Alexander Kuzmenkov
4d16dead0f Merge remote-tracking branch 'origin/master' into HEAD 2021-01-19 20:34:01 +03:00
Alexander Kuzmenkov
f5931a2289
Merge pull request #19236 from ClickHouse/aku/echo-leading
Make `-- { echo }` hint preserve leading comments
2021-01-19 20:20:58 +03:00
Alexander Kuzmenkov
f346a9bf8b frame grammar tmp 2021-01-19 04:00:39 +03:00
Anton Popov
dbc10b2024
Merge pull request #19063 from CurtizJ/exists-view
Support operations with views in ANTLR parser
2021-01-19 01:15:12 +03:00
Alexander Kuzmenkov
d0922e2985 Merge remote-tracking branch 'origin/master' into tmp 2021-01-18 23:23:49 +03:00
Alexander Kuzmenkov
ccd401289c ya.make 2021-01-18 23:23:39 +03:00
Alexander Kuzmenkov
c153268da7 Make -- { echo } hint preserve leading comments. 2021-01-18 15:15:46 +03:00
Alexander Kuzmenkov
765aa4d4e3 rewrote everything again 2021-01-15 23:30:44 +03:00
Ivan Lezhankin
066242c64d Print errors through LOG_ERROR 2021-01-15 19:57:44 +03:00
Alexander Kuzmenkov
c9628386fc more fixes 2021-01-15 01:39:43 +03:00
Alexander Kuzmenkov
1abb554d2b test fixes 2021-01-14 23:47:52 +03:00
Alexander Kuzmenkov
f5d63c23a2 semicolon 2021-01-14 19:55:09 +03:00
Alexander Kuzmenkov
828dea83cb Merge remote-tracking branch 'origin/master' into tmp 2021-01-14 18:50:34 +03:00
Alexander Kuzmenkov
d53da04e6f without debug 2021-01-14 18:38:27 +03:00
Alexander Kuzmenkov
8be081e3c0 with debug 2021-01-14 18:35:52 +03:00
Anton Popov
0e2d49f065 Merge remote-tracking branch 'upstream/master' into HEAD 2021-01-14 15:03:08 +03:00
Anton Popov
9c9e2a5936 support operations with views in antlr parser 2021-01-14 15:02:29 +03:00
alexey-milovidov
bf8d58d2e8
Merge pull request #18723 from ucasFL/select-all
add SELECT ALL syntax
2021-01-14 11:53:09 +03:00
Anton Popov
4dd9165934
Merge pull request #18552 from spongedu/support_exists_view_v3
support EXISTS VIEW syntax
2021-01-14 01:23:50 +03:00
Alexander Kuzmenkov
48509a85d3 comment woes 2021-01-14 01:04:19 +03:00
Alexander Kuzmenkov
703731c547 something works 2021-01-13 22:29:52 +03:00
Anton Popov
11f459ad03 Merge branch 'support_exists_view_v3' of git://github.com/spongedu/ClickHouse into exists-view 2021-01-13 18:08:43 +03:00
Alexander Kuzmenkov
e6c2d0219d window clause tmp 2021-01-12 21:34:35 +03:00
Anton Popov
15ead18673 Merge remote-tracking branch 'upstream/master' into HEAD 2021-01-12 19:46:10 +03:00
Anton Popov
aed8c78d0d better check for existence of aggregate function 2021-01-12 18:35:07 +03:00
Anton Popov
61d6a323dd multiple TTL with GROUP BY 2021-01-12 03:40:07 +03:00
Nikolai Kochetov
ee094ed7fd
Merge pull request #18896 from amosbird/keyconditionalias
correct index analysis of WITH aliases
2021-01-11 11:13:28 +03:00
feng lv
5f962015ca fix
fix style

fix build
2021-01-11 04:28:22 +00:00
Amos Bird
44758935df
correct index analysis of WITH aliases 2021-01-10 17:40:47 +08:00
feng lv
8ab2832324 Merge branch 'master' of github.com:ClickHouse/ClickHouse into select-all 2021-01-09 02:36:25 +00:00
alexey-milovidov
7e52b0c964
Merge pull request #18789 from amosbird/onclusteraltersettings
Apply alter settings on cluster to all replicas
2021-01-08 07:27:13 +03:00
Alexey Milovidov
ffa5bbd5fd Add SYSTEM SUSPEND command #15979 2021-01-07 22:19:33 +03:00
Alexey Milovidov
8e0c3c8a42 Merge branch 'master' into amosbird-onclusteraltersettings 2021-01-07 21:42:13 +03:00
feng lv
1a47cf8611 Merge branch 'master' of github.com:ClickHouse/ClickHouse into select-all 2021-01-07 10:26:28 +00:00
alexey-milovidov
c944035f0b
Merge pull request #18699 from amosbird/exceptregex
column excepts with regex
2021-01-06 21:28:09 +03:00
jianmei zhang
4950377fbf code changes according to reviewer's comments 2021-01-06 21:05:45 +03:00
jianmei zhang
2256227361 SQL compatibility: provide POSITION(needle IN haystack) syntax. 2021-01-06 21:05:45 +03:00
Amos Bird
a32f6dcf1b
Apply alter settings on cluster to all replicas 2021-01-06 20:08:46 +08:00
feng lv
beab4f98da Merge branch 'master' of github.com:ClickHouse/ClickHouse into select-all 2021-01-06 06:10:09 +00:00
alexey-milovidov
202d1f2211
Merge pull request #18760 from spongedu/fix_#18701
[For #18707] MySQL compatibility: support DIV and MOD operators
2021-01-05 20:42:58 +03:00
feng lv
421feb8cf9 Merge branch 'master' of github.com:ClickHouse/ClickHouse into select-all 2021-01-05 07:47:11 +00:00
feng lv
3ca5cf18a4 remove throw exception
fix
2021-01-05 06:03:57 +00:00
spongedc
99335563d1 [For #18707] MySQL compatibility: support DIV and MOD operators 2021-01-05 13:03:19 +08:00
Alexey Milovidov
858c2a474a Do not throw from Parser 2021-01-05 00:28:57 +03:00
fastio
fc9c440d3e
Fix the unexpected behaviour of show tables when antlr parser enabled (#18431)
* Fix the unexpected behaviour of show tables when antlr parser enabled

* fix compile error
2021-01-04 23:42:57 +03:00
feng lv
c70ab6a18a fix
fix
2021-01-04 15:47:04 +00:00
feng lv
7a04724b3c add select all syntax 2021-01-04 14:23:17 +00:00
Amos Bird
3145ca999d
column excepts with regex 2021-01-04 00:45:27 +08:00
Ivan Lezhankin
4a72ad62ea Fix build 2020-12-31 14:52:28 +03:00
spongedc
ae7e06752e Merge remote-tracking branch 'origin/master' into support_exists_view_v3 2020-12-31 15:50:13 +08:00
alexey-milovidov
a8f9eade19
Merge pull request #18095 from spongedu/support_show_create_view
Support show create view syntax
2020-12-30 23:15:12 +03:00
Ivan Lezhankin
5e89145a42 Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2 2020-12-30 13:04:17 +03:00
Alexander Kuzmenkov
d4e5d5fdb4
Merge pull request #18455 from ClickHouse/aku/window-prototype
[wip] some window function fixes
2020-12-29 19:23:19 +03:00
spongedc
494c9ac809 Merge remote-tracking branch 'origin/master' into support_show_create_view 2020-12-29 10:20:06 +08:00
Alexander Kuzmenkov
2905f70cce fix aliases in partition by/order by 2020-12-28 12:56:38 +03:00
spongedc
1f10032299 support EXISTS VIEW syntax 2020-12-27 22:14:08 +08:00
alexey-milovidov
d84f308291
Merge pull request #18521 from ClickHouse/implement_create_or_replace
Implement [CREATE OR] REPLACE TABLE
2020-12-27 11:48:06 +03:00
alexey-milovidov
849ca482c9
Merge pull request #18458 from spongedu/support_exists_database
support EXISTS DATABASE syntax
2020-12-25 22:28:02 +03:00
Alexander Tokmakov
42911e2438 implement CREATE OR REPLACE TABLE 2020-12-25 19:32:09 +03:00
Alexander Kuzmenkov
a17f0b50ad Merge remote-tracking branch 'origin/master' into tmp 2020-12-25 10:34:28 +03:00
Alexander Kuzmenkov
998bd17877 fix column name clash w/agg fns
also fix some test references influenced by the explain changes
2020-12-25 07:59:17 +03:00
Yatsishin Ilya
ce1e2b18a3 Fix codespell warnings. Split style checks. Update style checks docker 2020-12-24 13:17:52 +03:00
alexey-milovidov
eb95a5a030
Update ParserTablePropertiesQuery.cpp 2020-12-24 13:14:17 +03:00
alexey-milovidov
34508f466f
Update ParserTablePropertiesQuery.cpp 2020-12-24 13:14:01 +03:00
spongedc
71ab8c18fa support EXISTS DATABASE syntax 2020-12-24 17:16:47 +08:00
spongedc
a277308ac6 Merge remote-tracking branch 'origin/master' into support_show_create_view 2020-12-23 11:56:46 +08:00
Alexander Kuzmenkov
52ace7a3d1 one plan step per window 2020-12-22 04:37:45 +03:00
Alexander Kuzmenkov
85c1bc1253 Merge remote-tracking branch 'origin/master' into tmp 2020-12-21 10:46:21 +03:00
Alexey Milovidov
9be5fa9ef2 Merge branch 'master' into Enmk-Optimize_deduplicate 2020-12-20 09:57:10 +03:00
alexey-milovidov
03bc2d328a
Merge pull request #17726 from amosbird/querylog
Extensive information in system.query_log
2020-12-18 21:24:21 +03:00
Alexander Kuzmenkov
132a0b42eb cleanup 2020-12-18 20:13:28 +03:00
Nikolai Kochetov
591e0a744b
Merge pull request #18183 from spongedu/fix_show_hint
complete hints for show statement
2020-12-18 18:50:27 +03:00
Amos Bird
272311f6bd
Extensive information in system.query_log 2020-12-18 14:13:58 +08:00
Alexander Kuzmenkov
5e19eaf2f0 Merge remote-tracking branch 'origin/master' into tmp 2020-12-18 03:49:59 +03:00
Alexander Kuzmenkov
157fe3e8b4 some tests + ability to echo the queries 2020-12-18 03:49:18 +03:00
Alexander Kuzmenkov
fc426807a8 formatting & fuzzer support 2020-12-18 03:21:23 +03:00
tavplubix
7e73b6acd8
Merge pull request #17642 from filimonov/detach-permanently
DETACH TABLE PERMANENTLY
2020-12-17 14:26:51 +03:00
spongedc
0434e3c17b fix parser hints for show statement 2020-12-17 12:24:36 +08:00
alexey-milovidov
37da513c36
Merge pull request #18136 from taiyang-li/explain_ast_nonselect_query
Explain ast support nonselect querys
2020-12-17 03:35:19 +03:00
Alexander Kuzmenkov
a1326414ff Merge remote-tracking branch 'origin/master' into tmp 2020-12-17 00:46:14 +03:00
Alexander Kuzmenkov
fef24c81e3 some grammar 2020-12-17 00:44:05 +03:00
alexey-milovidov
b8250882ac
Merge pull request #18056 from zhangjmruc/master
Fix issue #17160 by adding show settings like '...'
2020-12-16 20:35:18 +03:00
Nikolai Kochetov
d96ca3fb8d Fixing build. 2020-12-16 20:11:32 +03:00
Ivan Lezhankin
8148a3bb8f [WIP] 2020-12-16 16:32:23 +03:00
Ivan Lezhankin
2fe6195577 Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2 2020-12-16 14:50:36 +03:00
taiyang-li
cd7827f70c explain ast support nonselect queries 2020-12-16 18:11:38 +08:00
spongedc
38c0827881 Merge remote-tracking branch 'origin/master' into support_show_create_view 2020-12-16 12:26:56 +08:00
spongedc
a0083e23d6 Fix compile error 2020-12-16 12:07:50 +08:00
spongedc
81b0fa2989 1. rename is_view to is_ordinary_view 2. add more tests 2020-12-16 11:19:38 +08:00
jianmei zhang
a7933ddf31 Merge and rebase with master 2020-12-16 09:38:38 +08:00
Vasily Nemkov
90041babe1 Fixed compilation 2020-12-15 14:35:11 +03:00
jianmei zhang
508b50d121 support SHOW CHANGED SETTINGS query and add test cases, also do code changes to compile SHOW SETTINGS PROFILES. 2020-12-15 14:46:56 +08:00
Alexander Kuzmenkov
a75ca3cb79 Merge remote-tracking branch 'origin/master' into tmp 2020-12-15 03:36:43 +03:00
Anton Popov
c78861e86e Merge remote-tracking branch 'upstream/master' into HEAD 2020-12-15 01:45:01 +03:00
spongedc
8b2feaeca2 Support SHOW CREATE VIEW Syntax 2020-12-14 22:37:25 +08:00
Mikhail Filimonov
ad9cb580a9
Fix 2020-12-14 15:31:11 +01:00
Mikhail Filimonov
3f5e5eb15a
Handle not implemented cases properly 2020-12-14 15:31:05 +01:00
Mikhail Filimonov
f6097cf818
Adding DETACH TABLE PERMANENTLY 2020-12-14 15:28:59 +01:00
Maksim Kita
5f7c867da3 Added parse error if no select after as keyword 2020-12-14 12:33:16 +03:00
Maksim Kita
d8534ae1af CreateQuery create as select with columns specification 2020-12-14 12:30:08 +03:00
jianmei zhang
f829fbb928 Merge remote-tracking branch 'upstream/master' 2020-12-14 11:21:42 +08:00
jianmei zhang
2169e8f7f4 Fix issue #17160 by adding show settings like '...' 2020-12-14 10:33:51 +08:00
Azat Khuzhin
5b3ab48861 More forward declaration for generic headers
The following headers are pretty generic, so use forward declaration as
much as possible:
- Context.h
- Settings.h
- ConnectionTimeouts.h
(Also this shows that some missing some includes -- this has been fixed)

And split ConnectionTimeouts.h into ConnectionTimeoutsContext.h (since
module part cannot be added for it, due to recursive build dependencies
that will be introduced)

Also remove Settings from the RemoteBlockInputStream/RemoteQueryExecutor
and just pass the context, since settings was passed only in speicifc
places, that can allow making a copy of Context (i.e. Copier).

Approx results (How much units will be recompiled after changing file X?):

- ConnectionTimeouts.h
  - mainline: 100

- Context.h:
  - mainline: ~800
  - patched:  415

- Settings.h:
  - mainline: 900-1K
  - patched:  440 (most of them because of the Context.h)
2020-12-12 17:43:10 +03:00
alexey-milovidov
adbe8e1ebb
Merge pull request #17903 from ClickHouse/attach_table_from_path
Implement ATTACH TABLE name FROM 'path/to/data/'
2020-12-12 02:42:53 +03:00
Azat Khuzhin
d5b62ab26d build: use -Wno-c++2a-compat over -Wno-c++20-compat (since -std=c++2a) 2020-12-11 01:32:38 +03:00
Alexander Kuzmenkov
88e7bc5b60 Merge origin/master into tmp (using imerge) 2020-12-10 22:12:42 +03:00
Alexander Kuzmenkov
eb0c817bf2 expression analyzer part 2020-12-09 14:14:40 +03:00
Alexander Tokmakov
04ceaa66f2 implement ATTACH TABLE name FROM 'path/to/data/ 2020-12-08 17:15:23 +03:00
alexey-milovidov
d9b52f94f7
Merge pull request #17637 from amosbird/buildid
reload symbols and fix build-id
2020-12-08 14:55:35 +03:00
Alexey Milovidov
1ed329017b Merge branch 'master' into quota-by-x-forwarded-for 2020-12-07 18:22:19 +03:00
Vasily Nemkov
168155eeec Minor: cleanup 2020-12-07 18:07:40 +03:00
Vasily Nemkov
957bbfc7b0 Fixed parsing invalid cases: prohibit empty lists and APPLY/REPLACE column transformers 2020-12-07 13:18:54 +03:00
Vasily Nemkov
70ea507dae OPTIMIZE DEDUPLICATE BY columns
Extended OPTIMIZE ... DEDUPLICATE syntax to allow explicit (or implicit with asterisk/column transformers) list of columns to check for duplicates on.

Following syntax variants are now supported:

OPTIMIZE TABLE table DEDUPLICATE; -- the old one
OPTIMIZE TABLE table DEDUPLICATE BY *;
OPTIMIZE TABLE table DEDUPLICATE BY * EXCEPT colX;
OPTIMIZE TABLE table DEDUPLICATE BY * EXCEPT (colX, colY);
OPTIMIZE TABLE table DEDUPLICATE BY col1,col2,col3;
OPTIMIZE TABLE table DEDUPLICATE BY COLUMNS('column-matched-by-regex');
OPTIMIZE TABLE table DEDUPLICATE BY COLUMNS('column-matched-by-regex') EXCEPT colX;
OPTIMIZE TABLE table DEDUPLICATE BY COLUMNS('column-matched-by-regex') EXCEPT (colX, colY);

Note that * behaves just like in SELECT: MATERIALIZED, and ALIAS columns are not used for expansion.
Also, it is an error to specify empty list of columns, or write an expression that results in an empty list of columns, or deduplicate by an ALIAS column.
Column transformers other than EXCEPT are not supported.
2020-12-07 09:44:07 +03:00
Alexey Milovidov
a63d4f0db3 Merge branch 'master' into amosbird-buildid 2020-12-07 02:17:29 +03:00
Anton Popov
7aaa2c052f
Merge branch 'master' into merging-map 2020-12-05 22:41:46 +03:00
Anton Popov
6b09669d66 data type map: several fixes 2020-12-05 22:36:09 +03:00
Ivan
315ff4f0d9
ANTLR4 Grammar for ClickHouse and new parser (#11298) 2020-12-04 05:15:44 +03:00
Alexey Milovidov
2c7b03ab6e Fix error 2020-12-02 22:20:47 +03:00
Anton Popov
12604ce0e6 Merge branch 'dev_map2' of git://github.com/hexiaoting/ClickHouse into merging-map 2020-12-01 14:52:30 +03:00
Amos Bird
310918b06a
reload symbols and fix build-id 2020-11-30 22:30:55 +08:00
Alexey Milovidov
4a66db1bf4 Fix #10976 2020-11-29 16:43:24 +03:00
Alexey Milovidov
f9b1e77808 ParserAlterQuery: fix strange code 2020-11-29 16:30:16 +03:00
Alexey Milovidov
7c0138542b Query obfuscator: remove some words 2020-11-28 10:55:15 +03:00
alexey-milovidov
62a45e8ff7
Merge pull request #17414 from azat/fix-INSERT-SETTINGS-parsing
Fix parsing of SETTINGS clause of the INSERT ... SELECT ... SETTINGS query
2020-11-28 08:38:42 +03:00
hexiaoting
2523f8f0c6 Merge remote-tracking branch 'origin/master' into dev_replace 2020-11-27 10:51:04 +08:00
hexiaoting
5b3a7f5c98 Merge remote-tracking branch 'origin/master' into dev_map2 2020-11-26 16:43:27 +08:00
hexiaoting
74d875c837 Merge remote-tracking branch 'origin/master' into dev_map2 2020-11-26 15:13:52 +08:00
alexey-milovidov
2d5072844f
Update InsertQuerySettingsPushDownVisitor.h 2020-11-26 03:25:08 +03: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
Azat Khuzhin
36dc23668d Fix formatting of SETTINGS clause of the INSERT query 2020-11-25 21:32:10 +03:00
Alexander Kuzmenkov
1d7dcef4a0 Merge remote-tracking branch 'origin/master' into HEAD 2020-11-24 21:45:10 +03:00
tavplubix
085359c110
Merge pull request #17274 from ClickHouse/fix_ast_formatting_in_logs
Fix AST formatting in log messages
2020-11-24 19:00:56 +03:00
Alexander Kuzmenkov
412c2fe079 Merge remote-tracking branch 'origin/master' into HEAD 2020-11-23 19:51:18 +03:00
Ivan Lezhankin
1002148886 Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2 2020-11-22 22:34:36 +03:00
Alexander Tokmakov
60a5782c75 fix AST formatting in log messages 2020-11-22 20:23:12 +03:00
Nikolai Kochetov
bac1def5f9
Merge pull request #17134 from abyss7/tcp-port
Implement tcpPort() function for tests
2020-11-20 20:32:55 +03:00
Ivan Lezhankin
fdd1c182ab Merge remote-tracking branch 'upstream/master' into tcp-port 2020-11-18 16:22:00 +03:00
Alexander Kuzmenkov
b16c5a1748 Merge remote-tracking branch 'origin/master' into HEAD 2020-11-17 22:54:54 +03:00
Alexander Kuzmenkov
2bd6584636 JSONArray fixes 2020-11-17 21:33:54 +03:00
Ivan Lezhankin
1787cd89a7 Implement tcpPort() function literal 2020-11-17 16:24:13 +03:00
Alexey Milovidov
24f4fa6edf Follow Arcadia ya.make rules 2020-11-17 00:16:50 +03:00
Alexey Milovidov
3df04ce0c2 Follow Arcadia ya.make rules 2020-11-16 21:24:58 +03:00
Ivan Lezhankin
fb473e6f9c More fixes 2020-11-13 17:34:47 +03:00
Ivan Lezhankin
d69b6307b5 Fix GLOBAL IN evaluation 2020-11-13 17:13:27 +03:00
Ivan Lezhankin
9250d5c4e9 Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2 2020-11-12 16:25:46 +03:00
feng lv
b7e5c6ed4d fix conflict 2020-11-12 02:26:21 +00:00
tavplubix
058aa8f85e
Merge pull request #16824 from ClickHouse/replace_stringstreams_with_buffers
Replace std::*stringstreams with DB::*Buffers
2020-11-12 01:11:44 +03:00
feng lv
f04bd0643d fix test
fix

fix
2020-11-11 10:42:37 +00:00
feng lv
fec4080d42 Merge branch 'master' of github.com:ClickHouse/ClickHouse into union-distinct 2020-11-11 03:10:10 +00:00
Alexander Tokmakov
b94cc5c4e5 remove more stringstreams 2020-11-10 21:22:26 +03:00
Vladimir Chebotarev
059357d51e
ALTER UPDATE/DELETE ... IN PARTITION with partition pruning in ReplicatedMergeTree (#13403)
Co-authored-by: Alexander Kazakov <Akazz@users.noreply.github.com>
2020-11-10 13:23:46 +03:00
hexiaoting
293ae54fab Modify codes to make logical clearly 2020-11-10 15:18:12 +08:00
feng lv
9194985d48 Merge branch 'master' of github.com:ClickHouse/ClickHouse into union-distinct 2020-11-10 06:09:39 +00:00
Alexander Kuzmenkov
55c7051330 Merge remote-tracking branch 'origin/master' into HEAD 2020-11-10 08:50:54 +03:00
hexiaoting
694ad1f452 Modify except column transformer's error log 2020-11-10 11:14:41 +08:00
Alexander Tokmakov
5cdfcfb307 remove other stringstreams 2020-11-09 22:12:44 +03:00
Alexander Tokmakov
62ff00ee8b use WriteBuffer in formatAST(...) 2020-11-09 19:05:40 +03:00
feng lv
b4c933e585 fix
fix test
2020-11-09 16:03:52 +00:00
Alexander Kuzmenkov
26229ed231 tmp spans for threads
(doesn't compile because of json metadata changes)
2020-11-09 18:07:38 +03:00
hexiaoting
2b240029c1 Add space for format Impl 2020-11-09 17:13:27 +08:00
alesapin
72046313d4 Merge branch 'master' into nvartolomei-drop-part 2020-11-09 10:02:02 +03:00
Alexander Kuzmenkov
2fe9c76728 Merge remote-tracking branch 'origin/master' into HEAD 2020-11-09 09:37:50 +03:00
hexiaoting
5622882553 remove unused code 2020-11-09 14:21:50 +08:00
hexiaoting
ad8eac4929 build error and style error fix 2020-11-09 13:58:32 +08:00
alexey-milovidov
8289fe7b9f
Merge pull request #16768 from ClickHouse/better-diagnostic-on-create-syntax-error
Better diagnostics on syntax error in CREATE TABLE query
2020-11-08 14:28:33 +03:00
Alexey Milovidov
7c62dbb6dc Fix error 2020-11-08 01:23:19 +03:00
Alexey Milovidov
5ea17f9896 Merge branch 'master' into better-diagnostic-on-create-syntax-error 2020-11-08 01:21:07 +03:00
Alexey Milovidov
dba57529f8 Merge branch 'master' of github.com:yandex/ClickHouse into fix-stringstream 2020-11-07 22:03:38 +03:00
feng lv
1ca7dcb0a8 fix conflict 2020-11-07 11:44:29 +00:00
feng lv
125eb02726 nomalize ASTSelectWithUnionQuery 2020-11-07 11:38:20 +00:00
alexey-milovidov
59ea3e7db0
Merge pull request #16586 from kitaisreal/create-query-nested-type-column-formatting-intendation-fix
CreateQuery nested type column formatting fix
2020-11-07 13:42:20 +03:00
Alexey Milovidov
fd84d16387 Fix "server failed to start" error 2020-11-07 03:14:53 +03:00
alexey-milovidov
85ecc9ea10
Update ASTColumnDeclaration.cpp 2020-11-06 22:11:57 +03:00
Alexey Milovidov
c01177099e Better diagnostics on syntax error in CREATE TABLE query #12493 2020-11-06 21:19:57 +03:00
hexiaoting
28e87da976 remove map literal and Merge remote-tracking branch 'origin/master' into dev_map2 2020-11-06 15:07:41 +08:00
hexiaoting
8ffce5e974 Merge remote-tracking branch 'origin/master' into dev_replace 2020-11-06 12:02:45 +08:00
Alexey Milovidov
b56486510f Improve Arcadia 2020-11-05 12:55:01 +03:00
Alexander Kuzmenkov
faf1f1e0cd Merge remote-tracking branch 'origin/master' into HEAD 2020-11-05 11:09:11 +03:00
Maksim Kita
b1e75ec6f5 CreateQuery compound column type indendation fix 2020-11-04 23:43:11 +03:00
alexey-milovidov
6d62f2163d
Merge pull request #16589 from amosbird/applyp
Allow parameterized functions in APPLY
2020-11-04 12:06:41 +03:00
alesapin
20043e77bb Merge branch 'master' into nvartolomei-drop-part 2020-11-04 10:22:23 +03:00
Ivan
64bd63ca49
Try to parse DataType arguments as another nested type (#16262)
* Try to parse DataType arguments as another nested one

* Allow mixed lists of arguments of data types

* Restore croaring back

* Fix tests
2020-11-04 03:08:55 +03:00
alexey-milovidov
225f7e2696
Merge pull request #16594 from amosbird/qpi
Query parameter type : Identifier
2020-11-04 01:35:23 +03:00
alesapin
67d22b3e57 Merge branch 'master' into nvartolomei-drop-part 2020-11-02 19:09:09 +03:00
Amos Bird
5e51256897
Fix warning 2020-11-02 23:04:18 +08:00
alexey-milovidov
5633dfb402
Update ExpressionElementParsers.h 2020-11-02 16:15:40 +03:00
Amos Bird
4cfae808fa
Query parameter type : Identifier 2020-11-02 20:58:51 +08:00
feng lv
4d722bc52c fix conflict 2020-11-02 12:52:12 +00:00
Ivan
281bf351d2
Remove ANALYZE and AST queries (#16536) 2020-11-02 15:47:12 +03:00
feng lv
1a34abadbc fix
fix

fix
2020-11-02 10:46:58 +00:00
feng lv
7159affda8 fix 2020-11-02 06:53:09 +00:00
hexiaoting
3a70cf3773 Merge remote-tracking branch 'origin/master' into dev_map2 2020-11-02 14:46:56 +08:00
hexiaoting
2ba68d7494 Add map function 2020-11-02 14:05:53 +08:00
feng lv
3dce3c6a21 fix 2020-11-02 05:28:37 +00:00
Amos Bird
13fee19778
Allow parameterized functions in APPLY 2020-11-02 11:10:20 +08:00
feng lv
5f25f9c814 fix
fix
2020-11-01 15:31:20 +00:00
feng lv
e82ce52e2f fix 2020-11-01 14:57:41 +00:00
feng lv
af45cddbc7 fix 2020-11-01 14:43:29 +00:00
feng lv
382fff9009 fix 2020-11-01 13:54:07 +00:00
Ivan Lezhankin
b74a931a89 Fix ASTQualifiedAsterisk first child 2020-10-30 21:28:11 +03:00
Alexander Kuzmenkov
8928920cfd Merge remote-tracking branch 'origin/master' into HEAD 2020-10-30 00:29:16 +03:00
Alexander Kuzmenkov
18fbb3dc23 some drafts 2020-10-30 00:29:10 +03:00
Maxim Akhmedov
3627fabfb9 Remove -g0 form Arcadia build settings. 2020-10-29 17:37:23 +03:00
Alexander Kuzmenkov
29907e6f81 Merge commit 'refs/pull/16262/head' of github.com:ClickHouse/ClickHouse into HEAD 2020-10-28 12:57:28 +03:00
feng lv
7bfd5d9e8d need fix 2020-10-28 01:29:09 +00:00
Mikhail Filimonov
41971e073a
Fix typos reported by codespell 2020-10-27 12:04:03 +01:00
Ivan
15e3254a85
Merge branch 'master' into ast-table-identifier-2 2020-10-26 18:54:18 +03:00
Ivan Lezhankin
4083406f54 Introduce ASTTableIdentifier 2020-10-26 18:49:00 +03:00
feng lv
9b95ed9ead fix 2020-10-26 12:21:04 +00:00
feng lv
a9e4c7144c fix 2020-10-26 09:33:34 +00:00
hexiaoting
333cf8298f Merge remote-tracking branch 'origin/master' into dev_replace 2020-10-26 11:27:55 +08:00
tavplubix
37de8727ea
Merge branch 'master' into fix/ISSUES-15883 2020-10-25 12:14:16 +03:00
Ivan
1d170f5745
ASTTableIdentifier Part #1: improve internal representation of ASTIdentifier name (#16149)
* Use only |name_parts| as primary name source

* Restore legacy logic for table restoration

* Fix build

* Fix tests

* Add pytest server config

* Fix tests

* Fixes due to review
2020-10-24 21:46:10 +03:00
feng lv
dcf4b0df1f fix 2020-10-24 14:03:15 +00:00
feng lv
b2a3ace6d1 fix 2020-10-24 13:41:20 +00:00
feng lv
15e4e03469 add union distinct and setting union_default_mode 2020-10-24 13:18:04 +00:00
tavplubix
587f83b2ef
Merge branch 'master' into atomic-drop-database-sync 2020-10-23 21:54:26 +03:00
Alexander Kuzmenkov
28c9e66dc1
Merge pull request #15978 from ucasFL/interval-op
INTERVAL operator support string literal
2020-10-23 14:44:05 +03:00
hexiaoting
0800963135 Update parser for column transformers 2020-10-23 17:15:55 +08:00
hexiaoting
1de6f889fe Merge remote-tracking branch 'origin/master' into dev_replace 2020-10-23 16:38:25 +08:00
hexiaoting
483be134b2 Support MergeTree Engine 2020-10-23 16:36:17 +08:00
Ivan Lezhankin
3d3b49d009 Try to parse DataType arguments as another nested one 2020-10-22 16:44:48 +03:00
hexiaoting
ad2d2cf10d Modify varaible name and log info 2020-10-22 12:40:50 +08:00
hexiaoting
91b1dab75b Add EXCEPTSTRICT and REPLACESTRICT column transformers 2020-10-21 15:54:13 +08:00
Vladimir Chebotarev
aa5f207fd4
Added disable_merges option for volumes in multi-disk configuration (#13956)
Co-authored-by: Alexander Kazakov <Akazz@users.noreply.github.com>
2020-10-20 18:10:24 +03:00
hexiaoting
293d2f06fa Fix: throw error when column transformer use non-exsit column 2020-10-20 15:38:56 +08:00
Azat Khuzhin
6200783629 database_atomic_wait_for_drop_and_detach_synchronously/NO DELAY/SYNC for DROP DATABASE 2020-10-19 00:21:39 +03:00
hexiaoting
fcd35b0619 Merge branch 'master' into dev_map2 2020-10-18 16:18:13 +08:00
zhang2014
5207be9b32 ISSUES-15883 try fix test failure 2020-10-17 12:36:08 +08:00
zhang2014
4e285168df ISSUES-15883 try fix test failure 2020-10-16 09:11:05 +08:00
Maksim Kita
9bd30b041a Parser allow specify primary key in column list 2020-10-15 23:33:00 +03:00
Alexander Kuzmenkov
f7f59ca23f
Merge pull request #15982 from vitlibar/fix-ambiguity-in-parsing-of-settings-profiles
Fix ambiguity in parsing of settings profiles.
2020-10-15 16:23:32 +03:00
zhang2014
c8aa007a45 ISSUES-15883 modify comment 2020-10-15 20:42:10 +08:00
zhang2014
80f3de1359 ISSUES-15883 try fix collate name 2020-10-15 20:39:04 +08:00
feng lv
fabe86c6d3 fix
fix
2020-10-15 20:16:36 +08:00
feng lv
b931a3c9da fix
update test

fix
2020-10-15 16:14:28 +08:00
tavplubix
04206db7da
Merge pull request #15974 from ClickHouse/merging_14295
Merging #14295
2020-10-14 23:51:42 +03:00
Vitaly Baranov
2f13fcb4b7 Fix ambiguity in parsing of settings profiles. 2020-10-14 20:30:24 +03:00
feng lv
7b69592e49 add test
fix

fix
2020-10-14 23:15:46 +08:00
feng lv
eb8d8f6ba4 interval op support string literal 2020-10-14 23:02:51 +08:00
Anton Popov
7470ac98bb
Merge pull request #15855 from hexiaoting/dev_fetch
Add Support for OFFSET_FETCH_CLAUSE
2020-10-14 15:21:28 +03:00
Alexander Tokmakov
72b1339656 Revert "Revert "Write structure of table functions to metadata""
This reverts commit c65d1e5c70.
2020-10-14 15:19:29 +03:00
tavplubix
c65d1e5c70
Revert "Write structure of table functions to metadata" 2020-10-14 13:59:29 +03:00
hexiaoting
2c72cdef44 Fix error for offset_fetch without only/with ties 2020-10-14 15:05:02 +08:00
hexiaoting
974352a8e1 Fix style check errors. 2020-10-14 14:35:14 +08:00
hexiaoting
cdb4dd57a6 Add new DataType Map(key,value) 2020-10-14 14:35:14 +08:00
alexey-milovidov
f60ccb4edf
Merge pull request #14295 from ClickHouse/write_structure_of_table_functions
Write structure of table functions to metadata
2020-10-13 23:56:09 +03:00
hexiaoting
dea965832a Fix error for previous offset test 2020-10-13 11:32:43 +08:00
Vitaly Baranov
eddd26cf3a Fix deadlock in InterpreterGrantQuery. 2020-10-13 01:03:47 +03:00
hexiaoting
39367be57a Add Support for OFFSET_FETCH_CLAUSE 2020-10-12 16:46:49 +08:00
Alexey Milovidov
269b6383f5 Check for #pragma once in headers 2020-10-10 21:37:02 +03:00
alexey-milovidov
f7b390465b
Merge branch 'master' into realfix 2020-10-03 16:54:23 +03:00
Alexander Tokmakov
6b2da861dc Merge branch 'master' into write_structure_of_table_functions 2020-10-02 20:46:58 +03:00
tavplubix
2f95609f98
Merge pull request #15448 from ClickHouse/allow_synchronous_drop_for_atomic_db
Allow synchronous DROP/DETACH TABLE for Atomic
2020-10-01 01:14:31 +03:00
Artem Zuikov
0f6a6453fe
Remove multiple_joins_rewriter v1 (#15472) 2020-09-30 23:11:49 +03:00
Alexander Tokmakov
8692c10495 add alias 2020-09-29 17:12:40 +03:00
Amos Bird
8eb8175258
Fix multiple column transformers. 2020-09-28 17:53:39 +08:00
Alexander Tokmakov
b0d99217fb Merge branch 'master' into write_structure_of_table_functions 2020-09-27 14:26:47 +03:00
alexey-milovidov
bbbe51033d
Merge pull request #15321 from ClickHouse/query-obfuscator
Query obfuscator
2020-09-26 19:43:36 +03:00
Alexey Milovidov
da8a938069 Replace unit test to functional test 2020-09-26 09:50:34 +03:00
Alexey Milovidov
57b480e65d Fix PVS warning 2020-09-26 07:03:55 +03:00
Alexey Milovidov
f3349c8d13 Keywords are case-insensitive 2020-09-26 05:13:20 +03:00
Alexey Milovidov
c51502bce4 Remove words with dashes 2020-09-26 05:06:14 +03:00
Alexey Milovidov
f97d40584d Fix "Arcadia" 2020-09-26 04:10:26 +03:00
Alexey Milovidov
bda2c2f58f Remove sensitive words 2020-09-26 03:53:26 +03:00
Alexey Milovidov
fc10803def Fix comment 2020-09-26 03:50:56 +03:00
Alexey Milovidov
d78fc63deb Remove duplicate word 2020-09-26 03:50:00 +03:00
Alexey Milovidov
22861b0c3d Remove some profanity 2020-09-26 03:49:30 +03:00
Alexey Milovidov
673f72cf8c Remove some profanity 2020-09-26 03:48:09 +03:00
Alexey Milovidov
ed4ff51ed8 Integrate into clickhouse-format; add test and comments 2020-09-26 03:38:59 +03:00
Alexey Milovidov
62c2c2000c Query obfuscator: development 2020-09-26 03:00:54 +03:00
tavplubix
d4c8ba8410
Update ASTColumnsTransformers.h 2020-09-25 14:58:04 +03:00
Alexander Tokmakov
8f21c73b76 Revert "Update ASTColumnsTransformers.h"
This reverts commit b30e860166.
2020-09-25 14:52:55 +03:00
tavplubix
b30e860166
Update ASTColumnsTransformers.h 2020-09-25 14:51:00 +03:00
Amos Bird
def110f835
Fix ASTWithElement clone. 2020-09-22 19:05:23 +08:00
alesapin
5ffee8808a
Alter remove column properties and TTLs (#14742) 2020-09-20 16:27:33 +03:00
alexey-milovidov
2cab30ba8d
Merge pull request #14521 from hexiaoting/dev_like
Add new feature: SHOW DATABASES like 'xxx'
2020-09-19 16:34:37 +03:00
alexey-milovidov
acbdc51460
Merge pull request #14771 from amosbird/withsub
First attempt of supporting CTE
2020-09-19 16:25:34 +03:00
Alexander Tokmakov
1ca9a92b21 Merge branch 'master' into write_structure_of_table_functions 2020-09-18 21:09:23 +03:00
Alexey Milovidov
0ad44b821e Fix build 2020-09-18 01:45:12 +03:00
Amos Bird
3e576a29c9
explict column list in columns matcher (#14775) 2020-09-16 15:44:05 +03:00
Artem Zuikov
51ba12c2c3
Try speedup build (#14809) 2020-09-15 12:55:57 +03:00
Vitaliy Zakaznikov
64d130f8a2 Adding support for [PERIODIC] REFRESH [value_sec] clause when
creating LIVE VIEW tables.
2020-09-14 15:39:33 -04:00
Amos Bird
016f707ea1
column transformers in insert select 2020-09-13 10:21:13 +08:00
Amos Bird
882b2a3348
CTE 2020-09-13 09:39:17 +08:00
Amos Bird
da2bb4e0d3
Fix missing clone in replace column transformer 2020-09-11 15:50:25 +08:00
alexey-milovidov
92b746116a
Merge pull request #14655 from ClickHouse/nested-multiline-comments
Support for nested multiline comments
2020-09-10 06:10:31 +03:00
hexiaoting
a173a863a8 fix style error 2020-09-10 11:03:35 +08:00
alexey-milovidov
f60267a383
Merge pull request #14611 from amosbird/bf2
Treat query as function argument.
2020-09-09 21:20:33 +03:00
Alexey Milovidov
7304bad56f Support for nested multiline comments 2020-09-09 20:51:05 +03:00
alexey-milovidov
a6a0d4966c
Merge pull request #14595 from azat/query-format-trailing-whitespace
Fix some trailing whitespaces in query format (ExpressionList users)
2020-09-09 19:22:55 +03:00
Alexander Tokmakov
d278d849e4 Merge branch 'master' into write_structure_of_table_functions 2020-09-09 17:12:35 +03:00
Amos Bird
b40998ca00
Treat query as function argument. 2020-09-09 15:41:38 +08:00
hexiaoting
406f384a45 support ILIKE, and separate like,limit function. 2020-09-09 11:24:47 +08:00
Azat Khuzhin
014c7c02bd Fix some trailing whitespaces in query format
The following statements still has the trailing whitespace:
- WITH
- SELECT
- SELECT DISTINCT
- ARRAY JOIN
- GROUP BY
- ORDER BY
- LIMIT BY
2020-09-09 01:36:21 +03:00
alesapin
f0f7f2b5d2 Merge branch 'master' into recompression_in_background 2020-09-08 15:43:37 +03:00
Alexey Milovidov
e3924b8057 Fix "Arcadia" 2020-09-08 01:14:13 +03:00
Nicolae Vartolomei
6060a1ab57 ALTER TABLE ... DROP|DETACH PART for ReplicatedMergeTree 2020-09-07 17:01:45 +01:00