Nikita Mikhaylov
0e602d85f0
Done
2021-09-28 20:16:32 +00:00
Azat Khuzhin
2378491c04
Transform isNull/isNotNull to IS NULL/IS NOT NULL (for external dbs)
...
This is required to support queries (like `foo IS NULL`) to external
databases (i.e. MySQL).
This patch had been submitted separately, due to:
- avoid mixing patches
- run CI (and update tests references)
2021-09-27 22:24:09 +03:00
Nikolai Kochetov
236d71ea94
Merge pull request #28582 from ClickHouse/rewrite-pushing-to-views
...
Rewrite PushingToViews
2021-09-27 21:19:11 +03:00
alesapin
ddd80c8e72
Merge pull request #29264 from Enmk/governance/table_comment_update
...
Implemented modifying table comments with `ALTER TABLE t MODIFY COMMENT 'value'`
2021-09-27 18:02:14 +03:00
Kevin Michel
045d4f2d32
Don't replicate DROP/DETACH/DROP DETACHED on Replicated database
2021-09-27 10:10:46 +02:00
Nikolai Kochetov
78a7665f43
Merge branch 'master' into rewrite-pushing-to-views
2021-09-27 10:56:50 +03:00
Vasily Nemkov
544cccb2fb
Forward-declared LOGICAL_ERROR to make style check happy
2021-09-27 09:43:13 +03:00
Vasily Nemkov
121dfe26b6
Fixed resetting nullptr field
2021-09-26 08:13:58 +03:00
Alexey Milovidov
cd7f9d981c
Remove ya.make
2021-09-25 04:22:54 +03:00
Maksim Kita
5af3f617f4
Fixed tests
2021-09-24 14:19:46 +03:00
Vasily Nemkov
1d20014d5d
Fixed clang12 build and updated tests
2021-09-24 13:11:00 +03:00
Maksim Kita
5047e1a452
Parser number binary literal update
2021-09-24 00:35:41 +03:00
Maksim Kita
1ebb49d939
Revert parse number binary literal
2021-09-24 00:23:15 +03:00
Alexander Tokmakov
72b1b2e360
Merge branch 'master' into mvcc_prototype
2021-09-23 22:53:27 +03:00
Maksim Kita
193fbf5db0
Parser number binary literal
2021-09-23 21:00:16 +03:00
Nikolai Kochetov
998d29ebc7
Merge branch 'master' into rewrite-pushing-to-views
2021-09-23 13:10:27 +03:00
Vasily Nemkov
cb1ca9b33e
Implemented modifying table comments with ALTER TABLE t MODIFY COMMENT 'value'
2021-09-23 01:14:00 +03:00
Nikolay Degterinsky
bdc0d65c6b
Fixes after merge
2021-09-22 16:57:17 +03:00
Nikolay Degterinsky
1b1d90deb8
Merge branch 'master' into query_parameters
2021-09-22 13:53:56 +03:00
Kevin Michel
008c3c812b
Allow non-replicated ALTER TABLE FETCH/ATTACH in Replicated databases
...
`ALTER TABLE ... FETCH` and `ALTER TABLE ... ATTACH` queries were
disabled in the Replicated database engine, because it could cause
accidental duplication of data.
This enables these queries but without replicating them.
In the case of `FETCH`, the part will only be fetched on the server
where the query is issued.
Similarly, in the case of `ATTACH`, the attached part only needs to
be available on the server where the query is issued.
If the table itself is using one of the Replicated MergeTree engines,
the attached data is then replicated by the table engine itself,
without intervention of the database engine.
This change is meant to help with live backup/restore when using the
Replicated database engine, using FREEZE for backup and ATTACH for
restore.
2021-09-21 17:45:23 +02:00
Maksim Kita
1932d29ed1
Merge pull request #29199 from kitaisreal/parser-system-query-fix
...
ParserSystemQuery fix
2021-09-21 02:23:51 +03:00
Maksim Kita
ad2052e8e5
Added comments
2021-09-21 02:23:34 +03:00
Maksim Kita
494ec4aecc
Fixed tests
2021-09-20 21:33:25 +03:00
Nikolai Kochetov
a790d391c0
Merge branch 'master' into rewrite-pushing-to-views
2021-09-20 19:43:15 +03:00
Maksim Kita
56e40e1ff4
ParserSystemQuery fix
2021-09-20 18:15:23 +03:00
tavplubix
8adfb9b593
Stop ThreadFuzzer before hung check ( #29167 )
...
* stop ThreadFuzzer before hung check
* fix
* fix
2021-09-20 17:23:10 +03:00
alesapin
a249dcc5f5
Merge pull request #28301 from kssenii/materialized-postgresql
...
MaterializedPostgreSQL: allow dynamically adding/deleting tables, altering settings
2021-09-20 14:16:29 +03:00
Maksim Kita
c2088678ed
Merge pull request #28803 from kitaisreal/executable-user-defined-functions
...
Executable user defined functions
2021-09-20 12:11:15 +03:00
alexey-milovidov
20d8523a2e
Merge pull request #28888 from azat/mysql-in-fix
...
Fix queries to external databases (i.e. MySQL) with multiple columns in IN ( i.e. `(k,v) IN ((1, 2))` )
2021-09-18 15:53:40 +03:00
alexey-milovidov
e16e8fa286
Update ExpressionElementParsers.cpp
2021-09-18 15:47:57 +03:00
Nicolae Vartolomei
9a02061d9c
Rewrite part movement between shards logic and add kill support
...
See https://github.com/ClickHouse/ClickHouse/pull/24585#issuecomment-857735081
for extra context about the current implementation.
2021-09-17 18:11:32 +01:00
Maksim Kita
85a4d4bb50
Added user defined executable functions to system.functions
2021-09-17 18:43:00 +03:00
Nikolai Kochetov
a8c3b02598
Merge branch 'master' into rewrite-pushing-to-views
2021-09-17 15:38:11 +03:00
Nikolay Degterinsky
6adfdd2f79
Fix style
2021-09-15 19:36:55 +03:00
Nikolay Degterinsky
6a9899e3f3
Fix test
2021-09-15 19:12:52 +03:00
Anton Popov
f6191b98e7
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-15 17:47:22 +03:00
Nikolay Degterinsky
f275c66428
Fix algorithm
2021-09-15 17:08:47 +03:00
Nikita Mikhaylov
2684d06b51
Merge pull request #27135 from FArthur-cmd/compressed_output_formats_3473
...
compress INTO OUTFILE with parameter compress
2021-09-15 16:25:13 +03:00
Nikolay Degterinsky
24e515df05
Merge branch 'master' into query_parameters
2021-09-15 16:15:50 +03:00
kssenii
710c8d12dd
Merge branch 'master' of github.com:ClickHouse/ClickHouse into materialized-postgresql
2021-09-15 12:28:09 +03:00
Anton Popov
9646edf3dc
fix possible race in AsynchronousInsertQueue
2021-09-15 02:54:10 +03:00
Anton Popov
fc17936c12
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-14 23:02:30 +03:00
Nikolai Kochetov
0e267c50b4
Merge branch 'master' into rewrite-pushing-to-views
2021-09-14 16:13:54 +03:00
vdimir
2aef13e802
Update error messages for logical errors in HashJoin
2021-09-14 15:05:09 +03:00
Nikolay Degterinsky
9199b100ee
Fix build
2021-09-13 17:44:02 +03:00
Nikolay Degterinsky
84aea776c2
Merge branch 'master' into query_parameters
2021-09-13 12:54:48 +03:00
mergify[bot]
d731bf6c4d
Merge branch 'master' into compressed_output_formats_3473
2021-09-13 09:14:35 +00:00
alexey-milovidov
ea13a8b562
Merge pull request #28659 from myrrc/improvement/tostring_to_magic_enum
...
Improving CH type system with concepts
2021-09-12 15:26:29 +03:00
Azat Khuzhin
e4e584a3de
Do not transform (k,v) IN ((K, V)) -> (k, v) IN (K, V) during parsing
...
Before this patch the query `(k,v) IN ((1, 2))` was transformed `(k,v)
IN (1,2)` by ClickHouse, and this produce the following error while
sending such query to MySQL:
DB::Exception: mysqlxx::BadQuery: Operand should contain 2 column(s)
(There is a workaround though, add another value for IN section, i.e.
`(k,v) IN ((1,2),(0,0))`, but this is icky)
v0: (k,v) IN ((1,2)) -> (k,v) IN tuple((1,2))
But these is not supported by transformQueryForExternalDatabase()
v1: (k,v) IN ((1,2)) -> (k,v) IN ((1,2))
But now you will get an error for the following query:
SELECT ('foo', 'bar') IN (('foo', 'bar'))
Now you will get:
Logical error: 'Trying to get name of not a column: ExpressionList'.
(from two places, first is DB::ActionsMatcher::visit, easy to fix by
inherit ASTExpressionList from ASTWithAlias, but the second is
evaluteConstantExpression(), which requires additional support for
these case while creating a set in DB::createBlockForSet())
v2: (k,v) IN ((1,2)) -> (k,v) IN tuple((1,2))
So instead I prefer these, and add support for this case in
transformQueryForExternalDatabase() in the next patch.
2021-09-11 14:15:27 +03:00
Mike Kot
c4385a2c40
Simplifying exception messages
2021-09-11 00:40:18 +02:00
Filatenkov Artur
67df28bee0
Update ParserInsertQuery.cpp
2021-09-10 19:58:15 +03:00
Nikolay Degterinsky
35db28321e
Fix tests
2021-09-10 19:35:56 +03:00
Artur
a7c43c3e2d
add compression key-word and some tests
2021-09-10 13:59:22 +00:00
Nikolai Kochetov
f569a3e3f7
Merge branch 'master' into rewrite-pushing-to-views
2021-09-09 20:30:23 +03:00
kssenii
904cf74159
Merge branch 'master' of github.com:ClickHouse/ClickHouse into materialized-postgresql
2021-09-09 15:26:20 +03:00
Anton Popov
8e5b3b2f6c
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-09 15:12:34 +03:00
Nikolai Kochetov
abfb1d20ea
Merge pull request #25734 from vdimir/join-arrayjoin-type-cast
...
Move join type inference to ExpressionAnalyzer from syntax stage + small refactor
2021-09-09 14:38:43 +03:00
Filatenkov Artur
cdb1a0504f
Merge branch 'master' into compressed_output_formats_3473
2021-09-08 18:46:48 +03:00
Nikolay Degterinsky
718ac7b970
Fix style
2021-09-07 01:24:47 +03:00
Nikolay Degterinsky
22f59e1714
Add support for table and database query parameters
2021-09-07 01:19:02 +03:00
Mike Kot
8e9aacadd1
Initial: replacing hardcoded toString for enums with magic_enum
2021-09-06 16:24:03 +02:00
kssenii
76e49334fa
Minor fixes
2021-09-05 01:59:44 +03:00
kssenii
d0113743c9
Merge branch 'master' of github.com:ClickHouse/ClickHouse into materialized-postgresql
2021-09-05 01:07:31 +03:00
Anton Popov
59128412ea
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-03 22:17:11 +03:00
Nikolai Kochetov
66a76ab70f
Rewrite PushingToViewsBlockOutputStream part 6
2021-09-03 20:29:36 +03:00
kssenii
f17d1bc7a5
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into materialized-postgresql
2021-09-03 09:03:48 +00:00
Anton Popov
5e421ab272
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-02 02:42:50 +03:00
Anton Popov
7c42ce8370
improvements of async inserts
2021-09-02 02:18:09 +03:00
vdimir
e8e26463bf
Change signature of ASTSelectQuery::arrayJoinExpressionList
2021-08-31 15:27:44 +03:00
Anton Popov
36ac20681e
refactor AsynchronousInsertQueue
2021-08-31 05:16:02 +03:00
Vladimir Chebotarev
de5daa22ab
Revert "MATERIALIZE COLUMN xxx FINAL"
...
This reverts commit bf1430c1ec
.
2021-08-30 11:50:26 +03:00
Vladimir Chebotarev
0d6e0181d6
MATERIALIZE COLUMN xxx FINAL
2021-08-30 11:49:59 +03:00
Vladimir Chebotarev
ce0850007f
1. Draw some circles.
2021-08-30 11:49:26 +03:00
Dmitrii Kovalkov
9871ad70ff
Exclude fuzzers
2021-08-30 11:12:25 +03:00
Dmitrii Kovalkov
8acf0fa16a
run generate-ya-make
2021-08-30 10:57:40 +03:00
kssenii
174340074c
Dynamically add tables complete
2021-08-28 17:35:44 +03:00
kssenii
4cd62227cf
Almost done
2021-08-28 17:34:23 +03:00
kssenii
2dfd5b14db
alter
2021-08-28 17:33:11 +03:00
Kseniia Sumarokova
31afd7d09c
Merge pull request #28081 from kssenii/pg-conflict
...
Support `on conflict` for postgres engine
2021-08-26 16:30:30 +03:00
Anton Popov
6d3274c22c
Merge remote-tracking branch 'upstream/master' into HEAD
2021-08-26 03:31:46 +03:00
kssenii
0b66581de2
Fix build
2021-08-25 21:51:43 +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
Maksim Kita
82ba24cd10
Merge branch 'master' into create-user-defined-lambda-function
2021-08-24 19:12:32 +03:00
Vladimir C
5f4ca42d15
Merge pull request #23051 from excitoon-favorites/s3partitionedwrite
2021-08-24 10:58:43 +03:00
Vladimir C
0858fdf113
Merge pull request #27036 from nickitat/nickitat_select_filter
2021-08-24 10:18:55 +03:00
Vladimir C
98acccbdcc
Merge branch 'master' into s3partitionedwrite
2021-08-24 10:03:57 +03:00
Vitaly Baranov
63e8bc1f20
Added new commands BACKUP and RESTORE.
2021-08-23 23:41:45 +03:00
Maksim Kita
2a6aa50d49
Merge branch 'master' into create-user-defined-lambda-function
2021-08-23 11:08:49 +03:00
Amos Bird
a2256b1307
Dedicated Mark/Uncompressed cache for skip indices
2021-08-23 15:27:31 +08: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
Nikita Mikhaylov
cfa571cac4
Merge pull request #27895 from nikitamikhaylov/temporary_remove_yaml_fuzzer
...
Build fuzzers with clang-tidy
2021-08-21 16:51:31 +03:00
Nikita Mikhaylov
3cd689c168
Moved fuzzers to another directory
2021-08-21 02:27:27 +00:00
Kseniia Sumarokova
f3f44ec8fb
Merge pull request #27901 from amosbird/applylambda
...
APPLY with lambda.
2021-08-21 00:26:03 +03:00
Kseniia Sumarokova
38a35c1d9e
Merge pull request #27530 from kssenii/col-identifier-as-col-number
...
Allow positional arguments for group by, order by, limit by
2021-08-20 21:08:58 +03:00
Amos Bird
452602dadb
APPLY with lambda.
2021-08-20 20:38:09 +08:00
kssenii
c6f456b241
Fix build
2021-08-20 09:09:46 +00:00
Maksim Kita
5f2b28639f
Merge branch 'master' into create-user-defined-lambda-function
2021-08-20 11:53:08 +03:00
Nikita Mikhaylov
06a0580db1
done
2021-08-19 23:02:01 +00:00
kssenii
512d66a088
Fix
2021-08-19 15:19:11 +00:00
Anton Popov
a9d83c1eec
fix postgres like cast with negative numbers
2021-08-19 18:16:57 +03:00
tavplubix
9b45b26dd6
Merge pull request #27655 from FArthur-cmd/import_from_infile_syntax
...
Import `FROM INFILE`
2021-08-18 15:36:32 +03:00
Kseniia Sumarokova
78105ecba7
Merge pull request #27757 from kssenii/fix-intersect-cast
...
Fix intersect/except with limit
2021-08-17 21:37:37 +03:00
Maksim Kita
8403f381da
Merge pull request #23978 from Realist007/feature/create-simple-lambda-function
...
Feature/create simple lambda function
2021-08-17 21:22:31 +03:00
Filatenkov Artur
bc5b6af8fa
Merge branch 'ClickHouse:master' into master
2021-08-17 12:22:34 +03:00
Kseniia Sumarokova
0950584f88
Update ASTSelectWithUnionQuery.cpp
2021-08-17 11:49:02 +03:00
kssenii
2239ae91a3
Fix
2021-08-17 10:57:13 +03:00
Realist007
63dfa8559f
Merge branch 'master' into feature/create-simple-lambda-function
2021-08-16 16:56:49 +03:00
Artur
3591c3c8f4
correct code according to comments
2021-08-16 13:28:39 +00:00
kssenii
844e04e341
Fix
2021-08-16 15:32:44 +03:00
Nickita Taranov
3b13b79d65
throw in AggregateFunctionCombinatorIf instead
2021-08-16 12:10:51 +03:00
alexey-milovidov
a2bc6f3714
Merge pull request #27702 from ClickHouse/vitlibar-backquote-default-database-in-create-user
...
Backquote default database in CREATE USER
2021-08-16 02:47:34 +03:00
Kseniia Sumarokova
b024c215af
Merge pull request #24757 from zdikov/subquery-operators
...
Subquery operators
2021-08-15 21:33:59 +03:00
Vitaly Baranov
fd500d2176
Backquote default database in CREATE USER
2021-08-15 17:05:28 +03:00
kssenii
f66e8464f9
Some final fixes
2021-08-15 11:40:30 +03:00
kssenii
f125fb3fef
Some fixes around any/all
2021-08-14 20:33:03 +03:00
kssenii
18ab53488f
Better
2021-08-14 16:09:53 +03:00
Artur
9ba9d39d42
correct style
2021-08-14 11:15:32 +00:00
Artur
0010b772e9
Merge branch 'master' of https://github.com/FArthur-cmd/ClickHouse into import_from_infile
2021-08-13 16:51:31 +00:00
Artur
49e211bead
add from infile syntax
2021-08-13 16:30:28 +00:00
kssenii
47fb923975
Some fixes, more tests
2021-08-13 15:07:44 +03:00
kssenii
55650b1e67
Change behaviour of except, some fixes
2021-08-13 12:57:15 +03:00
kssenii
a549e29bd4
Better
2021-08-12 16:35:46 +03:00
kssenii
7d8b694a9f
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into cast-internal
2021-08-11 07:37:21 +00:00
Maksim Kita
87fb75b272
Merge pull request #27191 from FArthur-cmd/memory-tracker-26043
...
Client with flag for memory tracker
2021-08-10 14:01:02 +03:00
kssenii
2306fbe9be
Better
2021-08-10 10:23:18 +03:00
kssenii
4eb4dd97d4
Support not only 2 inputs, support any size sequence of intersect / except together
2021-08-10 09:24:12 +03:00
kssenii
7991bb6e83
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into cast-internal
2021-08-08 21:30:17 +00:00
Kseniia Sumarokova
ba220c8e3a
Merge branch 'master' into subquery-operators
2021-08-08 20:18:41 +03:00
Anton Popov
78dbcaea54
implement async inserts with processors
2021-08-08 06:30:14 +03:00
mergify[bot]
589505e76b
Merge branch 'master' into legacy-tuple-name
2021-08-07 16:42:20 +00:00
kssenii
729eba52ea
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into zdikov-subquery-operators
2021-08-07 15:59:58 +00:00
kssenii
9ca422f0c5
Introduce CAST for internal usage
2021-08-07 09:03:10 +00:00
Anton Popov
3a0d4807a5
Merge branch 'async-insert' of git://github.com/abyss7/ClickHouse into merging-20557
2021-08-06 16:20:02 +03:00
tavplubix
14ef66e49b
Merge pull request #25895 from ClickHouse/improve_create_or_replace
...
Improve CREATE OR REPLACE query
2021-08-06 11:58:46 +03:00
Artur
d2869d2e2b
add test for memory tracker in client
2021-08-05 16:20:24 +00:00
Alexander Kuzmenkov
d852207b0e
Merge pull request #25721 from CurtizJ/read-in-order-perf-2
...
Reduce memory usage in queries with `ORDER BY primary_key
2021-08-05 16:13:48 +03:00
Anton Popov
915ef50c2d
optimize reading in order of key more
2021-08-04 18:18:03 +03:00
Amos Bird
b80065ab59
Try our best to log query_kind
2021-08-04 22:09:23 +08:00
Anton Popov
699a3d9031
implement legacy_column_name_of_tuple_literal in less intrusive way
2021-08-03 21:03:24 +03:00
mergify[bot]
dc57254982
Merge branch 'master' into improve_create_or_replace
2021-08-03 11:39:07 +00:00
Artur
c55ead0fdb
compress INTO OUTFILE with parameter compress
2021-08-03 11:33:52 +00:00
Nickita Taranov
36aaabfd3a
impl
2021-07-31 19:31:17 +03:00
Alexander Tokmakov
c74bfbf991
Merge branch 'master' into mvcc_prototype
2021-07-28 22:21:48 +03:00
万康
0c203dd43d
add missing changes
2021-07-28 14:05:22 +08:00
kevin wan
a56a3c793c
Merge branch 'master' into profile-default-database
2021-07-27 21:08:08 +08:00
万康
720f8805f9
refactor
2021-07-27 20:32:04 +08:00
mergify[bot]
044be267d6
Merge branch 'master' into improve_create_or_replace
2021-07-26 08:38:48 +00:00
Maksim Kita
197bda1ff1
Heredoc updated tests
2021-07-25 22:01:25 +03:00
alexey-milovidov
0318a089a0
Merge pull request #26740 from Cas-pian/grant_by_replace
...
remove uncessary Exception
2021-07-24 18:54:11 +03:00
Caspian
421e59b9f5
rm whitespace
2021-07-23 23:12:30 +08:00
Caspian
e724e972fe
remove uncessary Exception
2021-07-23 21:37:55 +08:00
Maksim Kita
f6f8bea689
Merge pull request #26671 from kitaisreal/mysql-dictionaries-support-for-custom-query
...
Lexer introduce heredoc
2021-07-23 16:20:54 +03:00
Vitaly Baranov
67d4da224a
Merge pull request #26384 from Cas-pian/grant_by_replace
...
add grant by replace support
2021-07-23 14:40:47 +03:00
Maksim Kita
222915c275
Fixed code review issues
2021-07-23 00:07:22 +03:00
Caspian
eab4cb3cdc
use new syntax, update docs
2021-07-21 23:08:38 +08:00
Maksim Kita
49983883cc
Added tests
2021-07-21 16:41:45 +03:00
Maksim Kita
63f67f7997
Introduced HereDoc token
2021-07-21 11:59:05 +03:00
Realist007
31e26862b5
Merge branch 'master' into feature/create-simple-lambda-function
2021-07-21 10:33:53 +03:00
Alexey Milovidov
09449cc101
Whitespaces
2021-07-21 04:47:56 +03:00
Caspian
7c6dc56bcd
Merge branch 'master' into grant_by_replace
2021-07-20 17:41:12 +08:00
caspian
f3a073e22e
fix tests
2021-07-20 15:49:56 +08:00
mergify[bot]
39f71f4a08
Merge branch 'master' into fix_no_column_materialized_mysql
2021-07-19 12:27:38 +00:00
caspian
71ebb98c53
fix test failure
2021-07-19 16:20:09 +08:00
Caspian
591d583c5b
support REPLACE GRANT NONE syntax
2021-07-18 16:58:48 +08:00
万康
d826115f2a
fix code style
2021-07-18 14:56:26 +08:00
caspian
c06f45ea4f
fix for USAGE or NONE privilege
2021-07-16 16:53:25 +08:00
caspian
4c0456650a
add grant by replace support
2021-07-15 18:04:26 +08:00
mergify[bot]
d5898ecba6
Merge branch 'master' into fix_no_column_materialized_mysql
2021-07-13 14:03:05 +00:00
万康
60f556be2d
add default_database to user
2021-07-12 22:35:07 +08:00
mergify[bot]
b7ae4e4ced
Merge branch 'master' into async-insert
2021-07-12 09:21:37 +00:00
Alexey Milovidov
9c0097cd9b
Review fixes
2021-07-11 02:14:03 +03:00
Peng Jian
b526aacd56
Show estimates for SELECT query
2021-07-09 18:29:45 +08:00
Realist007
50149abfa5
Merge branch 'master' into feature/create-simple-lambda-function
2021-07-09 00:16:26 +03:00
Vladimir
35ca8b97ac
Set distinct_on_expression_list to null white transforming to limit_by
2021-07-07 12:48:39 +03:00
vdimir
b44bd174cc
Change error code for DISTINCT ON and LIMIT BY, finally
2021-07-06 19:14:22 +03:00
mergify[bot]
7aec53a842
Merge branch 'master' into improve_create_or_replace
2021-07-06 12:51:16 +00:00
mergify[bot]
e9df8cc96c
Merge branch 'master' into support-distinct-on
2021-07-06 11:28:07 +00:00
vdimir
3cef256f79
Errorcode DISTINCT_ON_AND_LIMIT_BY_TOGETHER -> UNSUPPORTED_METHOD
2021-07-06 12:22:08 +03:00
vdimir
9665d41092
Force parentheses for DISTINCT ON
2021-07-06 12:17:26 +03:00
Alexander Tokmakov
5e44fa32b4
Merge branch 'master' into improve_create_or_replace
2021-07-06 11:50:43 +03:00
Kseniia Sumarokova
d2141ff53b
Merge pull request #24148 from l1tsolaiki/jsonpath
...
Jsonpath
2021-07-06 10:43:29 +03:00
Alexander Tokmakov
0f377fc4d8
Merge branch 'master' into fix_no_column_materialized_mysql
2021-07-05 22:07:56 +03:00
vdimir
f5b5f601f4
Merge branch 'master' into support-distinct-on
2021-07-05 15:44:20 +03:00
Kseniia Sumarokova
705e839390
Merge branch 'master' into inconsisteny
2021-07-04 02:29:56 +03:00
ANDREI STAROVEROV
3bf0db519e
Improve tests and validation of new functions
2021-07-03 23:17:02 +03:00
Realist007
d99e7059cd
Merge branch 'master' into feature/create-simple-lambda-function
2021-07-03 19:04:10 +03:00
Alexey Milovidov
127455f15f
Remove experimental ANTLR parser
2021-07-03 18:48:03 +03:00
alexey-milovidov
51bf60a938
Merge pull request #17769 from xjewer/alex/remove_engine_setting
...
CLICKHOUSE-784: reset merge tree setting
2021-07-03 18:27:15 +03:00
kssenii
02681019f8
Fix
2021-07-03 08:48:42 +00:00
Alexander Tokmakov
aa3f0b2032
fix
2021-07-02 19:39:55 +03:00
Aleksei Semiglazov
9a5365fc41
CLICKHOUSE-784: reset merge tree setting
...
Add an ability to reset custom setting to default and remove it from table's metadata.
This will allow to rollback the change without knowing the system/config's default.
Signed-off-by: Aleksei Semiglazov <asemiglazov@cloudflare.com>
2021-07-01 20:09:54 +01:00
Aleksei Semiglazov
f47e1ff102
CLICKHOUSE-1194: add skipping index to the beginning of the list
...
add the FIRST keyword to the ADD INDEX command to be able to add index in the beginning of the list.
Signed-off-by: Aleksei Semiglazov <asemiglazov@cloudflare.com>
2021-07-01 19:37:48 +01:00
Alexander Tokmakov
d9a77e3a1a
improve CREATE OR REPLACE query
2021-07-01 16:21:38 +03:00
tavplubix
cd311e2e87
Update ASTSelectQuery.cpp
2021-06-30 12:41:46 +03:00
Alexander Tokmakov
fd914f3d97
fix 'Not found column' error in MaterializeMySQL
2021-06-29 20:47:41 +03:00
Alexey Milovidov
a7ee0b91b1
Fix strange whitespaces @abyss7
2021-06-29 01:52:22 +03:00
Ivan Lezhankin
09b3db38f0
Don't create input stream for native data
2021-06-28 23:43:37 +03:00
Ivan Lezhankin
79a1a6c599
Revert "Filter out some insert-settings"
...
This reverts commit 14c5eff6dd
.
2021-06-28 22:56:38 +03:00
Ivan Lezhankin
1bb41593d1
Merge remote-tracking branch 'upstream/master' into async-insert
2021-06-28 22:55:56 +03:00
Zijie Lu
f20a1f708b
Merge branch 'master' into support-distinct-on
2021-06-28 16:38:29 +08:00
Zijie Lu
b408c7d7e6
Merge branch 'master' into support-distinct-on
...
Signed-off-by: Zijie Lu <wslzj40@gmail.com>
2021-06-28 14:53:55 +08:00
Maksim Kita
44122118de
Fixed ASTRenameQuery for EXCHANGE DICTIONARIES
2021-06-26 14:28:13 +03:00
Maksim Kita
7b03150b90
Fixed tests
2021-06-26 14:28:13 +03:00
Maksim Kita
008adabec2
Support REPLACE DICTIONARY, CREATE OR REPLACE DICTIONARY queries
2021-06-26 14:28:13 +03:00
Ivan
14e43cfafa
Add CI check for darwin-aarch64 ( #25560 )
...
* Add support for darwin-aarch64
* Fix PVS warnings
* Add build configuration
* Fix packager args
2021-06-25 18:21:56 +03:00
Anton Popov
4a250dc14e
Merge pull request #25371 from CurtizJ/add-compatibility-setting
...
Add compatibility setting for name of tuple literals
2021-06-25 15:08:13 +03:00
Nikolai Kochetov
c92c352d9a
Fix crash in EXPLAIN AST without query.
2021-06-23 15:29:10 +03:00
Anton Popov
a15ee72d0f
Merge remote-tracking branch 'upstream/master' into HEAD
2021-06-23 13:53:01 +03:00
Zijie Lu
63db58710d
Support for DISTINCT ON (columns)
...
Signed-off-by: Zijie Lu <wslzj40@gmail.com>
2021-06-22 19:25:14 +08:00
Realist007
673a813cfa
Merge branch 'master' into feature/create-simple-lambda-function
2021-06-21 22:41:12 +03:00
Anton Popov
c2754c34f4
Merge remote-tracking branch 'upstream/master' into HEAD
2021-06-21 12:42:48 +03:00
Azat Khuzhin
fabff86788
Fix NOT parsing
2021-06-20 23:27:24 +03:00
Mike Kot
4c391f8e99
SYSTEM RESTORE REPLICA replica [ON CLUSTER cluster] ( #13652 )
...
* initial commit: add setting and stub
* typo
* added test stub
* fix
* wip merging new integration test and code proto
* adding steps interpreters
* adding firstly proposed solution (moving parts etc)
* added checking zookeeper path existence
* fixing the include
* fixing and sorting includes
* fixing outdated struct
* fix the name
* added ast ptr as level of indirection
* fix ref
* updating the changes
* working on test stub
* fix iterator -> reference
* revert rocksdb submodule update
* fixed show privileges test
* updated the test stub
* replaced rand() with thread_local_rng(), updated the tests
updated the test
fixed test config path
test fix
removed error messages
fixed the test
updated the test
fixed string literal
fixed literal
typo: =
* fixed the empty replica error message
* updated the test and the code with logs
* updated the possible test cases, updated
* added the code/test milestone comments
* updated the test (added more testcases)
* replaced native assert with CH one
* individual replicas recursive delete fix
* updated the AS db.name AST
* two small logging fixes
* manually generated AST fixes
* Updated the test, added the possible algo change
* Some thoughts about optimizing the solution:
ALTER MOVE PARTITION .. TO TABLE -> move to detached/ + ALTER ... ATTACH
* fix
* Removed the replica sync in test as it's invalid
* Some test tweaks
* tmp
* Rewrote the algo by using the executeQuery instead of
hand-crafting the ASTPtr.
Two questions still active.
* tr: logging active parts
* Extracted the parts moving algo into a separate helper function
* Fixed the test data and the queries slightly
* Replaced query to system.parts to direct invocation,
started building the test that breaks on various parts.
* Added the case for tables when at least one replica is alive
* Updated the test to test replicas restoration by detaching/attaching
* Altered the test to check restoration without replica restart
* Added the tables swap in the start if the server failed last time
* Hotfix when only /replicas/replica... path was deleted
* Restore ZK paths while creating a replicated MergeTree table
* Updated the docs, fixed the algo for individual replicas restoration case
* Initial parts table storage fix, tests sync fix
* Reverted individual replica restoration to general algo
* Slightly optimised getDataParts
* Trying another solution with parts detaching
* Rewrote algo without any steps, added ON CLUSTER support
* Attaching parts from other replica on restoration
* Getting part checksums from ZK
* Removed ON CLUSTER, finished working solution
* Multiple small changes after review
* Fixing parallel test
* Supporting rewritten form on cluster
* Test fix
* Moar logging
* Using source replica as checksum provider
* improve test, remove some code from parser
* Trying solution with move to detached + forget
* Moving all parts (not only Committed) to detached
* Edited docs for RESTORE REPLICA
* Re-merging
* minor fixes
Co-authored-by: Alexander Tokmakov <avtokmakov@yandex-team.ru>
2021-06-20 11:24:43 +03:00
Realist007
60c9f7fc5d
Merge branch 'master' into feature/create-simple-lambda-function
2021-06-19 17:54:03 +03:00
Azat Khuzhin
c6339b4c08
Stable NOT chain formatting
2021-06-19 08:03:36 +03:00
alexey-milovidov
35411d1085
Merge pull request #24427 from azat/formatting-fixes
...
Fix formatting of negative values
2021-06-17 21:21:47 +03:00
l1tsolaiki
f2d451e0ec
Merge branch 'ClickHouse:master' into jsonpath
2021-06-17 18:25:26 +03:00
Ivan Lezhankin
14c5eff6dd
Filter out some insert-settings
2021-06-17 17:59:28 +03:00
Ivan Lezhankin
37365589ed
Merge branch 'master' into async-insert
2021-06-17 16:57:45 +03:00
l1tsolaiki
8bac279cb8
Merge branch 'jsonpath' of github.com:l1tsolaiki/ClickHouse into jsonpath
2021-06-17 13:21:13 +03:00
l1tsolaiki
ff3857fbe7
Add root parsing
2021-06-17 13:18:43 +03:00
Azat Khuzhin
9242654231
negate: replace special case with parens
...
v0: negate: add parens for negative values
Before this patch -(-1) was formatted to --1, but this is not valid
syntax.
v2: replace special case with parens, otherwise formatting of -(-(-1))
will be unstable, in v0 it was formatted to -(1) but -(1) is
formatted to -1 [1].
[1]: https://clickhouse-test-reports.s3.yandex.net/24427/4512460aeb02fec557c558eee3f8291a6297efb2/fuzzer_asan/fuzzer.log
2021-06-17 10:07:03 +03:00
alexey-milovidov
f7707b4409
Merge pull request #25391 from amosbird/ctf
...
Fix column transformer replace format issue
2021-06-17 09:06:57 +03:00
Amos Bird
f9d00d6dfb
Fix column transformer replace format issue
2021-06-17 11:12:26 +08:00
Maksim Kita
67e9b85951
Merge ext into common
2021-06-16 23:28:41 +03:00
Anton Popov
ea9b890618
Merge branch 'master' into add-compatibility-setting
2021-06-16 21:10:56 +03:00
Anton Popov
8bd7cbd925
add compatibility setting for name of columns
2021-06-16 21:10:07 +03:00
mergify[bot]
7959d92029
Merge branch 'master' into minor-changes-3
2021-06-15 18:07:24 +00:00
Nikita Mikhaylov
a52bba91b7
Merge pull request #16401 from abyss7/ast-table-identifier-2
...
ASTTableIdentifier part #2 : Introduce ASTTableIdentifier
2021-06-15 13:51:30 +03:00
Kseniia Sumarokova
b9c77d9628
Merge branch 'master' into jsonpath
2021-06-14 11:43:31 +03:00
Alexey Milovidov
447d7bb8cd
Minor changes
2021-06-14 07:13:35 +03:00
Alexey Milovidov
cae9b25074
Minor change
2021-06-14 06:05:27 +03:00
Ivan
d5bd761db9
Typo
...
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2021-06-13 22:27:54 +03:00
Ivan Lezhankin
a237229998
Another ANTLR fix
2021-06-12 00:15:38 +03:00
Ivan Lezhankin
2c7cb41a69
Merge remote-tracking branch 'upstream/master' into async-insert
2021-06-11 20:04:26 +03:00
Ivan Lezhankin
f7979292d6
Merge branch 'ast-table-identifier-2' of github.com:abyss7/ClickHouse into ast-table-identifier-2
2021-06-11 18:29:04 +03:00
Ivan Lezhankin
4773c79300
Fix ANTLR grammar
2021-06-11 18:27:32 +03:00
Maksim Kita
eabeb3076f
Added tests
2021-06-10 22:32:09 +03:00
Ivan
a7fa4e641c
Merge branch 'master' into ast-table-identifier-2
2021-06-10 16:43:22 +03:00
Alexander Kuzmenkov
c0e6aa97a6
Merge pull request #24734 from ClickHouse/aku/frame-expressions
...
support expressions in window frame
2021-06-10 00:25:32 +03:00
Nikolai Kochetov
a163453e74
Merge pull request #25082 from ClickHouse/fix-24011
...
Fix crash in explain syntax and cross join.
2021-06-09 19:40:23 +03:00
Realist007
2b3a8ec259
Merge branch 'master' into feature/create-simple-lambda-function
2021-06-09 19:34:47 +03:00
alexey-milovidov
c1d233cabc
Update ASTIdentifier.cpp
2021-06-08 20:40:33 +03:00
alexey-milovidov
736b56ce33
Update ASTIdentifier.cpp
2021-06-08 20:39:42 +03:00
Nikolai Kochetov
5cc005710a
Update ASTIdentifier.cpp
2021-06-08 18:23:42 +03:00
Nikolai Kochetov
194dd91f0c
Fix crash in explain syntax and cross join.
2021-06-08 16:54:48 +03:00
Nikolai Kochetov
a73f1b9ebe
Fix crash in explain syntax and cross join.
2021-06-08 16:51:17 +03:00
Ivan Lezhankin
7aa08a04b5
Fix unit-tests again
2021-06-07 16:52:47 +03:00
Konstantin Rudenskii
3f469fe0cd
Style
2021-06-05 15:13:46 +03:00
Kirill Ershov
1d46e443e2
Fix INTERSECT/EXCEPT parser
2021-06-05 03:58:22 +03:00
Kirill Ershov
15843723ec
Fix ALL/ANY implementation
2021-06-05 02:30:57 +03:00
Konstantin Rudenskii
14687eccf7
Fix dollar token for lexer
2021-06-05 01:15:47 +03:00
Kirill Ershov
a524feb732
Rewrite ALL/ANY parser
2021-06-04 18:55:47 +03:00
Alexander Tokmakov
9915bd0a8b
Merge branch 'master' into mvcc_prototype
2021-06-03 00:52:57 +03:00
Ivan Lezhankin
977fbbf1e4
Fix unit tests
2021-06-02 20:17:26 +03:00
Ivan Lezhankin
90fe7995c2
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-06-02 20:00:24 +03:00
Ivan Lezhankin
791cbcf0b1
Merge remote-tracking branch 'upstream/master' into async-insert
2021-06-02 18:50:37 +03:00
Amos Bird
9bbc9f97b4
Implement antlr parser for projections ( #24245 )
...
* implement projection grammer for antlr parser
* Add comment
2021-06-02 18:09:55 +03:00
Ivan Lezhankin
84c23dc060
Merge branch 'master' into async-insert
2021-06-02 18:06:21 +03:00
Ivan Lezhankin
ae38b4a3f1
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-06-02 16:07:59 +03:00
Alexander Kuzmenkov
ae79bbea7d
Merge remote-tracking branch 'origin/master' into HEAD
2021-06-02 15:06:22 +03:00
l1tsolaiki
b1177ef680
Merge pull request #2 from ClickHouse/master
...
Pull current master
2021-06-02 10:03:49 +03:00
Kirill Ershov
1c2e9ba003
Fix bug in parser
2021-06-02 02:18:15 +03:00
Vxider
3a5b0632c9
Merged with master
2021-06-01 07:39:42 +00:00
Alexander Tokmakov
5692db736c
Merge branch 'master' into mvcc_prototype
2021-05-31 21:11:22 +03:00
Amos Bird
3be331edeb
Better exception for invalid projection creation
2021-05-31 12:24:09 +08:00
Kirill Ershov
566b5335dd
Add ANY, ALL
2021-05-30 20:58:08 +03:00
Kirill Ershov
42f6314c9a
Add INTERSECT and EXCEPT
2021-05-29 22:51:58 +03:00
Kirill Ershov
3f9e9a7025
Add INTERSECT and EXCEPT
2021-05-29 22:41:46 +03:00
Vxider
d4b0532b78
Merged with master
2021-05-29 14:55:12 +00:00
Alexander Kuzmenkov
73c2ca7da5
fixes
2021-05-29 16:12:18 +03:00
Alexander Kuzmenkov
40b1dc1812
support expressions in window frame -- draft
2021-05-28 20:49:47 +03:00
Vxider
ac0468d389
Merged with master
2021-05-28 09:14:55 +00:00
Vxider
ad05f4f303
Merged with master
2021-05-28 07:36:19 +00:00
Alexander Kuzmenkov
7c6399d82d
fixes
2021-05-27 17:45:40 +03:00
Alexander Kuzmenkov
1d0b61dd0e
Merge remote-tracking branch 'origin/master' into HEAD
2021-05-27 15:59:00 +03:00
Alexander Kuzmenkov
23e6b6fc48
parent window spec - tmp
2021-05-27 15:58:50 +03:00
Ivan Lezhankin
06a0ab12bc
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-05-27 15:57:59 +03:00
Anton Popov
8a71af5797
Merge pull request #24471 from CurtizJ/fix-cast-operator
...
Fix several cases in cast operator
2021-05-27 14:31:51 +03:00
Anton Popov
35e2cc7b2b
fix several cases in cast operator
2021-05-25 02:50:28 +03:00
Alexey Milovidov
d32819f068
Mark false positives for PVS-Studio
2021-05-24 06:59:12 +03:00
alesapin
6c0b683d3a
Merge pull request #17871 from nvartolomei/nv/parts-uuid-move-shard
...
Part movement between shards
2021-05-23 10:20:57 +03:00
mergify[bot]
970243850f
Merge branch 'master' into ast-table-identifier-2
2021-05-21 12:56:49 +00:00
Azat Khuzhin
8b438bcd3c
Change formatting of subqueries (make it more human friendly)
...
Fix trailing whitespaces in FROM/IN clause with subqueries in multiline
mode, and also changes the output of the queries slightly in a more
human friendly way.
Before:
$ clickhouse-format <<<'select * from system.one, (select * from system.one)'
SELECT *
FROM system.one
,
(
SELECT *
FROM system.one
)
After:
$ clickhouse-format <<<'select * from system.one, (select * from system.one)'
SELECT *
FROM system.one,
(
SELECT *
FROM system.one
)
v2: Fix subqueries formatting in a different way
v3: Adjust *.reference in tests
v4: Fix modernize-loop-convert in ASTTablesInSelectQuery
2021-05-20 21:04:12 +03:00
Alexander Tokmakov
f2ab5a05c6
Merge branch 'master' into mvcc_prototype
2021-05-18 13:36:38 +03:00
alesapin
17f229857c
Merge branch 'master' into nvartolomei-parts-move
2021-05-17 13:52:48 +03:00
Realist007
bdd8de0295
Merge branch 'master' into feature/create-simple-lambda-function
2021-05-16 23:13:17 +03:00
Nikita Vasilev
6102ea643a
Merge remote-tracking branch 'upstream/master' into nikvas0/simple_optimizations
2021-05-16 19:51:41 +03:00
Kseniia Sumarokova
99e2f83c69
Merge pull request #23548 from ucasFL/table-comment
...
Implement table comments
2021-05-15 19:56:16 +03:00
d.v.semenov
2d6d05386a
Just Works
...
Just works (remastered)
First steps
First steps fixed
First steps first fails
Research first steps
Tokenizer created
Sprint to the moon
Rename
Rename 2.0
Rename 3.0
Work in progress
Update
Oops
Oops x2
Try this
Now surely works
Maybe now?
Now?
Cmake first try
Restore to previous
Cmake second try
Make this work
Correct mistakes
Third try cmake
Exclude simd
Better
Try
Add std::cerr
More std::cerr
More and more std::cerr
Maybe fix?
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
AA
AB
AC
AD
AE
AF
AAA
AAB
AAC
AAD
AAF
AAE
AAF
AAG
AAH
AAI
AAJ
AAK
AAAA
AAAB
AAAC
AAAD
AAAE
AAAF
AAAG
AAAH
AAAAA
AAAAB
First try v2
First try v2.1
First try v2.2
First try v2.3
First try v2.4
First try v2.5
First try v2.6
First try v2.7
First try v2.8
First try v2.9
First try v2.10
First try v2.11
First try v2.12
First try v2.13
First try v2.14
First try v2.15
First try v2.16
First try v2.16
First try v2.17
First try v2.18
First try v2.19
First try v2.20
First try v2.21
First try v2.22
First try v2.23
First try v2.24
First try v2.25
First try v2.26
First try v2.27
First try v2.28
First try v2.29
First try v2.30
First try v2.31
First try v2.32
First try v2.33
First try v2.34
First try v2.35
First try v2.36
First try v2.37
Second try v2.00
Second try v2.01
Second try v2.02
Second try v2.03
Second try v2.04
Second try v2.05
Second try v2.06
Second try v2.07
Second try v2.08
Second try v2.09
Second try v2.10
Second try v2.11
Second try v2.12
Second try v2.13
Second try v2.14
Second try v2.15
Second try v2.16
Second try v2.17
Cleanup
Link SQLJSON only in simdjson build
Fix?
Fix?1.1
Fix
Revert "Fix"
This reverts commit 9df7aa977c880ec130062bceece7e215190b4837.
Revert "Fix?1.1"
This reverts commit 37429ecc9003fd73c106344186e39ff6603dde6c.
Revert "Fix?"
This reverts commit c1236fb8f4b5a799a5564aecf81136301f226e33.
Revert "Link SQLJSON only in simdjson build"
This reverts commit 8795cd8b143f3cfd312ddbf1b98e10d0d6fcaf51.
Revert "Cleanup"
This reverts commit e100dbc545f54421276be2e5d44f99f52fe1d87c.
Third try v2.0
Third try v2.1
Third try v2.2
Third try v2.3
Third try v2.4
Third try v2.5
Third try v2.6
Third try v2.7
Third try v2.8
Third try v2.9
Third try v2.10
Third try v2.11
Third try v2.12
Third try v2.13
Third try v2.14
Third try v2.15
Pre-intermediate touches v1.0
Pre-intermediate touches v1.1
Pre-intermediate touches v1.2
Pre-intermediate touches v1.3
Last changes
2021-05-15 12:34:44 +03:00
ANDREI STAROVEROV
5059d2ee9a
Add ability to drop functions
2021-05-15 01:43:04 +03:00
feng lv
8c82e3f1b9
fix style
...
fix
2021-05-14 15:50:05 +00:00
Ivan Lezhankin
bd16dd22b9
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-05-14 15:40:33 +03:00
Realist007
b3b8c4c7b9
Merge branch 'master' into feature/create-simple-lambda-function
2021-05-14 00:54:25 +03:00
Alexander Tokmakov
df2849be90
Merge branch 'master' into mvcc_prototype
2021-05-13 21:48:36 +03:00
alesapin
3abc891107
Merge pull request #24037 from amosbird/dh
...
Run check_*_compiler_flag earlier
2021-05-13 15:32:23 +03:00
feng lv
c6f8ab9826
fix
2021-05-13 02:05:53 +00:00
Amos Bird
d22ab2028f
Run check_*_compiler_flag earlier
2021-05-12 12:14:25 +08:00
feng lv
9035e3a643
fix test and conflict
2021-05-11 16:22:24 +00:00
alesapin
46e136b5c4
Merge branch 'master' into nv/parts-uuid-move-shard
2021-05-11 15:36:40 +03:00
Amos Bird
dfa5629071
Remove projection type ast
2021-05-11 18:12:29 +08:00
Nikolai Kochetov
95431168c2
Try to enable normal projections.
2021-05-11 18:12:26 +08:00
Amos Bird
264cff6415
Projections
...
TODO (suggested by Nikolai)
1. Build query plan fro current query (inside storage::read) up to WithMergableState
2. Check, that plan is simple enough: Aggregating - Expression - Filter - ReadFromStorage (or simplier)
3. Check, that filter is the same as filter in projection, and also expression calculates the same aggregation keys as in projection
4. Return WithMergableState if projection applies
3 will be easier to do with ActionsDAG, cause it sees all functions, and dependencies are direct (but it is possible with ExpressionActions also)
Also need to figure out how prewhere works for projections, and
row_filter_policies.
wip
2021-05-11 18:12:23 +08:00
alexey-milovidov
066d02dd2f
Merge pull request #23631 from ClickHouse/normalize-bigint
...
Make big integers production ready.
2021-05-11 11:07:52 +03:00
ANDREI STAROVEROV
ad4594c298
Add validation of unknown identifiers in function
2021-05-11 01:35:22 +03:00
Nikita Vasilev
af9f811ab5
Merge remote-tracking branch 'upstream/master' into nikvas0/simple_optimizations
2021-05-10 22:08:58 +03:00
mergify[bot]
f5e77d7200
Merge branch 'master' into aku/fuzzer-typo
2021-05-10 17:54:19 +00:00
ANDREI STAROVEROV
13a7169669
Add feature: create user defined function as lambda
2021-05-09 12:47:29 +03:00
Alexey Milovidov
ad88819ee4
Fix a bunch of warnings from PVS-Studio
2021-05-08 19:13:10 +03:00
Alexey Milovidov
8d62c42eb9
A bunch of changes for PVS-Studio
2021-05-08 19:11:50 +03:00
Alexey Milovidov
bdc372cb9a
Fix bad code (found by PVS-Studio)
2021-05-08 19:11:40 +03:00
Alexey Milovidov
7ca0f46708
Add suppressions for PVS-Studio
2021-05-08 19:10:56 +03:00
Alexey Milovidov
604daa9581
Fix a bunch of warnings from PVS-Studio
2021-05-08 19:09:17 +03:00
Alexey Milovidov
9e1a5f41fc
A bunch of changes for PVS-Studio
2021-05-08 17:43:03 +03:00
Alexey Milovidov
aa727e941d
Fix bad code (found by PVS-Studio)
2021-05-08 17:21:36 +03:00
Alexey Milovidov
de1bc6d9f1
Add suppressions for PVS-Studio
2021-05-08 17:09:40 +03:00
Alexey Milovidov
c404e6db2f
Merge branch 'master' of github.com:yandex/ClickHouse into normalize-bigint
2021-05-07 18:25:12 +03:00
Anton Popov
0ec706240b
remove unused header
2021-05-06 21:56:45 +03:00
Anton Popov
e51cd90c6f
better cast operator
2021-05-06 21:21:10 +03:00
Alexey Milovidov
54fb40c041
Fix OpenTelemetry
2021-05-05 01:42:14 +03:00
Nikita Vasilev
496d8ff46c
improvements
2021-05-04 21:43:58 +03:00
Anton Popov
fad4e6c335
fix parsing of ternary operator
2021-05-04 16:16:27 +03:00
Anton Popov
2b79bf838f
add postgres-like cast operator
2021-05-04 06:43:17 +03:00
Alexey Milovidov
02ce9cc725
Untangle UUID
2021-05-04 01:46:51 +03:00
Alexey Milovidov
1fda866881
Merge branch 'master' into normalize-bigint
2021-05-02 21:24:45 +03:00
feng lv
39f68bf5ff
fix conflict
2021-05-02 16:33:45 +00:00
Vladimir
3b7c68196b
Merge pull request #23429 from Jokser/disk-s3-restart-possibility
2021-05-01 15:28:14 +03:00
Alexander Kuzmenkov
01b1440bd4
case-insensitive comparison
2021-04-30 19:58:35 +03:00
Maksim Kita
318c4bb80d
Add examples folder filter to ya.make.in
2021-04-30 11:25:52 +03:00
Alexander Kuzmenkov
86c4d8b934
the last try to make the formatting check in fuzzer work
2021-04-30 00:38:40 +03:00
Maksim Kita
b544037f03
Merge pull request #23436 from kitaisreal/storage-dictionary-updated
...
Refactored StorageDictionary
2021-04-28 13:11:48 +03:00
Nicolae Vartolomei
53d57ffb52
Part movement between shards
...
Integrate query deduplication from #17348
2021-04-27 14:20:12 +01:00
Nikita Mikhaylov
9f55424250
move to examples everywhere
2021-04-27 01:51:42 +03:00
Maksim Kita
f37599112a
Added EXCHANGE DICTIONARIES query support
2021-04-26 23:36:15 +03:00
Nikita Vasilev
0ec2726bf3
Merge remote-tracking branch 'upstream/master' into nikvas0/simple_optimizations
2021-04-26 17:33:32 +03:00
Alexey Milovidov
8f01af62d9
Merge branch 'master' into normalize-bigint
2021-04-25 06:57:44 +03:00
alexey-milovidov
6191f30892
Merge pull request #23595 from azat/fuzzer-tupleElement-formatting
...
Fix inconsistent formatting for tupleElement (for fuzzer)
2021-04-25 04:03:39 +03:00
Azat Khuzhin
a5a8ecfe42
Fix inconsistent formatting for tupleElement (for fuzzer)
...
fuzzer sometimes [1] may inserts tupleElement() created from ASTLiteral:
Function_tupleElement, 0xx
-ExpressionList_, 0xx
--Literal_Int64_255, 0xx
--Literal_Int64_100, 0xx
And in this case it will be printed as "255.100", which
later will be parsed as float, and formatting will be
inconsistent.
So instead of printing it as regular tuple,
let's print it as ExpressionList instead (i.e. with ", " delimiter).
Simple reproducer:
void ast()
{
auto arg1 = std::make_shared<ASTLiteral>(Field(255));
auto arg2 = std::make_shared<ASTLiteral>(Field(100));
auto func = makeASTFunction("tupleElement", arg1, arg2);
auto ast = func;
std::cerr << ast->formatForErrorMessage() << std::endl;
std::cerr << ast->dumpTree() << std::endl;
}
[1]: https://clickhouse-test-reports.s3.yandex.net/23517/f1187aeb69109c88f0be978b8083080c7a843820/fuzzer_debug/report.html#fail1
2021-04-25 00:30:17 +03:00
Alexey Milovidov
4ff812db7f
Maybe better support for paths with whitespaces
2021-04-24 22:47:52 +03:00
Ivan Lezhankin
cdd825b18b
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-04-23 18:08:25 +03:00
feng lv
3916870100
fix
...
fix
fix
2021-04-23 14:01:19 +00:00
feng lv
0f5c05854c
fix conflict
2021-04-23 12:22:51 +00:00
feng lv
4ffe199d39
Implement table comments
2021-04-23 12:18:23 +00:00
Alexander Kuzmenkov
06ca44a378
fix pvs warnings
2021-04-22 22:54:58 +03:00
Pavel Kovalenko
2ab8013455
DiskRestartProxy improvements and tests.
2021-04-21 12:53:46 +03:00
Pavel Kovalenko
10cf881a08
Add SYSTEM RESTART DISK command.
2021-04-20 22:23:54 +03:00
Ivan Lezhankin
7a88ca31cc
Merge branch 'master' into async-insert
2021-04-19 18:33:43 +03:00
Alexander Kuzmenkov
dd55fd8954
Merge pull request #23201 from ClickHouse/aku/negate-stable-formatting
...
more stable formatting for negate()
2021-04-19 16:48:43 +03:00
Maksim Kita
abf2a87ce7
Added system query reload model
2021-04-17 20:59:08 +03:00
Maksim Kita
4be441c6d5
Merge branch 'master' into support-apple-m1
2021-04-16 23:33:12 +03:00
Alexander Kuzmenkov
2782b2a6b0
fix
2021-04-16 21:50:12 +03:00
Alexander Kuzmenkov
b991cbf9d6
more stable formatting for negate()
2021-04-16 19:28:33 +03:00
tavplubix
b5cbbce314
Merge pull request #22706 from songenjie/fetch_part
...
[clickhouse][server][ddl]support fetch part
2021-04-16 12:26:51 +03:00
changvvb
0be5976967
Merge branch 'support-apple-m1' of github.com:changvvb/ClickHouse into support-apple-m1
2021-04-15 22:57:23 +08:00
Ivan Lezhankin
06bc435b06
Fix code with params
2021-04-15 10:33:15 +03:00
Ivan Lezhankin
9e5d274467
Merge remote-tracking branch 'upstream/master' into async-insert
2021-04-14 20:16:05 +03:00
Ivan Lezhankin
fd2f5b9ede
Fix COLUMNS transformer
2021-04-14 19:36:44 +03:00
Ivan
b099ad467d
Merge branch 'master' into ast-table-identifier-2
2021-04-14 18:38:30 +03:00
Ivan Lezhankin
00e8571088
Fix for alter update and IN operator
2021-04-14 18:35:52 +03:00
Nikita Mikhaylov
4e4b383214
added hash of itiator address
2021-04-13 22:39:41 +03:00
songenjie
564136ec46
[clickhouse][server][dll][alter]support fetch part
2021-04-13 12:40:33 +08:00
Ivan Lezhankin
b559e45d93
Some minor fixes
2021-04-12 20:19:46 +03:00
Denis Glazachev
5e8fe847a2
Remove unneeded changes
...
Fix GCC build
2021-04-10 23:23:18 +04:00
Ivan Lezhankin
3da3250bfd
Merge branch 'master' into ast-table-identifier-2
2021-04-09 17:56:15 +03:00
Alexander Kuzmenkov
06bb58cb69
Merge pull request #22704 from ClickHouse/aku/window-multiple
...
fix window functions with multiple input streams and no sorting
2021-04-07 15:15:47 +03:00
Ilya Yatsishin
ed2d82603e
Merge pull request #22588 from foolchi/fix_dist_map_select
...
fix dist map type select
2021-04-07 11:53:23 +03:00
Alexander Kuzmenkov
d9ad06bd6d
fix ubsan
2021-04-06 19:24:56 +03:00
Amos Bird
a89e3df40a
Disable table function view in expression ( #21465 )
2021-04-06 16:08:29 +03:00
Alexander Tokmakov
f596906f47
add transaction counters
2021-04-05 14:41:34 +03:00
fuqi
043bd11d2e
fix dist map type select
2021-04-04 18:00:30 +08:00
fuqi
b590926c1c
fix dist map type select
2021-04-04 17:23:47 +08:00
Mike Kot
c947280dfc
Merge remote-tracking branch 'upstream/master' into feature/attach-partition-local
2021-04-01 21:38:51 +03:00
Alexander Kuzmenkov
20066d8cd9
Update ExpressionElementParsers.cpp
2021-03-31 18:17:44 +03:00
Alexander Kuzmenkov
0e75f7bad5
fix error message for invalid window frame start
2021-03-31 17:12:48 +03:00
tavplubix
3c0f5a57ec
Merge pull request #21535 from ClickHouse/distributed_ddl_improvements
...
Distributed DDL improvements
2021-03-29 22:40:11 +03:00
Ivan Lezhankin
de05803177
Merge branch 'master' into async-insert
2021-03-29 20:59:02 +03:00
Alexander Kuzmenkov
92c3db8f22
Merge pull request #22133 from ClickHouse/aku/negate-stable
...
stable formatting for negate()
2021-03-29 14:16:12 +03:00
Alexey Milovidov
50f712e198
Integrate mmap cache to the infrastructure
2021-03-28 04:10:30 +03:00
Nikita Vasilev
02090bf59a
Merge remote-tracking branch 'upstream/master' into nikvas0/simple_optimizations
2021-03-27 13:03:55 +03:00
Alexander Kuzmenkov
c3cc65f826
use macro
2021-03-26 20:30:36 +03:00
Alexander Kuzmenkov
cc93055e9e
ignore UB as in negate()
2021-03-26 20:29:41 +03:00
alexey-milovidov
f1efa33571
Merge branch 'master' into client-fix-highlight-multiline-comment
2021-03-26 02:40:11 +03:00
Alexander Kuzmenkov
33647ef3d5
fix build
2021-03-25 23:02:09 +03:00
Alexander Kuzmenkov
7444eab536
Merge remote-tracking branch 'origin/aku/negate-stable' into HEAD
2021-03-25 21:40:02 +03:00
Alexander Kuzmenkov
9aa89161dc
fix for decimals
2021-03-25 21:39:57 +03:00
Alexander Kuzmenkov
72b742258a
Update src/Parsers/ASTFunction.cpp
2021-03-25 19:20:36 +03:00
Alexander Kuzmenkov
4e96675a30
Update src/Parsers/ASTFunction.cpp
2021-03-25 19:18:57 +03:00
Alexander Kuzmenkov
48af3f5851
stable formatting for negate()
2021-03-25 18:38:43 +03:00
Mike Kot
285af08949
Merge remote-tracking branch 'upstream/master' into feature/attach-partition-local
2021-03-24 22:34:20 +03:00
Alexander Kuzmenkov
02eee100a0
formatting fixes
2021-03-24 15:36:39 +03:00
Alexander Kuzmenkov
f2ef536dfb
fix formatting
2021-03-24 01:40:27 +03:00
Alexander Kuzmenkov
c9facd631c
Merge remote-tracking branch 'origin/master' into HEAD
2021-03-23 17:40:13 +03:00
alesapin
36898bdc4a
Merge pull request #21142 from Jokser/unfreeze-partitions
...
Add ALTER TABLE UNFREEZE command.
2021-03-23 14:05:38 +03:00
Alexander Kuzmenkov
b0284f20c3
Merge branch 'master' into aku/laglead
2021-03-22 21:16:27 +03:00
tavplubix
5dfd0045a6
Merge branch 'master' into distributed_ddl_improvements
2021-03-22 18:13:19 +03:00
Ivan Lezhankin
4f1fad97ab
Merge remote-tracking branch 'upstream/master' into async-insert
2021-03-19 23:41:01 +03:00
Alexander Kuzmenkov
3166f0cbfc
cleanup
2021-03-19 20:18:17 +03:00
Alexander Kuzmenkov
07c967b5c7
Merge pull request #21896 from ClickHouse/aku/tuple-element
...
fix fuzzer failure in tupleElement formatting
2021-03-19 15:49:45 +03:00
Alexander Kuzmenkov
46e4134deb
fix fuzzer failure in tupleElement formatting
2021-03-19 15:47:06 +03:00
Alexander Kuzmenkov
1beba597ca
Merge remote-tracking branch 'origin/master' into HEAD
2021-03-19 02:11:08 +03:00
Alexander Kuzmenkov
6aa9039f7d
float frames and lag/lead_in_frame
2021-03-19 02:05:43 +03:00
Alexander Kuzmenkov
f85b089292
Merge pull request #21466 from ClickHouse/aku/frame-formatting
...
add query formatting idempotence check to fuzzer
2021-03-18 17:57:11 +03:00
Pavel Kovalenko
39f3b17041
Merge remote-tracking branch 'origin/master' into unfreeze-partitions
2021-03-16 10:56:24 +03:00
Mike Kot
406d037ebb
Merge remote-tracking branch 'upstream/master' into feature/attach-partition-local
2021-03-15 18:41:47 +03:00
tavplubix
6a265f468e
Merge branch 'master' into distributed_ddl_improvements
2021-03-15 11:24:14 +03:00
Vitaly Baranov
37ce6e26d3
Add a new clause GRANTEES to commands CREATE USER and ALTER USER.
2021-03-14 19:12:42 +03:00
Vitaly Baranov
d6e0342c30
Improvements in implementations of the classes AccessRights and GrantedRoles.
2021-03-14 19:12:35 +03:00
Alexander Kuzmenkov
ec19b69d8c
Merge remote-tracking branch 'origin/master' into HEAD
2021-03-12 23:53:48 +03:00
Denis Glazachev
290a6d273e
Add Kerberos support for authenticating existing users when accessing over HTTP
2021-03-11 23:41:10 +03:00
Nikita Mikhaylov
5ac5ae3b27
Merge pull request #21157 from CurtizJ/fix-type-map
...
Improve support of integer keys in data type Map
2021-03-11 15:49:57 +03:00
Alexander Kuzmenkov
8c5240e3a0
fix a typo in window functions frame
2021-03-10 01:24:46 +03:00
Alexander Tokmakov
2484781070
fix MV recovery in Replicated db
2021-03-08 20:26:38 +03:00
Azat Khuzhin
9c35e49878
Fix heap-buffer-overflow in highlighting multi-line comments
...
Not closed multi-line comment returns the whole query, so it should not
be processed further with the lexer.
ASan report:
:) /*=================================================================
==14889==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60400006ebc0 at pc 0x00000a8148ea bp 0x7fffffff8610 sp 0x7fffffff7dd8
WRITE of size 16 at 0x60400006ebc0 thread T0
0 0xa8148e9 in __asan_memcpy (/src/ch/tmp/upstream/clickhouse-asan+0xa8148e9)
1 0xaa8a3a4 in DB::Client::highlight(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&) obj-x86_64-linux-gnu/../programs/client/Client.cpp:464:52
2 0x25f7b6d8 in std::__1::__function::__policy_func<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&)>::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2221:16
3 0x25f7b6d8 in std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&)>::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >&) const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2560:12
4 0x25f7b6d8 in replxx::Replxx::ReplxxImpl::render(replxx::Replxx::ReplxxImpl::HINT_ACTION) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:546:3
5 0x25f74059 in replxx::Replxx::ReplxxImpl::refresh_line(replxx::Replxx::ReplxxImpl::HINT_ACTION) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:729:2
6 0x25f6bc8f in replxx::Replxx::ReplxxImpl::insert_character(char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1197:3
7 0x25f79347 in replxx::Replxx::ReplxxImpl::action(unsigned long long, replxx::Replxx::ACTION_RESULT (replxx::Replxx::ReplxxImpl::* const&)(char32_t), char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1130:29
8 0x25f79347 in replxx::Replxx::ReplxxImpl::get_input_line() obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1123:11
9 0x25f7844c in replxx::Replxx::ReplxxImpl::input(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:455:8
10 0x25af5693 in ReplxxLineReader::readOneLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/ReplxxLineReader.cpp:108:29
11 0x25aed149 in LineReader::readLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/LineReader.cpp:81:26
12 0xaa80ba2 in DB::Client::mainImpl() obj-x86_64-linux-gnu/../programs/client/Client.cpp:654:33
13 0xaa756f5 in DB::Client::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) obj-x86_64-linux-gnu/../programs/client/Client.cpp:280:20
14 0x25c0c8b5 in Poco::Util::Application::run() obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:334:8
15 0xaa4d050 in mainEntryClickHouseClient(int, char**) obj-x86_64-linux-gnu/../programs/client/Client.cpp:2724:23
16 0xa848c3a in main obj-x86_64-linux-gnu/../programs/main.cpp:368:12
17 0x7ffff7dcab24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24)
18 0xa79b36d in _start (/src/ch/tmp/upstream/clickhouse-asan+0xa79b36d)
0x60400006ebc0 is located 0 bytes to the right of 48-byte region [0x60400006eb90,0x60400006ebc0)
allocated by thread T0 here:
0 0xa84509d in operator new(unsigned long) (/src/ch/tmp/upstream/clickhouse-asan+0xa84509d)
1 0x25f7af76 in void* std::__1::__libcpp_operator_new<unsigned long>(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/new:235:10
2 0x25f7af76 in std::__1::__libcpp_allocate(unsigned long, unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/new:261:10
3 0x25f7af76 in std::__1::allocator<replxx::Replxx::Color>::allocate(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:840:38
4 0x25f7af76 in std::__1::allocator_traits<std::__1::allocator<replxx::Replxx::Color> >::allocate(std::__1::allocator<replxx::Replxx::Color>&, unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/__memory/allocator_traits.h:468:21
5 0x25f7af76 in std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >::__vallocate(unsigned long) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:993:37
6 0x25f7af76 in std::__1::vector<replxx::Replxx::Color, std::__1::allocator<replxx::Replxx::Color> >::vector(unsigned long, replxx::Replxx::Color const&) obj-x86_64-linux-gnu/../contrib/libcxx/include/vector:1155:9
7 0x25f7af76 in replxx::Replxx::ReplxxImpl::render(replxx::Replxx::ReplxxImpl::HINT_ACTION) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:543:19
8 0x25f74059 in replxx::Replxx::ReplxxImpl::refresh_line(replxx::Replxx::ReplxxImpl::HINT_ACTION) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:729:2
9 0x25f6bc8f in replxx::Replxx::ReplxxImpl::insert_character(char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1197:3
10 0x25f79347 in replxx::Replxx::ReplxxImpl::action(unsigned long long, replxx::Replxx::ACTION_RESULT (replxx::Replxx::ReplxxImpl::* const&)(char32_t), char32_t) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1130:29
11 0x25f79347 in replxx::Replxx::ReplxxImpl::get_input_line() obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:1123:11
12 0x25f7844c in replxx::Replxx::ReplxxImpl::input(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../contrib/replxx/src/replxx_impl.cxx:455:8
13 0x25af5693 in ReplxxLineReader::readOneLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/ReplxxLineReader.cpp:108:29
14 0x25aed149 in LineReader::readLine(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) obj-x86_64-linux-gnu/../base/common/LineReader.cpp:81:26
15 0xaa80ba2 in DB::Client::mainImpl() obj-x86_64-linux-gnu/../programs/client/Client.cpp:654:33
16 0xaa756f5 in DB::Client::main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) obj-x86_64-linux-gnu/../programs/client/Client.cpp:280:20
17 0x25c0c8b5 in Poco::Util::Application::run() obj-x86_64-linux-gnu/../contrib/poco/Util/src/Application.cpp:334:8
18 0xaa4d050 in mainEntryClickHouseClient(int, char**) obj-x86_64-linux-gnu/../programs/client/Client.cpp:2724:23
19 0xa848c3a in main obj-x86_64-linux-gnu/../programs/main.cpp:368:12
20 0x7ffff7dcab24 in __libc_start_main (/usr/lib/libc.so.6+0x27b24)
SUMMARY: AddressSanitizer: heap-buffer-overflow (/src/ch/tmp/upstream/clickhouse-asan+0xa8148e9) in __asan_memcpy
v2: fix lexer instead of client quirk
2021-03-06 12:23:41 +03:00
Nikita Vasilev
728c9ccb6d
Merge remote-tracking branch 'upstream/master' into nikvas0/simple_optimizations
2021-03-05 19:17:01 +03:00
Alexander Kuzmenkov
7c8d17045c
fix frame formatting error
2021-03-05 06:15:20 +03:00
Ivan Lezhankin
74214865eb
Merge remote-tracking branch 'upstream/master' into async-insert
2021-03-04 14:14:28 +03:00
Ivan Lezhankin
b726845be2
[WIP]
2021-03-04 14:10:21 +03:00
Pavel Kovalenko
a3c0c35dff
ALTER TABLE UNFREEZE rework.
2021-03-02 23:28:42 +03:00
Mike Kot
4e1ac185b5
Merge remote-tracking branch 'upstream/master' into feature/attach-partition-local
2021-03-01 20:58:07 +03:00
Anton Popov
b6a519cd04
Merge remote-tracking branch 'upstream/master' into HEAD
2021-02-24 19:45:38 +03:00
Pavel Kovalenko
37fe24a52c
Remove unused clause
2021-02-24 17:51:15 +03:00
Pavel Kovalenko
078dfce038
Add ALTER TABLE UNFREEZE command.
2021-02-24 17:28:30 +03:00
alexey-milovidov
20a7ccf5b1
Merge pull request #20174 from amosbird/alias
...
Normalized function names (lower-case case-insensitive names)
2021-02-21 16:23:51 +03:00
Amos Bird
2dc7ba160a
Better
2021-02-18 20:20:28 +08:00
Anton Popov
f1fa110d48
fix type map with integer keys
2021-02-18 01:05:31 +03:00
Ivan Lezhankin
dee051dc8e
Merge remote-tracking branch 'upstream/master' into async-insert
2021-02-17 21:48:48 +03:00
Alexander Tokmakov
1aac7b3471
Merge branch 'master' into database_replicated
2021-02-17 00:39:56 +03:00
Mike Kot
362bd3a2ae
Merge remote-tracking branch 'upstream/master' into feature/attach-partition-local
2021-02-16 16:39:50 +03:00
Mike Kot
ca83775711
Multiple small hotfixes
...
Small fixes
Some fix for old bug
Another old code fix
2021-02-16 16:39:18 +03:00
Alexander Tokmakov
bf6f64a3fb
Merge branch 'master' into database_replicated
2021-02-16 01:28:19 +03:00
Ivan Lezhankin
f2b1708164
Refactor inserts and its tails
2021-02-15 21:57:35 +03:00
Amos Bird
a551edd8d6
Do not parse view function in expression
2021-02-13 22:12:44 +08:00
Amos Bird
69d4120982
Disable table function view in expression
2021-02-13 21:39:37 +08:00
Alexander Kuzmenkov
2571dac984
Merge pull request #20111 from ClickHouse/aku/window-prototype
...
RANGE OFFSET window frame
2021-02-11 10:39:21 +03:00
Alexander Kuzmenkov
c18749a704
fix a bug and add some tests
2021-02-09 17:44:04 +03:00
Alexander Tokmakov
5e0cbfe972
Merge branch 'master' into database_replicated
2021-02-08 23:01:12 +03:00
Alexey Milovidov
0145be85df
Do not spill warnings suppressions from ANTLR
2021-02-07 16:50:57 +03:00
alexey-milovidov
ed5a81ab59
Merge pull request #20078 from abyss7/better-read-buffers-4
...
LimitReadBuffer: check that position always advances
2021-02-07 07:33:08 +03:00
Alexey Milovidov
60f2e89cfb
Fix the case when DataType parser may have exponential complexity
2021-02-05 22:21:30 +03:00
Alexander Kuzmenkov
6824f13a35
tmp
2021-02-05 12:13:19 +03:00
Ivan Lezhankin
ee0ff755e2
Check that position always advances
2021-02-04 17:46:46 +03:00
Alexander Kuzmenkov
1b6262f874
cleanup
2021-02-04 09:51:46 +03:00
Alexander Kuzmenkov
773b364fe4
check some bounds
2021-02-04 09:50:56 +03:00
Alexander Tokmakov
d010f97db0
Merge branch 'master' into database_replicated
2021-02-03 20:13:25 +03:00
Alexander Kuzmenkov
f31d2206a7
more fuzzing and less bugs
2021-02-03 15:50:25 +03:00
Alexander Kuzmenkov
bb45c5a8ff
Merge remote-tracking branch 'origin/master' into HEAD
2021-02-03 12:13:23 +03:00
Alexander Kuzmenkov
1b47cf08a9
Merge pull request #19921 from ClickHouse/aku/window-prototype-2
...
UNBOUNDED FOLLOWING frame end
2021-02-03 12:10:37 +03:00
alexey-milovidov
4cbd0ed282
Merge pull request #20010 from ClickHouse/coverity
...
Fix some of the issues found by Coverity
2021-02-03 08:48:05 +03:00
Alexey Milovidov
12485eee6b
Fix some of the issues found by Coverity
2021-02-02 22:07:23 +03:00
Alexander Kuzmenkov
264aea20be
Merge remote-tracking branch 'origin/master' into HEAD
2021-02-02 19:12:46 +03:00
Alexander Kuzmenkov
d2a0e44a3a
Merge pull request #19299 from ClickHouse/aku/window-prototype
...
[wip] support RANGE frame for window functions
2021-02-02 17:59:16 +03:00
Alexander Kuzmenkov
41880719bf
Merge pull request #19919 from ClickHouse/aku/remove-always-false
...
Remove an always-false condition from query parser
2021-02-02 03:54:02 +03:00
Alexander Kuzmenkov
d084625436
cleanup
2021-02-02 03:51:35 +03:00
Alexander Kuzmenkov
ef46c36317
start offset for ROWS frame
2021-02-02 02:27:17 +03:00
Alexander Kuzmenkov
18b6fb2a93
cleanup 1
2021-02-02 02:24:04 +03:00
alesapin
2aa8a6304b
Merge pull request #15450 from CurtizJ/fix-ttl-group-by
...
Fix some cases of TTL expressions
2021-02-01 16:48:07 +03:00
Alexander Kuzmenkov
7780c0b8e9
Remove an always-false condition from query parser
...
https://github.com/ClickHouse/ClickHouse/pull/19236#discussion_r567673775
2021-02-01 13:49:19 +03:00
tavplubix
2a20f20f21
Merge pull request #19790 from taiyang-li/fix_client_select
...
fix client bug while executing select
2021-02-01 13:17:14 +03:00
alexey-milovidov
08f713f177
Merge pull request #14822 from vzakaznikov/live_view_periodic_refresh
...
Adding support for periodically refreshed LIVE VIEW tables
2021-02-01 06:11:30 +03:00
Alexander Tokmakov
84d3d6e728
fix 'Unmatched parentheses', add test
2021-02-01 02:10:41 +03:00
Alexey Milovidov
5b7c437e6d
Minor modification
2021-01-31 11:24:37 +03:00
Vitaliy Zakaznikov
dc9c3c8514
Fixing styling errors.
...
Adding simple tests.
2021-01-30 09:00:42 -05:00
Alexander Kuzmenkov
5519e4c134
unbounded following frame end
2021-01-30 04:16:44 +03:00
Vitaliy Zakaznikov
3de4690450
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into live_view_periodic_refresh
2021-01-29 19:57:13 -05:00
taiyang-li
35f8a0810a
fix client bug while executing select
2021-01-29 09:59:26 +08:00
Alexander Kuzmenkov
3ace39fbf7
simplify a loop and make RANGE frame the default
2021-01-28 20:05:01 +03:00
Alexander Kuzmenkov
629cb44d4c
everything was wrong
2021-01-28 16:42:18 +03:00
Alexey Milovidov
297cfb4857
Less parser depth
2021-01-28 06:34:44 +03:00
Anton Popov
a8f3078ce9
Merge remote-tracking branch 'upstream/master' into HEAD
2021-01-27 19:48:55 +03:00
alexey-milovidov
2028228f4b
Merge pull request #18684 from amosbird/betterwith
...
better CTE and with global
2021-01-27 04:33:17 +03:00
Alexey Milovidov
093108bf81
Normalize BigInt implementation
2021-01-27 03:54:57 +03:00
Alexander Kuzmenkov
83cfdde6d9
RANGE frame works in some cases
2021-01-27 03:08:15 +03:00
Alexander Tokmakov
f20d5e3b41
fix
2021-01-26 20:51:25 +03:00
Amos Bird
d6c0479cf9
add normalizeQueryKeepNames and normalizedQueryHashKeepNames ( #18910 )
2021-01-26 17:51:30 +03:00
Amos Bird
a2ceca3fa1
Fix recursive propagation
2021-01-26 10:29:12 +08:00
Amos Bird
824aee4020
better cte and with global
2021-01-26 10:29:11 +08:00
Alexander Kuzmenkov
f8f79d5788
tmp -- the tests pass by some miracle
2021-01-23 02:03:07 +03:00
Alexander Kuzmenkov
175404338d
Merge remote-tracking branch 'origin/master' into tmp
2021-01-20 20:22:58 +03:00
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
Nikita Vasilev
4c3e83ac57
fix
2021-01-03 18:02:00 +03: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