kreuzerkrieg
9612bb0e79
More GCC warnings
2019-12-16 23:19:50 +02:00
root
63aaf64e93
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into lulu-master1
2019-12-13 16:12:43 +08:00
chertus
68a33863ab
extract getTableExpressions variants into own file
2019-12-12 19:06:18 +03:00
zhangxiao018
c03f126057
fix trivial count query with ConvertingBlockInputStream.
2019-12-12 18:21:08 +08:00
CurtizJ
45a9751c31
refactoring of order by optimization
2019-12-11 04:34:39 +03:00
CurtizJ
9e75892516
refactoring of order by optimization
2019-12-11 02:18:24 +03:00
Vitaly Baranov
38fa1af5ca
Disable quota consumptions for the system queries and for selecting
...
from the `system.quota` and `system.quotas` tables.
2019-12-05 21:03:57 +03:00
Vitaly Baranov
0e21673271
Rework Quota based on IAccessEntity.
2019-12-05 21:03:57 +03:00
Alexey Milovidov
8916b8f2e6
Make data skipping indices non-experimental. Make settings about data skipping indices, multiple JOINs and CROSS to INNER JOIN conversion obsolete,
2019-11-30 23:41:02 +03:00
alexey-milovidov
18a70ba70e
Merge pull request #7911 from ClickHouse/prewhere_alias
...
Fix reading empty set with prewhere dependent on alias column.
2019-11-26 09:38:47 +03:00
Nikolai Kochetov
867fded9fd
Fix prewhere with max_parallel_replicas.
2019-11-25 21:29:02 +03:00
Nikolai Kochetov
1a0f17cb2c
Fix reading empty set with prewhere dependent on alias column.
2019-11-25 17:33:54 +03:00
Amos Bird
9af0c00053
Optimize PREWHERE
...
So that it's never worse than WHERE.
2019-11-18 22:59:03 +08:00
Alexander Tokmakov
2173bf5f4a
Merge branch 'master' into possible_segfaults_in_table_functions
2019-11-17 16:48:13 +03:00
Alexander Tokmakov
55f60a6bad
hold shared pointers to table function Storage and Context from InterpreterSelectQuery
2019-11-15 21:42:32 +03:00
Anton Popov
0318e6d820
Update dbms/src/Interpreters/InterpreterSelectQuery.cpp
...
Co-Authored-By: Alexander Kuzmenkov <36882414+akuzm@users.noreply.github.com>
2019-11-15 17:09:34 +03:00
CurtizJ
475356f2b7
more clarifying names to avoid mistakes
2019-11-15 17:03:42 +03:00
CurtizJ
f6b601cb9c
fix order by with pk optimization
2019-11-13 17:57:45 +03:00
Nikolai Kochetov
28b195a0f1
Merge pull request #7672 from ClickHouse/processors-4-tmp
...
Processors 4
2019-11-11 21:22:06 +03:00
Nikolai Kochetov
cc16ac3c3c
Return resize processor before aggregating.
2019-11-09 12:24:55 +03:00
Nikolai Kochetov
dd7ed390f6
Merge branch 'master' into processors-4-tmp
2019-11-08 18:53:03 +03:00
Vasily Nemkov
5624bb3abb
odbc table function now respects external_table_functions_use_nulls setting
...
* Passing setting value to ODBC-bridge on each request
* Handling that setting value correctly in ODBC-bridge
* Fixed issue with executing table-functions on context with no settings
applied in `SELECT ... SETTINGS x=foo` query.
* Added tests to verify fix.
2019-11-08 14:30:11 +03:00
alexey-milovidov
a2e79cc427
Merge pull request #7574 from ClickHouse/processors-4
...
Fix tests for processors
2019-11-08 00:46:30 +03:00
Nikolai Kochetov
feed418fb3
Disable task pinning and resize.
2019-11-07 14:49:13 +03:00
Nikolai Kochetov
86a9c2b98e
Try to fix tests.
2019-11-06 12:45:47 +03:00
alexey-milovidov
78f7826a09
Update InterpreterSelectQuery.cpp
2019-11-06 11:17:26 +03:00
chertus
950e95c178
support JOIN ON expression
2019-11-05 23:22:20 +03:00
Nikolai Kochetov
055f21c9b7
Less wrappers for procesors pipeline.
2019-11-05 20:33:03 +03:00
Amos Bird
f0b3c1f7c7
early constant folding improvement
2019-11-03 21:17:46 +08:00
alexey-milovidov
4081b0be90
Merge pull request #7497 from amosbird/countopt
...
Early constant folding.
2019-11-01 16:54:02 +03:00
Amos Bird
e04cdd4ebb
Early constant folding.
2019-10-31 23:54:32 +08:00
Nikolai Kochetov
a80338e066
Merged with master
2019-10-31 14:41:29 +03:00
Alexey Milovidov
fe73354320
Improvements after #7510
2019-10-30 22:15:55 +03:00
Amos Bird
2c75a51d4f
Instant count() for MergeTree
...
Use (Replicated)MergeTree's metadata to do trivial count()
2019-10-29 17:45:47 +08:00
Amos Bird
295864e6e0
better scalar query
2019-10-23 21:37:54 +08:00
Nikolai Kochetov
2b334a4adb
Review fixes.
2019-10-21 19:26:29 +03:00
Nikolai Kochetov
2893c35930
Merged with master.
2019-10-21 18:33:44 +03:00
CurtizJ
546414c015
fix optimize_read_in_order with in subquery
2019-10-17 16:11:27 +03:00
Nikolai Kochetov
2684bd0d5e
Fixes for 7216
2019-10-11 20:27:54 +03:00
Nikolai Kochetov
ef14df4632
Added more comments.
2019-10-10 17:16:15 +03:00
Nikolai Kochetov
9c5ae5f536
Merge branch 'master' into processors-and-storages
2019-10-09 14:12:47 +03:00
alexey-milovidov
bcc4e3f0ba
Merge branch 'master' into issue-6615
2019-10-07 22:12:25 +03:00
alexey-milovidov
d096119529
Merge pull request #7156 from ClickHouse/fix-header-for-now
...
Fix header for function 'now'
2019-10-05 22:35:23 +03:00
alexey-milovidov
40b22061f0
Update InterpreterSelectQuery.cpp
2019-10-05 22:34:25 +03:00
Nikolai Kochetov
95ec0f7c2d
Merged with master.
2019-10-04 20:53:21 +03:00
Nikolai Kochetov
627d48c19a
Added ExecutionSpeedLimits.
2019-10-04 20:49:57 +03:00
Nikolai Kochetov
76d1412953
Fix actions for distributed.
2019-10-03 18:47:42 +03:00
Nikolai Kochetov
e5c1df010f
Remove allow_different_constant_values from InterpreterSelectQuery.
2019-10-03 15:02:30 +03:00
Nikolai Kochetov
3142955e6c
InterpreterSelectQuery: reuse actions from getSampleBlock in readImpl.
2019-10-03 14:58:52 +03:00
chertus
038428bccf
do not affect other SquashingBlockInputStream instances
2019-10-01 16:01:08 +03:00
Nikolai Kochetov
9e74b8a6fe
Disable check for constants in Converting stream while converting to header.
2019-10-01 13:58:39 +03:00
chertus
5212d43ae4
simplify pmj settings
2019-09-30 17:36:45 +03:00
root
f54f55bbdc
Add const.
2019-09-28 00:38:13 +08:00
root
0189945ad8
Optimize empty IN subquery and empty INNER/RIGHT JOIN.
2019-09-27 19:06:20 +08:00
chertus
10eaef1adc
squash left-hand blocks in pmj (phase 2)
2019-09-26 21:51:17 +03:00
chertus
dd08f06c81
squash left-hand blocks in partial merge join
2019-09-25 22:17:32 +03:00
alexey-milovidov
3f500aad4b
Merge pull request #6976 from sfod/issue-3571
...
Throw exceptions if WITH TOTALS/ROLLUP/CUBE are specified without agg…
2019-09-20 23:39:00 +03:00
alexey-milovidov
9c675e50bb
Merge pull request #6963 from nicelulu/issue_6616
...
optimize limit 1,0 and test.
2019-09-19 02:23:56 +03:00
Artem Zuikov
aae82eed5a
Merge pull request #6940 from 4ertus2/mjoin
...
PartialMergeJoin
2019-09-18 16:16:10 +03:00
sfod
0bad4b4a05
Throw exceptions if WITH TOTALS/ROLLUP/CUBE are specified without aggregate functions
2019-09-18 16:08:51 +03:00
root
f4b7cae998
optimize limit 1,0 and test.
2019-09-18 02:55:59 +08:00
chertus
cbd96af079
fix use after free (change Join <-> AnalyzedJoin ownership)
2019-09-16 15:37:46 +03:00
Nikolai Kochetov
9dea55c284
Do not pin sources for non MergeTree tables.
2019-09-12 16:23:24 +03:00
Nikolai Kochetov
96f7eb1141
Change number of aggregating streams.
2019-09-11 13:07:04 +03:00
Nikolai Kochetov
e9e0bd82b9
Change number of aggregating streams.
2019-09-10 20:08:06 +03:00
Nikolai Kochetov
c9cca3ba8b
Merged with master
2019-09-09 16:20:30 +03:00
alexey-milovidov
c90dfc1e48
Merge pull request #6837 from filimonov/fix_some_pvs_reported_issues
...
Fix some pvs reported issues
2019-09-06 20:15:14 +03:00
Nikolai Kochetov
52305cefbc
Merge branch 'merging-aggregated-processors' into processors-2
2019-09-06 15:21:17 +03:00
alexey-milovidov
3d8ec8fb33
Merge pull request #6823 from yandex/fancyqlx-master
...
Merge #6167
2019-09-06 03:18:26 +03:00
alexey-milovidov
05a1a7ac71
Update InterpreterSelectQuery.cpp
2019-09-06 03:18:06 +03:00
alexey-milovidov
18dcb3753d
Merge pull request #6824 from 4ertus2/mjoin
...
Refactoring (ExpressionAnalyzer & SubqueryForSet)
2019-09-06 03:17:16 +03:00
Olga Khvostikova
f90642ce23
Merge pull request #6610 from CurtizJ/merging_with_ties_and_with_fill
...
WITH TIES modifier for LIMIT and WITH FILL modifier for ORDER BY. (continuation of #5069 )
2019-09-05 22:45:48 +03:00
Mikhail Filimonov
b40204a360
PVS https://clickhouse-test-reports.s3.yandex.net/0/2cda8f1563e9b2d11f75c68db817c3f68ace1160/pvs_studio_report/pvs-studio-html-report/sources/InterpreterSelectQuery.cpp_24.html#ln430
2019-09-05 19:23:36 +02:00
Nikolai Kochetov
3bd453985b
Merge branch 'master' of https://github.com/fancyqlx/ClickHouse into fancyqlx-master
2019-09-04 18:48:12 +03:00
chertus
904cfed046
better includes
2019-09-04 13:15:34 +03:00
Artem Zuikov
0a998fddce
Merge pull request #6801 from 4ertus2/mjoin
...
Refactoring: wrap Join logic via AnalyzedJoin iface
2019-09-03 19:53:49 +03:00
chertus
bb3dedf1dc
move Join object from ExpressionAction into AnalyzedJoin
2019-09-03 17:36:02 +03:00
Nikolai Kochetov
e55647eee9
Force add resize befor aggregating transform.
2019-09-03 13:14:13 +03:00
CurtizJ
973b533377
Merge remote-tracking branch 'upstream/master' into read-in-order-2
2019-09-03 00:59:51 +03:00
CurtizJ
de5e2b4d6b
Merge remote-tracking branch 'upstream/master' into merging_with_ties_and_with_fill
2019-09-02 17:34:49 +03:00
CurtizJ
da11fb86b7
implement 'with fill' modifier with processors
2019-09-02 17:29:51 +03:00
Nikolai Kochetov
bf0c0ed4f1
Merge branch 'master' into processors-2
2019-09-02 16:02:09 +03:00
Alexey Milovidov
aac0b27daa
Fixed possible deadlock in distributed queries
2019-08-31 15:18:14 +03:00
Nikolai Kochetov
18fff141d1
Update max_threads for processors.
2019-08-30 17:21:22 +03:00
CurtizJ
048d3da9ab
better types comparison and conversion in FillingBlockInputStream
2019-08-30 01:24:33 +03:00
CurtizJ
a6e43c4119
merging with master
2019-08-29 19:48:02 +03:00
Nikolai Kochetov
d6e13cbb92
Update max_threads for processors.
2019-08-28 20:48:41 +03:00
Nikolai Kochetov
ca232cebfb
Update max_threads for processors.
2019-08-28 20:30:48 +03:00
Alexey Milovidov
25c53ccd9e
Rename setting
2019-08-27 22:05:35 +03:00
Nikolai Kochetov
4cb52cebea
Update max_threads for processors.
2019-08-27 21:37:28 +03:00
CurtizJ
50d870705c
limit with ties for processors
2019-08-27 20:48:42 +03:00
CurtizJ
42633c801b
Merge remote-tracking branch 'upstream/master' into merging_with_ties_and_with_fill
2019-08-27 17:11:57 +03:00
Weiqing Xu
2fbcd607f3
check free space when use external sort/aggerator
2019-08-27 08:23:07 +08:00
CurtizJ
4a7459f3b3
cleanup and update comments
2019-08-26 18:25:18 +03:00
CurtizJ
c63eeb8933
add FinishSortingTransform, refactor MergeSortingTransform
2019-08-26 17:54:29 +03:00
Alexey Milovidov
cdd6dca517
Remove Compiler
2019-08-24 00:10:26 +03:00
CurtizJ
dae5c650df
'read in order' optimization for processor
2019-08-23 14:39:22 +03:00
CurtizJ
1e1d4eb7c1
temporarily make a dummy for 'with fill' with processors
2019-08-23 14:20:53 +03:00
alexey-milovidov
5c99780b08
Merge pull request #6606 from yandex/processors-2
...
Enable processors by default.
2019-08-23 02:50:11 +03:00
CurtizJ
5c2309132d
Merge remote-tracking branch 'upstream/master' into merging_with_ties_and_with_fill
2019-08-23 02:18:45 +03:00
CurtizJ
e069fc495d
fix limit with ties
2019-08-23 02:16:00 +03:00
CurtizJ
9a29c218ff
improvents and fixes of modifier 'with fill' for 'order by' clause
2019-08-22 17:08:14 +03:00
CurtizJ
d573c4ec3e
fix wrong check for disabling "read in order" optimization
2019-08-21 20:42:44 +03:00
Nikolai Kochetov
6d81087bdc
Remove _dummy column if it is not needed.
2019-08-21 19:53:40 +03:00
CurtizJ
9fdb9e5805
implement modifier 'with fill' for 'order by' clause
2019-08-21 15:59:03 +03:00
Nikolai Kochetov
8535ba9e47
Review fixes.
2019-08-19 21:23:37 +03:00
Nikolai Kochetov
04c17c56c2
Review fixes.
2019-08-19 21:10:40 +03:00
Nikolai Kochetov
29f4f83c39
Fix build.
2019-08-16 15:54:50 +03:00
Nikolai Kochetov
7da72261a2
Merge branch 'master' into try-to-remove-dry-run
2019-08-16 15:50:48 +03:00
alexey-milovidov
a466c7aebd
Merge pull request #6299 from CurtizJ/order-by-efficient
...
Optimizations of ranges selection while reading with enabled optimize_read_in_order.
2019-08-16 02:39:53 +03:00
CurtizJ
00d98c51c3
fix limit without order
2019-08-15 14:09:41 +03:00
CurtizJ
6ef3b5f9c7
fix usage of global syntax_result in optimizeReadInOrder
2019-08-15 13:15:04 +03:00
Nikolai Kochetov
90cb316457
Added more comments. Fix operator== in ExpressionActions.
2019-08-15 12:51:53 +03:00
Nikolai Kochetov
09dfc26087
Remove _dummy column at InterpreterSelectQuery::unifyStreams.
2019-08-15 11:50:17 +03:00
chertus
7c566f317c
refactoring: extract SelectQueryExpressionAnalyzer from ExpressionAnalyzer
2019-08-14 22:30:30 +03:00
CurtizJ
0b3d7d8032
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-14 21:26:25 +03:00
CurtizJ
a785d4a435
Merge branch 'master' of https://github.com/yandex/ClickHouse into merging_with_ties_and_with_fill
2019-08-14 20:24:47 +03:00
CurtizJ
72b80fe1f7
merging with master
2019-08-14 20:01:47 +03:00
CurtizJ
eb3a3f44d0
better avoiding of array join in optimizeReadInOrder
2019-08-14 19:15:03 +03:00
Nikolai Kochetov
b323f08907
Fix build.
2019-08-14 18:23:57 +03:00
Nikolai Kochetov
287eb633b8
Merged with master
2019-08-14 18:16:52 +03:00
Nikolai Kochetov
b5c9be75c4
Materialize constant keys in header.
2019-08-14 18:14:32 +03:00
Nikolai Kochetov
0635188104
Allow constants for RemoteBlockInputStream.
2019-08-14 18:14:32 +03:00
Nikolai Kochetov
e10f198d72
Fix build.
2019-08-14 18:14:32 +03:00
CurtizJ
22d9bd06cc
Merge branch 'dmitriiut-WITH_TIES_and_WITH_FILL' of https://github.com/dmitriiut/ClickHouse into merging_with_ties_and_with_fill
2019-08-14 16:40:07 +03:00
CurtizJ
d44d2d1731
rewrite trash code in optimizeReadInOrder and disable read in order optimization with joins
2019-08-14 15:29:21 +03:00
CurtizJ
94bca8315d
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-14 01:41:38 +03:00
chertus
15d2561ac8
more ExpressionAnalyzer refactoring
2019-08-12 22:27:09 +03:00
alexey-milovidov
8520288044
Merge pull request #6416 from 4ertus2/some
...
Refactoring: move collectUsedColumns() to SyntaxAnalyzer
2019-08-11 05:16:22 +03:00
alexey-milovidov
838c5e535f
Merge pull request #6433 from yandex/prevent-stack-overflow-in-parser
...
Fixed possible stack overflow in parser
2019-08-10 23:58:54 +03:00
Alexey Milovidov
afef5c6c70
Added stack protection; added a test
2019-08-10 20:51:47 +03:00
kreuzerkrieg
112fc71276
adding -Wshadow for GCC
2019-08-09 23:58:16 +03:00
Nikolai Kochetov
9bd949fff5
Convert streams structure to sample block in InterpreterSelectQuery.
2019-08-09 17:57:15 +03:00
chertus
e06c994b0e
refactoring: move collectUsedColumns from ExpressionAnalyzer to SyntaxAnalyzer
2019-08-09 17:50:04 +03:00
Nikolai Kochetov
78516083ac
Remove dry_run flag from InterpreterSelectQuery::executeImpl.
2019-08-09 16:42:58 +03:00
Nikolai Kochetov
a1023bebff
Fix tests.
2019-08-09 16:37:42 +03:00
Nikolai Kochetov
9ac401573f
Added InterpreterSelectQuery::getSampleBlockImpl. Disable dry_run.
2019-08-08 18:18:28 +03:00
Nikolai Kochetov
42c2833932
Added function which calculates header for execution step (InterpreterSelectQuery::getHeaderForExecutionStep). Removed InterpreterSelectQuery:;getSampleBlock from StorageDistributed and StorageMerge.
2019-08-07 16:41:36 +03:00
Nikolai Kochetov
e73ea8a131
Make InterpreterSelectQuery::analyzeExpressions static.
2019-08-06 16:00:56 +03:00
CurtizJ
cfe32ad89b
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-04 21:43:00 +03:00
Alexey Milovidov
8b85e09f06
Removed useless includes
2019-08-04 03:34:43 +03:00
Alexey Milovidov
8b8c59d71b
Simplification of #3796
2019-08-04 03:29:32 +03:00
Alexey Milovidov
224bc4df97
Minor modifications + a comment #3796
2019-08-04 03:12:17 +03:00
alexey-milovidov
b045e85469
Merge pull request #3796 from amosbird/hang
...
Fix materialized view with column defaults.
2019-08-04 03:06:40 +03:00
CurtizJ
e06a53a5d9
fix ranges selection at reading in order
2019-08-02 20:34:29 +03:00
CurtizJ
5f7ebb18ed
more optimal ranges selection at reading in order
2019-08-02 19:16:18 +03:00
Amos Bird
6db1c02bfd
Fix materialized view with column defaults.
...
https://github.com/yandex/ClickHouse/issues/448
https://github.com/yandex/ClickHouse/issues/3484
https://github.com/yandex/ClickHouse/issues/3450
https://github.com/yandex/ClickHouse/issues/2878
https://github.com/yandex/ClickHouse/issues/2285
2019-07-30 10:49:54 +08:00
CurtizJ
d69d68f065
rename setting 'optimize_pk_order' and some functions
2019-07-28 04:16:56 +03:00
CurtizJ
60289cd764
fix optimizeSortingWithPK
2019-07-27 03:15:22 +03:00
CurtizJ
cb85721cba
handle ExpressionAnalyzer exceptions, while trying to optimize order by, in case of complicated queries
2019-07-27 03:02:04 +03:00