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
604daa9581
Fix a bunch of warnings from PVS-Studio
2021-05-08 19:09:17 +03:00
Alexey Milovidov
54fb40c041
Fix OpenTelemetry
2021-05-05 01:42:14 +03:00
Ivan
495c6e03aa
Replace all Context references with std::weak_ptr ( #22297 )
...
* Replace all Context references with std::weak_ptr
* Fix shared context captured by value
* Fix build
* Fix Context with named sessions
* Fix copy context
* Fix gcc build
* Merge with master and fix build
* Fix gcc-9 build
2021-04-11 02:33:54 +03:00
Nikita Mikhaylov
38e1cb41cc
done
2021-03-11 17:04:59 +03:00
Nikolai Kochetov
59a2c45555
Update executeQuery.cpp
2021-03-02 13:09:29 +03:00
feng lv
4c30c10092
add test
...
fix
2021-02-26 12:14:57 +00:00
feng lv
731faeadbf
union distinct improve
2021-02-25 07:47:08 +00:00
tavplubix
ac477d9850
Merge pull request #19771 from ClickHouse/thread_state_improvements
...
Minor code improvements around ThreadStatus
2021-02-08 22:34:55 +03:00
JackyWoo
77c0f0a0e7
add quota type QUERY_SELECTS and QUERY_INSERTS
2021-02-07 10:57:18 +08:00
Alexander Tokmakov
004517009e
fix
2021-01-29 18:13:27 +03:00
Alexey Milovidov
bfcb12c2e9
Add test-connect tool
2021-01-29 09:13:43 +03:00
Alexander Tokmakov
ffaa8e34a6
minor code improvements around ThreadStatus
2021-01-28 16:57:36 +03:00
Amos Bird
d6c0479cf9
add normalizeQueryKeepNames and normalizedQueryHashKeepNames ( #18910 )
2021-01-26 17:51:30 +03:00
Alexey Milovidov
cfd47b2980
Merge branch 'master' into issue18494
2021-01-25 22:18:23 +03:00
alexey-milovidov
ba3e064a63
Merge pull request #19371 from kssenii/test-coverage-with-factories
...
test coverage with factories
2021-01-25 07:11:09 +03:00
kssenii
0d940c6137
Add AggregateFunctionCombinatorFactory, better names
2021-01-23 12:07:37 +00:00
tavplubix
49e1321df4
Merge pull request #19072 from ClickHouse/fix_19021
...
Fix checkpoint in PeekableReadBuffer over ConcatReadBuffer
2021-01-22 21:00:04 +03:00
kssenii
daab2c91bb
Better
2021-01-21 21:15:11 +00:00
kssenii
c1702f34ee
Add factories info into system.query_log
2021-01-21 15:46:37 +00:00
Azat Khuzhin
61b2d0ce42
MemoryTracker: Do not ignore server memory limits during blocking by default
2021-01-15 22:46:58 +03:00
Alexander Tokmakov
547c7af1b1
fix checkpoint in PeekableReadBuffer over ConcatReadBuffer
2021-01-14 17:38:59 +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
Nikita Mikhaylov
f27aa148e0
Merge branch 'master' into parallel-parsing-input-format
2020-12-31 06:16:43 +04:00
Alexey Milovidov
f76410be3e
More correct words about parser
2020-12-30 21:46:02 +03:00
Nikita Mikhailov
c5f92e5096
better formatfactory
2020-12-30 06:07:30 +03:00
TszkitLo40
f7d7880ad5
fix build
2020-12-29 10:13:27 +08:00
TszkitLo40
55dac9715a
bugfix
2020-12-28 20:57:27 +08:00
TszkitLo40
9f2ae66eb5
fix style.
2020-12-28 20:37:09 +08:00
TszkitLo40
8e665955e7
fix build.
2020-12-28 11:09:29 +08:00
alfredlu
7ec8a73cc3
fix build
2020-12-28 10:38:16 +08:00
alfredlu
51cfbe8c2e
Add log_comment setting
2020-12-27 18:35:46 +08:00
Nikita Mikhailov
dcfbe782c6
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel-parsing-input-format
2020-12-23 05:20:22 +03:00
Amos Bird
9924cad96c
identify internal queries
2020-12-18 14:54:38 +08:00
Amos Bird
2a28c127eb
Better code for real
2020-12-18 14:13:59 +08:00
Amos Bird
272311f6bd
Extensive information in system.query_log
2020-12-18 14:13:58 +08:00
nikitamikhaylov
12e624fd9a
fix tests
2020-12-15 00:56:48 +03:00
Ivan
315ff4f0d9
ANTLR4 Grammar for ClickHouse and new parser ( #11298 )
2020-12-04 05:15:44 +03:00
Alexander Kuzmenkov
1d7dcef4a0
Merge remote-tracking branch 'origin/master' into HEAD
2020-11-24 21:45:10 +03:00
Alexander Kuzmenkov
412c2fe079
Merge remote-tracking branch 'origin/master' into HEAD
2020-11-23 19:51:18 +03:00
Alexander Kuzmenkov
5cd23e269d
cleanup
2020-11-19 19:55:56 +03:00
Alexander Kuzmenkov
6cb378e072
cleanup
2020-11-19 18:52:11 +03:00
Alexander Kuzmenkov
1570320e20
fixes for context hierarchy
2020-11-18 20:43:18 +03:00
Alexander Kuzmenkov
b16c5a1748
Merge remote-tracking branch 'origin/master' into HEAD
2020-11-17 22:54:54 +03:00
alexey-milovidov
915d96fee0
Merge pull request #16955 from nikitamikhaylov/fix-typos
...
Fix typos
2020-11-14 17:17:37 +03:00
nikitamikhaylov
c0940f2ebd
done
2020-11-13 02:27:18 +03:00
feng lv
b7e5c6ed4d
fix conflict
2020-11-12 02:26:21 +00:00
Alexander Tokmakov
b94cc5c4e5
remove more stringstreams
2020-11-10 21:22:26 +03:00
feng lv
9194985d48
Merge branch 'master' of github.com:ClickHouse/ClickHouse into union-distinct
2020-11-10 06:09:39 +00:00
Alexander Kuzmenkov
26229ed231
tmp spans for threads
...
(doesn't compile because of json metadata changes)
2020-11-09 18:07:38 +03:00