Commit Graph

215 Commits

Author SHA1 Message Date
Nikolay Degterinsky
db85f97a3f Fix 2022-09-16 08:55:58 +00:00
Nikolay Degterinsky
f63b2d4b9f Revert some breaking changes 2022-09-16 03:29:34 +00:00
Nikolay Degterinsky
36c3a18035 Fix tests 2022-09-16 02:38:14 +00:00
Nikolay Degterinsky
2e2d804b90 Better 2022-09-15 21:54:37 +00:00
Nikolay Degterinsky
6d01f92641 Fix silly bug & little enhancement 2022-09-15 00:48:14 +00:00
Nikolay Degterinsky
ab4e3b831e Fix TableFunction expressions 2022-09-14 09:44:51 +00:00
Nikolay Degterinsky
48ec96149e Fix style 2022-09-13 21:07:15 +00:00
Nikolay Degterinsky
d42a751c1f Fix table function view & more cool stuff 2022-09-13 20:31:08 +00:00
Nikolay Degterinsky
26bfabbb39 Fix bugs & remove old parsers 2022-09-12 15:26:45 +00:00
Nikolay Degterinsky
4fb9bafb2e Fixes & remove more of old parser 2022-09-09 18:40:39 +00:00
Nikolay Degterinsky
f83aba3586 Fix tests 2022-09-07 21:41:37 +00:00
Nikolay Degterinsky
f2588764f8 Fix checkpoints & array parser 2022-09-07 01:45:13 +00:00
Nikolay Degterinsky
a9ece94645 Fix style 2022-09-05 16:38:24 +00:00
Nikolay Degterinsky
11fb90b281 Better 2022-09-05 16:24:37 +00:00
Nikolay Degterinsky
33c070a5e0 Merge remote-tracking branch 'upstream/master' into new_parser 2022-09-01 13:08:36 +00:00
Duc Canh Le
8590cc46c4 implement intersect + except distinct 2022-08-30 18:09:01 +08:00
Nikolay Degterinsky
bd9b51ad72 Merge remote-tracking branch 'upstream/master' into new_parser 2022-08-15 21:18:57 +00:00
Nikolai Kochetov
7797f84f19 Refactor a little bit. 2022-08-12 19:20:17 +00:00
Nikolay Degterinsky
ff2e4ff156 Fix tests, refactor 2022-08-10 04:58:59 +00:00
Nikolay Degterinsky
7577b78eab Fix style 2022-08-04 10:06:18 +00:00
Nikolay Degterinsky
9abc87de4b Fix any/all, case, refactor, add comments 2022-08-04 09:32:14 +00:00
Constantine Peresypkin
b9d7cd6a5d add settings for executable table func
SELECT * FROM executable('<script name>', '<format>', '<columns>', (SELECT * FROM table), SETTINGS max_command_execution_time=100, command_termination_timeout=100)

