Maksim Kita
eabeb3076f
Added tests
2021-06-10 22:32:09 +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
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
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
Alexander Kuzmenkov
ae79bbea7d
Merge remote-tracking branch 'origin/master' into HEAD
2021-06-02 15:06:22 +03:00
Amos Bird
3be331edeb
Better exception for invalid projection creation
2021-05-31 12:24:09 +08: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
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
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
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
alesapin
17f229857c
Merge branch 'master' into nvartolomei-parts-move
2021-05-17 13:52:48 +03:00
Kseniia Sumarokova
99e2f83c69
Merge pull request #23548 from ucasFL/table-comment
...
Implement table comments
2021-05-15 19:56:16 +03:00
feng lv
8c82e3f1b9
fix style
...
fix
2021-05-14 15:50:05 +00: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
mergify[bot]
f5e77d7200
Merge branch 'master' into aku/fuzzer-typo
2021-05-10 17:54:19 +00: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
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