Alexander Tokmakov
672157b817
Merge branch 'master' into mvcc_prototype
2021-11-11 22:01:34 +03:00
Alexander Tokmakov
5656203bc6
minor fixes
2021-11-11 21:23:42 +03:00
Nikolay Degterinsky
bcfe902b0d
Merge pull request #31226 from georgthegreat/master
...
Fix typo in USE_MYSQL check
2021-11-11 20:49:30 +03:00
Alexander Tokmakov
73ab518e97
minor improvements
2021-11-11 19:29:56 +03:00
Nikolay Degterinsky
0d58c5231f
Better
2021-11-11 13:28:18 +00:00
Nikolay Degterinsky
7b5954b736
Merge branch 'master' into query_parameters
2021-11-11 11:43:00 +00:00
cms
bc6616d8be
improve error message while using OFFSET FETCH clause without ORDER BY
2021-11-11 08:20:21 +08:00
alexey-milovidov
e3650b865a
Merge pull request #30965 from kssenii/intersect-except-fix
...
Fix cases when intersect / except is not checked
2021-11-11 01:59:59 +03:00
Anton Popov
833652e8f4
Merge branch 'nikvas0/simple_optimizations' of git://github.com/nikvas0/ClickHouse into merging-constraints
2021-11-10 19:35:28 +03:00
kssenii
6bc7fb1edf
Fixes
2021-11-10 09:33:48 +00:00
Yuriy Chernyshov
abf4fbe82f
Fix typo in USE_MYSQL check
2021-11-10 11:38:03 +03:00
Vitaly Baranov
cf77c0b3fc
New syntax for BACKUP/RESTORE: set backup engine explicitly.
2021-11-09 23:16:40 +03:00
kssenii
bfde7fd36c
Better
2021-11-09 12:06:43 +00:00
kssenii
dead99011b
Merge branch 'master' of github.com:ClickHouse/ClickHouse into intersect-except-fix
2021-11-08 16:15:33 +03:00
vicgao
cdb1227b69
code style
2021-11-08 16:49:56 +08:00
vicgao
8e7023cdb4
rename database/table/dictionary support IF EXISTS syntax
2021-11-08 16:27:10 +08:00
vicgao
6020c23145
code review
2021-11-08 15:14:45 +08:00
Amos Bird
0200d1c001
Alter query function normalization.
2021-11-07 21:27:02 +08:00
Alexander Tokmakov
92eec74ad7
Merge branch 'master' into mvcc_prototype
2021-11-06 21:08:36 +03:00
MaxWk
dd54b4aa26
support bool literal
2021-11-06 15:19:12 +08:00
vicgao
ec2c70ab75
rename/exchange database/table/dictionary support IF EXISTS syntax
2021-11-04 22:35:34 +08:00
Vasily Nemkov
67852e9134
Implemented CREATE [MATERIALIZED|LIVE] VIEW ... COMMENT
2021-11-03 22:32:29 +02:00
Nikolay Degterinsky
4d1cca0adf
Update src/Parsers/parseDatabaseAndTableName.cpp
...
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2021-11-03 12:49:23 +03:00
Vitaly Baranov
a0c38a3dfd
Rename AuthenticationType::MAX_TYPE.
2021-11-02 12:02:22 +03:00
Vitaly Baranov
ab01b9afc8
Split Authentication.h to common and main parts.
2021-11-01 19:13:49 +03:00
Vitaly Baranov
3ed7f8f0b3
Move access-rights' source files needed for parser to a separate target.
2021-11-01 19:13:49 +03:00
kssenii
35349056b8
Fix
2021-11-01 16:33:19 +03:00
Alexey Milovidov
993f3faefd
Miscellaneous
2021-10-31 18:11:46 +03:00
Maksim Kita
a8ef6cc3b6
Merge pull request #30734 from kitaisreal/sql-user-defined-functions-on-cluster-support
...
SQLUserDefinedFunctions support ON CLUSTER
2021-10-28 18:08:38 +03:00
Alexey Milovidov
8b4a6a2416
Remove cruft
2021-10-28 02:10:39 +03:00
tavplubix
d7c69f6c02
Merge pull request #29202 from aiven/kmichel-replicated-database-alter-attach
...
Allow non-replicated ALTER TABLE FETCH/ATTACH in Replicated databases
2021-10-27 16:42:54 +03:00
Maksim Kita
d523b28459
SQLUserDefinedFunctions support ON CLUSTER
2021-10-27 11:28:21 +03:00
alesapin
8749f4a31a
Merge pull request #29043 from nvartolomei/nv/parts-uuid-move-shard-kill
...
Part movements between shards improvements and cancel support
2021-10-27 10:46:00 +03:00
Nikita Mikhaylov
aae30a9e37
Fix fuzzer build ( #30344 )
2021-10-26 20:30:34 +03:00
mergify[bot]
ce88a84e88
Merge branch 'master' into nv/parts-uuid-move-shard-kill
2021-10-26 11:09:19 +00:00
alexey-milovidov
e7751c59f6
Merge pull request #30456 from CurtizJ/async-inserts-values
...
Support VALUES format in async inserts
2021-10-26 09:47:27 +03:00
kssenii
e04e37916e
Review fixes
2021-10-23 18:20:31 +03:00
kssenii
36d0f67b38
Merge branch 'master' of github.com:ClickHouse/ClickHouse into remote-connection
2021-10-23 17:12:46 +03:00
Vladimir C
d60f00bab8
Merge pull request #30520 from azat/fix-unary-postfix-rewrite
2021-10-22 11:31:36 +03:00
Maksim Kita
6561f9bed2
Merge pull request #30483 from kitaisreal/sql-user-defined-functions-composition-fix
...
SQLUserDefinedFunctions composition fix
2021-10-22 10:16:31 +03:00
Azat Khuzhin
e1b6acfa52
Add missing parenthesis for isNotNull/isNull rewrites to IS [NOT] NULL
...
After #29446 the following query was "broken":
select isNotNull(1)+isNotNull(2) from remote('127.2', system.one)
This was also a problem for queries to external storages (i.e. mysql),
since it also uses query rewrite, like non-local distributed queries.
Fixes : #29446
2021-10-21 21:18:00 +03:00
Maksim Kita
4ea969350b
Fixed build
2021-10-21 18:43:33 +03:00
Anton Popov
b1a74af44d
Merge pull request #30180 from CurtizJ/remove-sample-by
...
Allow to remove `SAMPLE BY` expression
2021-10-21 17:09:53 +03:00
Nikolay Degterinsky
677eb5bbda
Fix tests
2021-10-21 15:53:02 +03:00
Maksim Kita
650a79a907
SQLUserDefinedFunctions composition fix
2021-10-21 10:08:08 +03:00
alexey-milovidov
d3df1c02bc
Merge pull request #29672 from ClickHouse/clickhouse-obfuscator-2
...
More enhancements for query obfuscator
2021-10-20 23:06:29 +03:00
Maksim Kita
ff48017f4a
SQLUserDefinedFunctions support CREATE OR REPLACE, CREATE IF NOT EXISTS
2021-10-20 17:56:46 +03:00
Anton Popov
6b34398e9c
support VALUES format in async inserts
2021-10-20 17:20:58 +03:00
Maksim Kita
54d3720426
ASTDropFunctionQuery formatting fix
2021-10-20 16:08:13 +03:00
Maksim Kita
ad409d9b47
SQLUserDefinedFunctions added DROP IF EXISTS support
2021-10-20 13:05:57 +03:00
Nikolay Degterinsky
d76976e272
Merge branch 'master' into query_parameters
2021-10-18 17:34:20 +03:00
Alexey Milovidov
04d8f611d2
Merge branch 'master' into clickhouse-obfuscator-2
2021-10-17 05:52:13 +03:00
Nikita Mikhaylov
6b22fdc55a
Merge pull request #30012 from PaulCher/codegen_select_fuzzer_v1
...
Codegen select fuzzer v1
2021-10-16 14:08:08 +03:00
alexey-milovidov
c18d283469
Update codegen_select_fuzzer.cpp
2021-10-16 03:57:26 +03:00
Nikita Mikhaylov
882c876090
Update codegen_select_fuzzer.cpp
2021-10-15 21:21:08 +03:00
Nikita Mikhaylov
ec188000b6
Style + more uncomment
2021-10-15 17:06:20 +00:00
Pavel Cheremushkin
058081bcb2
fixed typo in gen.py; clickhouse.g applying Nikita's in build-time generation
2021-10-15 18:18:02 +03:00
mergify[bot]
477ea62257
Merge branch 'master' into remove-sample-by
2021-10-15 15:14:17 +00:00
Nikita Mikhaylov
e9bf496d42
Added an ability to generate data in build time
2021-10-15 14:35:50 +00:00
kssenii
7b81766168
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into remote-connection
2021-10-15 12:36:44 +00:00
Nikolay Degterinsky
ca7e318191
Fix tests
2021-10-15 14:59:53 +03:00
Maksim Kita
7beaeb8b13
Merge branch 'master' into indexcache
2021-10-15 12:59:09 +03:00
Anton Popov
476d7a411f
allow to remove SAMPLE BY expression
2021-10-14 17:05:20 +03:00
Anton Popov
5802037f1e
Merge pull request #29916 from ucasfl/format-alter
...
Format improvement of AlterQuery
2021-10-14 14:30:08 +03:00
Maksim Kita
f589084a94
Merge pull request #29899 from Enmk/Governance/dictionary_comment
...
Governance/dictionary comment
2021-10-14 12:35:10 +03:00
Nikolay Degterinsky
ff6e814757
Try fix tests
2021-10-13 23:54:19 +03:00
Nikita Mikhaylov
57a623aba0
Merge branch 'master' into codegen_select_fuzzer_v1
2021-10-13 16:01:40 +03:00
Pavel Cheremushkin
562138c9fa
codegen_fuzzer: removing errors on warnings from protobuf-generated code in more gentle way
2021-10-13 15:01:21 +03:00
Nikolay Degterinsky
2ed72501d1
Fix tests
2021-10-13 10:00:00 +03:00
Nikolay Degterinsky
49c1a52f34
Merge branch 'master' into query_parameters
2021-10-13 03:04:40 +03:00
Nikolay Degterinsky
5fa0f9e7fd
Add parameters to INSERT queries
2021-10-13 03:01:41 +03:00
Alexey Milovidov
9939e7c1eb
Merge branch 'master' into clickhouse-obfuscator-2
2021-10-13 01:16:26 +03:00
Nikolay Degterinsky
2b7e1e2949
Add parmeters to SYSTEM queries
2021-10-12 21:11:00 +03:00
Nikolay Degterinsky
2421cf29de
Refactor
2021-10-12 21:10:07 +03:00
Nikolay Degterinsky
bdbfa24048
Add parameters to more CREATE queries
2021-10-12 21:07:09 +03:00
Vasily Nemkov
91afa20a73
Unit tests for dictionary with comment
2021-10-12 12:48:12 +03:00
Pavel Cheremushkin
9ed3361298
removing code generated files, since protobuf generation is now done in CMake
2021-10-12 03:53:43 +03:00
Pavel Cheremushkin
7b9358a597
adding codegen fuzzer + code generation script. new contrib added: libprotobuf-mutator
2021-10-12 03:21:31 +03:00
kssenii
1de55cfeb4
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into remote-connection
2021-10-11 11:33:35 +00:00
feng lv
1229a8b528
fix
2021-10-10 04:12:24 +00:00
Vasily Nemkov
67ff0f5dba
Refactoring: moved comment
out of ASTStorage to ASTCreateQuery
2021-10-09 12:25:27 +03:00
feng lv
fa2b277e62
improment format of AlterQuery
2021-10-09 07:57:37 +00:00
tavplubix
fa1396a9dd
Merge pull request #29790 from ClickHouse/fix-bad-cast-in-parser-create
...
Fix bad cast in ParserCreateQuery
2021-10-08 23:53:38 +03:00
Alexander Tokmakov
7e2bc184ec
fix another suspicious places, add test
2021-10-07 16:43:49 +03:00
Vladimir C
b02c12b182
Merge pull request #23881 from darkkeks/fix-cross-to-inline-join-error-condition
2021-10-07 11:09:36 +03:00
kssenii
c96b403809
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into remote-connection
2021-10-06 11:54:28 +00:00
alesapin
47de753750
Merge branch 'master' into nvartolomei-nv/parts-uuid-move-shard-kill
2021-10-06 11:31:05 +03:00
kssenii
5a87b6eb4f
Predefined configuration for table function remote
2021-10-06 05:55:09 +00:00
Alexey Milovidov
bd4b0af2e1
Fix bad cast in ParserCreateQuery
2021-10-06 02:34:48 +03:00
mergify[bot]
3b1f49aac7
Merge branch 'master' into nv/parts-uuid-move-shard-kill
2021-10-05 12:36:02 +00:00
Nikolay Degterinsky
e03bf0c526
Merge branch 'master' into query_parameters
2021-10-04 17:23:17 +03:00
kssenii
f1ea186bff
Exists
2021-10-04 13:12:30 +00:00
Alexey Milovidov
0bf597374f
More enhancements for query obfuscator
2021-10-03 05:56:32 +03:00
Alexey Milovidov
fe6b7c77c7
Rename "common" to "base"
2021-10-02 10:13:14 +03:00
vdimir
a817bed287
Replace isComma || isCross -> isCrossOrComma
2021-10-01 14:52:12 +03:00
vdimir
4acd8f3147
Do not add extra parentheses for tuple negate unary operator
2021-09-30 13:47:29 +03:00
Nikolay Degterinsky
7f3d395bf3
Merge branch 'master' into query_parameters
2021-09-30 02:01:33 +03:00
alexey-milovidov
d46dfd0ddd
Merge pull request #29446 from azat/isNull-isNotNull-format
...
Transform isNull/isNotNull to IS NULL/IS NOT NULL (for external dbs)
2021-09-29 00:56:57 +03:00
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