zhanglistar
de3aad085d
1. fix ut fail.
2021-12-10 10:26:28 +08:00
Kruglov Pavel
7ba60aa770
Change error codes to SYNTAX_ERROR
2021-12-08 21:29:50 +03:00
avogar
417bd12629
Fix 'APPLY lambda' parsing
2021-12-08 21:29:50 +03:00
Dmitry Novik
f138122259
fix GROUPING SETS formating
2021-12-07 16:44:09 +03:00
Stig Bakken
bb521cd363
Add TABLE OVERRIDE feature for MaterializedMySQL databases
2021-12-07 09:45:02 +01:00
Maksim Kita
4077d769e7
Merge pull request #31949 from Algunenano/parser_speedup
...
Speedup query parsing
2021-12-05 16:24:45 +03:00
Kseniia Sumarokova
738265eed2
Update ASTCreateQuery.cpp
2021-12-03 18:17:36 +03:00
Maksim Kita
74979a5f01
Merge pull request #31095 from amosbird/addprojection
...
Function name normalization for ALTER queries
2021-12-03 12:07:07 +03:00
Kruglov Pavel
049b2c0c14
Merge pull request #31072 from MaxWk/feature-support-bool-type
...
Feature support bool type
2021-12-02 14:50:29 +03:00
mergify[bot]
0f19807b97
Merge branch 'master' into Governance/view_comment
2021-12-02 08:19:03 +00:00
tavplubix
b623a387af
Merge pull request #31887 from ClickHouse/fix_cannot_create_empty_part
...
Parse partition key value from `partition_id` when need to create part in empty partition
2021-12-01 15:38:46 +03:00
alexey-milovidov
1f9b542ee9
Merge pull request #32003 from cmsxbc/support-postgresql-style-alter-modify-column
...
Support PostgreSQL style ALTER MODIFY COLUMN
2021-12-01 04:10:41 +03:00
Kseniia Sumarokova
3c348a2998
Merge pull request #8331 from Vxider/window-view
...
Support for Stream Processing
2021-11-30 18:20:12 +03:00
cmsxbc
366ee3deba
Support PostgreSQL style ALTER MODIFY COLUMN
2021-11-30 21:07:14 +08:00
fanzhou
b94f8878ff
1. refactor ExpressionAnalyzer
...
2. Update formatAST to support grouping sets query with distributed table
3. modify astExpression to support function in grouping sets
2021-11-30 14:58:55 +03:00
Kseniia Sumarokova
edf1ec776a
Merge pull request #31824 from azat/system-log-tables-recreate-different-engine
...
Recreate system.*_log tables in case of different engine/partition_by
2021-11-29 22:56:36 +03:00
Raúl Marín
fc48172980
Expected: Drop duplicates
2021-11-29 19:46:51 +01:00
fanzhou
2912344896
grouping sets support multiple group
2021-11-29 18:32:55 +03:00
Raúl Marín
8439f4c96c
Inline IParserBase wrappers
2021-11-29 13:09:53 +01:00
Raúl Marín
6218fc4ad5
Inline IParser depth
2021-11-29 13:09:53 +01:00
Raúl Marín
740451c723
Inline Expected add
2021-11-29 13:09:53 +01:00
Raúl Marín
89734819ca
Inline TokenIterator
2021-11-29 13:09:53 +01:00
Raúl Marín
e9ae49c68b
IParser: Set to vector
2021-11-29 13:09:53 +01:00
mergify[bot]
8d5460b469
Merge branch 'master' into feature-support-bool-type
2021-11-29 11:50:18 +00:00
Alexander Tokmakov
2fb00172a9
try parse partition key value from partition_id
2021-11-27 15:07:08 +03:00
Raúl Marín
7781fc12ed
Reduce dependencies on ASTSelectWithUnionQuery.h
...
521 -> 77 files requiring changes
2021-11-26 19:27:16 +01:00
MaxTheHuman
3418de337a
development
2021-11-26 20:37:51 +03:00
Raúl Marín
f0ee0724ac
Reduce dependencies on ASTSelectQuery.h
...
243 -> 152
2021-11-26 18:35:24 +01:00
Raúl Marín
b2cfa70541
Reduce dependencies on ASTFunction.h
...
481 -> 230
2021-11-26 18:21:54 +01:00
Raúl Marín
91bf938075
Reduce dependencies on ASTLiteral.h
...
590 -> 537
2021-11-26 17:54:57 +01:00
Raúl Marín
ac6ccf7d9a
Reduce IParser.h dependencies and dependents
...
533 -> 500 objects on change
Less direct dependencies
2021-11-26 17:19:47 +01:00
Raúl Marín
0b6ae2e508
Reduce dependencies on IParser.h
...
533 -> 500 files rebuilt on change
2021-11-26 17:04:21 +01:00
Raúl Marín
051dddd8df
Reduce dependencies on ASTIdentifier.h
...
Goes from rebuilding 483 objects to 165 when it's modified
2021-11-26 16:49:40 +01:00
Azat Khuzhin
89d2270e1d
Add ability to reset any type of AST
2021-11-26 10:05:20 +03:00
Nikita Mikhaylov
619ad46340
Fix oss-fuzz build ( #31818 )
2021-11-26 01:14:34 +03:00
kssenii
223048d395
Merge branch 'master' of github.com:ClickHouse/ClickHouse into vxider-window-view
2021-11-26 01:06:06 +03:00
MaxTheHuman
391a6019d1
fixes
2021-11-23 17:58:16 +03:00
MaxTheHuman
66e74a8907
fix typo
2021-11-23 17:58:16 +03:00
MaxTheHuman
8b95b7d271
init commit with parsing and BAD realisation
2021-11-23 17:58:16 +03:00
Anton Popov
43cfa4467b
Merge pull request #31476 from CurtizJ/merging-constraints
...
Merging #18787 (Constraints)
2021-11-22 15:57:59 +03:00
kssenii
fda66adf52
Correct merge with master
2021-11-20 13:47:55 +03:00
kssenii
29978f9707
Merge branch 'master' of github.com:ClickHouse/ClickHouse into vxider-window-view
2021-11-20 12:13:39 +03:00
kssenii
5c9509d68b
Fix attach
2021-11-20 12:03:39 +03:00
kssenii
9bdad8ab64
Rewrite from DataStreams to Processors
2021-11-19 16:09:12 +03:00
Vitaly Baranov
af56b20da7
Rename IAccessEntity::Type -> AccessEntityType and move it to Access/Common.
2021-11-19 02:48:00 +03:00
Vitaly Baranov
06077a2952
Rename Quota::KeyType -> QuotaKeyType and move it to Access/Common.
2021-11-19 00:14:23 +03:00
Vitaly Baranov
6634fcbac7
Rename Quota::ResourceType -> QuotaType and move it to Access/Common.
2021-11-19 00:14:23 +03:00
Vitaly Baranov
33ea7a7262
Rename RowPolicy::ConditionType -> RowPolicyFilterType and move it to Access/Common.
2021-11-19 00:14:23 +03:00
Vitaly Baranov
2883ca012e
Rename RowPolicy::NameParts -> RowPolicyName and move it to Access/Common.
2021-11-19 00:14:23 +03:00
kssenii
6a39d871b2
Merge branch 'master' of github.com:ClickHouse/ClickHouse into vxider-window-view
2021-11-18 17:29:11 +03:00
Anton Popov
dfb9bc2a01
minor fixes in constraints
2021-11-17 18:43:02 +03:00
Nikolay Degterinsky
64927938c6
Minor refactor
2021-11-16 08:58:28 +00:00
Nikolay Degterinsky
ba50e8387d
Merge branch 'master' into query_parameters
2021-11-15 19:55:54 +00:00
Nikolay Degterinsky
5c5897c1cd
Apply suggestions from code review
...
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2021-11-15 17:57:26 +00:00
tavplubix
8916d3bebf
Merge pull request #31305 from ClickHouse/rename_support_ifexists
...
Merging #31081
2021-11-12 15:22:43 +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
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