fixes #38908
2022-07-30 20:02:56 +02:00
Nikolay Degterinsky
01ee10a588 Better 2022-07-14 12:11:14 +00:00
Nikolay Degterinsky
c7fda1352c Fix 2022-06-30 00:06:02 +00:00
Nikolay Degterinsky
369ff1807c Final replace of ParserExpression 2022-06-29 23:26:55 +00:00
Nikolay Degterinsky
511bc34157 Final replace of ParserExpression 2022-06-29 22:33:45 +00:00
Nikolay Degterinsky
b94a5c1051 Refactor 2022-06-29 21:51:58 +00:00
Nikolay Degterinsky
84294aefc9 Fix unit test 2022-06-27 13:49:37 +00:00
Nikolay Degterinsky
7299f81739 Fixes 2022-06-24 22:33:20 +00:00
Nikolay Degterinsky
9b8edc808c Replace ParserExpression everywhere 2022-06-24 15:42:44 +00:00
Nikolay Degterinsky
2a496bdef1 Small fixes 2022-06-24 11:41:13 +00:00
Nikolay Degterinsky
aba44f9fb8 Add GROUPING, ANY/ALL operators, fixes 2022-06-23 08:18:14 +00:00
Nikolay Degterinsky
4dc064bb60 Merge remote-tracking branch 'upstream/master' into new_parser 2022-06-22 22:01:52 +00:00
Nikolay Degterinsky
b9b0c4c637 Improvements 2022-06-22 21:59:20 +00:00
Nikolay Degterinsky
363a090186 Add FILTER & OVER. Refactor. Bug fixes 2022-06-16 01:53:55 +00:00
Nikolay Degterinsky
ea9ee2ca50 Fix arrayElement & CAST, add DISTINCT & ALL 2022-06-02 22:07:14 +00:00
Nikolay Degterinsky
daa20441a7 Add operator BETWEEN 2022-05-26 23:38:25 +00:00
Nikolay Degterinsky
45544da019 Fix Aliases in special cases 2022-05-26 22:53:37 +00:00
Nikolay Degterinsky
f8f9731509 Fix aliases and IS [NOT] NULL 2022-05-26 16:50:48 +00:00
Nikolay Degterinsky
73adb4bb59 Fix arrayElement operator 2022-05-19 08:37:26 +00:00
Nikolay Degterinsky
ecfed4aaef Add query parameter substitution 2022-05-12 10:07:58 +00:00
Nikolay Degterinsky
dadf94d62a Merge remote-tracking branch 'upstream/master' into new_parser 2022-05-05 07:00:03 +00:00
Nikolay Degterinsky
0937547bcf Add subqueries, qualified asterisk, column matcher 2022-05-04 18:54:04 +00:00
Nikolay Degterinsky
b473a27593 Little fixes 2022-04-29 16:29:32 +00:00
Nikolay Degterinsky
4af1533fee Add aliases & aggregate functions 2022-04-29 15:07:42 +00:00
Nikolay Degterinsky
93c1f93c6a Add ternary operator 2022-04-21 11:33:44 +00:00
Nikolay Degterinsky
e8b949284d Add lambda 2022-04-17 20:59:03 +00:00
Dmitry Novik
a16710c750 Merge remote-tracking branch 'origin/master' into grouping-sets-fix 2022-04-14 17:29:51 +00:00
Nikolay Degterinsky
2a50ef9881 Add CASE & CAST 2022-04-12 15:03:10 +00:00
Nikolay Degterinsky
46bf0fdfbf Add some more functions 2022-04-08 15:36:36 +00:00
Nikolay Degterinsky
5d12275811 Add some functions 2022-04-08 03:33:40 +00:00
Yakov Olkhovskiy
90c4cd3de7
Merge branch 'master' into interpolate-feature 2022-04-05 14:39:07 -04:00
Nikolay Degterinsky
510195a938 Add functions w/o arguments, more literals 2022-03-30 23:20:21 +00:00
Nikolay Degterinsky
29803df5fa pre-draft 2022-03-30 23:20:20 +00:00
kssenii
ac4897f4f9 Fix 2022-03-30 20:16:41 +02:00
kssenii
a2e950bd3b Fix 2022-03-29 17:34:50 +02:00
Yakov Olkhovskiy
83f406b722 optimization, INTERPOLATE without expr. list, any column is allowed except WITH FILL 2022-03-24 15:29:29 -04:00
Yakov Olkhovskiy
7bb66e6702 added INTERPOLATE extension for ORDER BY WITH FILL 2022-03-17 01:51:35 -04:00
Dmitry Novik
67df01d025
Merge branch 'master' into grouping-sets-fix 2022-02-22 04:18:03 -08:00
Nikolay Degterinsky
56aa60ab88 Add composability to casting and index operators 2022-02-01 15:56:03 +00:00
fanzhou
6c6d3015de 1. refactor ExpressionAnalyzer
2. Update formatAST to support grouping sets query with distributed table
3. modify astExpression to support function in grouping sets
2022-01-11 11:26:12 +00:00
fanzhou
912338629e grouping sets support multiple group 2022-01-11 11:26:11 +00:00
MaxTheHuman
390c8126a4 development 2022-01-11 11:26:10 +00:00
Alexey Milovidov
da967a555a Trying 2022-01-09 07:42:53 +03:00
alexey-milovidov
0a55fa3dc2
Revert "Grouping sets dev" 2021-12-25 20:30:31 +03:00
Kseniia Sumarokova
de7a5dd1e6
Update ExpressionListParsers.cpp 2021-12-21 12:39:31 +03:00
alexey-milovidov
6b97af4c63
Merge pull request #26869 from taylor12805/grouping-sets-dev
Grouping sets dev
2021-12-17 20:50:15 +03: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
fanzhou
2912344896 grouping sets support multiple group 2021-11-29 18:32:55 +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
91bf938075 Reduce dependencies on ASTLiteral.h
590 -> 537
2021-11-26 17:54:57 +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
Alexey Milovidov
993f3faefd Miscellaneous 2021-10-31 18:11:46 +03:00
Anton Popov
a9d83c1eec fix postgres like cast with negative numbers 2021-08-19 18:16:57 +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
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
729eba52ea Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into zdikov-subquery-operators 2021-08-07 15:59:58 +00:00
Azat Khuzhin
fabff86788 Fix NOT parsing 2021-06-20 23:27:24 +03:00
Azat Khuzhin
c6339b4c08 Stable NOT chain formatting 2021-06-19 08:03:36 +03:00
Kirill Ershov
15843723ec
Fix ALL/ANY implementation 2021-06-05 02:30:57 +03:00
Kirill Ershov
a524feb732
Rewrite ALL/ANY parser 2021-06-04 18:55:47 +03:00
Kirill Ershov
1c2e9ba003
Fix bug in parser 2021-06-02 02:18:15 +03:00
Kirill Ershov
566b5335dd
Add ANY, ALL 2021-05-30 20:58:08 +03:00
Anton Popov
e51cd90c6f better cast operator 2021-05-06 21:21:10 +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
Amos Bird
a551edd8d6
Do not parse view function in expression 2021-02-13 22:12:44 +08:00
spongedc
99335563d1 [For #18707] MySQL compatibility: support DIV and MOD operators 2021-01-05 13:03:19 +08:00
hexiaoting
5b3a7f5c98 Merge remote-tracking branch 'origin/master' into dev_map2 2020-11-26 16:43:27 +08:00
hexiaoting
74d875c837 Merge remote-tracking branch 'origin/master' into dev_map2 2020-11-26 15:13:52 +08:00
Alexander Kuzmenkov
412c2fe079 Merge remote-tracking branch 'origin/master' into HEAD 2020-11-23 19:51:18 +03:00
Ivan Lezhankin
1787cd89a7 Implement tcpPort() function literal 2020-11-17 16:24:13 +03:00
feng lv
fec4080d42 Merge branch 'master' of github.com:ClickHouse/ClickHouse into union-distinct 2020-11-11 03:10:10 +00:00
Vladimir Chebotarev
059357d51e
ALTER UPDATE/DELETE ... IN PARTITION with partition pruning in ReplicatedMergeTree (#13403)
Co-authored-by: Alexander Kazakov <Akazz@users.noreply.github.com>
2020-11-10 13:23:46 +03:00
feng lv
b4c933e585 fix
fix test
2020-11-09 16:03:52 +00:00
feng lv
125eb02726 nomalize ASTSelectWithUnionQuery 2020-11-07 11:38:20 +00:00
hexiaoting
28e87da976 remove map literal and Merge remote-tracking branch 'origin/master' into dev_map2 2020-11-06 15:07:41 +08:00
hexiaoting
3a70cf3773 Merge remote-tracking branch 'origin/master' into dev_map2 2020-11-02 14:46:56 +08:00
hexiaoting
2ba68d7494 Add map function 2020-11-02 14:05:53 +08:00
feng lv
e82ce52e2f fix 2020-11-01 14:57:41 +00:00
feng lv
7bfd5d9e8d need fix 2020-10-28 01:29:09 +00:00
feng lv
9b95ed9ead fix 2020-10-26 12:21:04 +00:00
feng lv
a9e4c7144c fix 2020-10-26 09:33:34 +00:00
Ivan
1d170f5745
ASTTableIdentifier Part #1: improve internal representation of ASTIdentifier name (#16149)
* Use only |name_parts| as primary name source

* Restore legacy logic for table restoration

* Fix build

* Fix tests

* Add pytest server config

* Fix tests

* Fixes due to review
2020-10-24 21:46:10 +03:00
feng lv
b931a3c9da fix
update test

fix
2020-10-15 16:14:28 +08:00
feng lv
7b69592e49 add test
fix

fix
2020-10-14 23:15:46 +08:00
feng lv
eb8d8f6ba4 interval op support string literal 2020-10-14 23:02:51 +08:00
Alexander Kuzmenkov
d205b20c04 wip 2020-08-05 05:21:33 +03:00
myrrc
8c3417fbf7
ILIKE operator (#12125)
* Integrated CachingAllocator into MarkCache

* fixed build errors

* reset func hotfix

* upd: Fixing build

* updated submodules links

* fix 2

* updating grabber allocator proto

* updating lost work

* updating CMake to use concepts

* some other changes to get it building (integration into MarkCache)

* further integration into caches

* updated Async metrics, fixed some build errors

* and some other errors revealing

* added perfect forwarding to some functions

* fix: forward template

* fix: constexpr modifier

* fix: FakePODAllocator missing member func

* updated PODArray constructor taking alloc params

* fix: PODArray overload with n restored

* fix: FakePODAlloc duplicating alloc() func

* added constexpr variable for alloc_tag_t

* split cache values by allocators, provided updates

* fix: memcpy

* fix: constexpr modifier

* fix: noexcept modifier

* fix: alloc_tag_t for PODArray constructor

* fix: PODArray copy ctor with different alloc

* fix: resize() signature

* updating to lastest working master

* syncing with 273267

* first draft version

* fix: update Searcher to case-insensitive

* added ILIKE test

* fixed style errors, updated test, split like and ilike,  added notILike

* replaced inconsistent comments

* fixed show tables ilike

* updated missing test cases

* regenerated ya.make

* Update 01355_ilike.sql

Co-authored-by: myrrc <me-clickhouse@myrrec.space>
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-07-05 18:57:59 +03:00
Vitaly Baranov
6146766465 Use function ParserList::parseUtil() to parse lists more accurately. 2020-06-15 22:07:47 +03:00
Ivan Lezhankin
06446b4f08 dbms/ → src/ 2020-04-03 18:14:31 +03:00