Commit Graph

520 Commits

Author SHA1 Message Date
zhang2014
32cc611f5d ISSUES-863 fix predicate optimizer not work for asterisk 2018-08-24 10:05:43 +08:00
Alexey Milovidov
465ff07398 Merge branch 'master' of github.com:yandex/ClickHouse 2018-08-20 18:50:09 +03:00
Alexey Milovidov
2717185991 Modified names #2015 2018-08-20 18:49:39 +03:00
Nikolai Kochetov
391b4b5927 Merged with master. 2018-08-20 15:25:06 +03:00
Alexey Milovidov
5410f73ba7 Fixed warnings #2015 2018-08-15 00:49:51 +03:00
alexey-milovidov
ce9c6a5ab3
Merge branch 'master' into feature/ISSUES-863 2018-08-15 00:34:23 +03:00
alexey-milovidov
e7b671ec98
Merge branch 'master' into feature/ISSUES-863 2018-08-15 00:10:21 +03:00
zhang2014
62a85536b4 ISSUES-2786 add asterisk_left_columns_only setting 2018-08-13 11:02:50 +08:00
zhang2014
d7cd77640d ISSUES-2786 fix replace asterisk with join query 2018-08-13 11:01:55 +08:00
Alexey Milovidov
36db216abf Preparation for extra warnings [#CLICKHOUSE-2] 2018-08-10 07:02:56 +03:00
Alexey Milovidov
2016374d20 Merging #2226 2018-08-05 10:05:43 +03:00
Alexey Milovidov
5bce1d78b0 Correct number of columns is returned from an element of UNION ALL inside a subquery if some column was queried more than once #2786 2018-08-05 06:28:31 +03:00
zhang2014
d61c53fc3e ISSUES-863 support predicate push down with subquery 2018-08-01 17:56:02 +08:00
alexey-milovidov
405d7f9232
Merge pull request #2742 from yandex/support-join-on-syntax
Support join on syntax
2018-08-01 00:30:46 +03:00
Nikolai Kochetov
9359ae7650 Fix test. 2018-07-31 20:34:17 +03:00
alexey-milovidov
f6b9c46d24
Update ExpressionAnalyzer.cpp 2018-07-31 06:04:35 +03:00
Nikolai Kochetov
368e7d0b08 Added joined_block_actions to SubqueryForSet for join subquery. [#CLICKHOUSE-3761]
3Added joined_block_actions to join expression action.
2018-07-30 22:41:27 +03:00
Nikolai Kochetov
bc054f2247 Fix tests. [#CLICKHOUSE-3761] 2018-07-30 22:40:43 +03:00
Alexey Milovidov
bbdd780be0 Fixed error when IN is used as an aggregation key [#CLICKHOUSE-3855] 2018-07-27 21:14:58 +03:00
Nikolai Kochetov
7d9ebae2c2 Better comments. 2018-07-27 20:11:56 +03:00
Nikolai Kochetov
b5d6240646 Merged with master 2018-07-27 19:21:43 +03:00
Nikolai Kochetov
5123e0f86f Remove joined table qualifiers from column names. [#CLICKHOUSE-3761] 2018-07-27 19:03:16 +03:00
Nikolai Kochetov
65dcca22a2 Substitute aliases for required columns in ExpressionAnalyzer. [#CLICKHOUSE-3761] 2018-07-27 19:02:56 +03:00
Nikolai Kochetov
11d66d8733 Support expressions for right JOIN keys. [#CLICKHOUSE-3761] 2018-07-27 19:02:42 +03:00
Nikolai Kochetov
98e5821769 Resolve qualified names for JOIN ON expression. [#CLICKHOUSE-3761] 2018-07-27 19:02:23 +03:00
Nikolai Kochetov
cc613d7ad3 Added JOIN keys to the list of needed columns for JOIN expression action. 2018-07-27 19:02:20 +03:00
Nikolai Kochetov
391ff31829 Added actions for JOIN key columns. [#CLICKHOUSE-3761] 2018-07-27 19:02:10 +03:00
Nikolai Kochetov
5058d1a345 Added columns from join on key of right table if they have different name from left block key in merged block. [#CLICKHOUSE-3761] 2018-07-27 19:01:48 +03:00
Nikolai Kochetov
92719e1f48 Supported JOIN ON syntax for single and chain in expression analyzer. [#CLICKHOUSE-3761] 2018-07-27 19:01:25 +03:00
Nikolai Kochetov
fd4d992294 Supported JOIN ON syntax for single and chain in expression analyzer. 2018-07-23 19:01:25 +03:00
Nikolai Kochetov
dd4ac9f3f1 Supported JOIN ON syntax for single and chain in expression analyzer. 2018-07-23 18:57:52 +03:00
Nikolai Kochetov
0f4c8e2f0a Supported JOIN ON syntax for single and chain in expression analyzer. 2018-07-23 18:56:43 +03:00
Nikolai Kochetov
bbd13a25e4 Supported JOIN ON syntax for single and chain in expression analyzer. 2018-07-23 18:54:10 +03:00
Alexey Milovidov
a4d699e7f5 Comment [#CLICKHOUSE-2] 2018-07-20 18:50:39 +03:00
Alexey Milovidov
31dbbb05d2 Removed useless setting #2677 2018-07-19 23:22:49 +03:00
alexey-milovidov
164425d1ec
Fix performance regression with prepared sets when they are used inside another subquery. (#2677)
* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Added documentation about ClickHouse testing (draft) [#CLICKHOUSE-2]

* Attempt to fix performance regression [#CLICKHOUSE-3796]

* Removed debug output [#CLICKHOUSE-3796]

* Removed debug output [#CLICKHOUSE-3796]

* Updated documentation about ClickHouse testing [#CLICKHOUSE-2]

* Revert "Updated documentation about ClickHouse testing [#CLICKHOUSE-2]"

This reverts commit 9eafc13f3b.

* Revert "Added documentation about ClickHouse testing (draft) [#CLICKHOUSE-2]"

This reverts commit e28ad4b5fe.

* Fixed test #2677

* Update InterpreterSelectQuery.cpp
2018-07-19 16:36:21 +03:00
Alexey Milovidov
e6c293ab60 Added setting "use_index_for_in_with_subqueries_max_values" #2571 2018-07-04 20:28:52 +03:00
Alexey Milovidov
c99e717632 Fixed bad code #2571 2018-07-04 20:28:52 +03:00
Nikolai Kochetov
6e5e57353a Review fixes. [#CLICKHOUSE-3694] #2156 2018-06-29 19:18:50 +03:00
Nikolai Kochetov
bd4a899dd3 Reduced the number of IAST::getColumnName() calls in ExpressionAnalyzer. 2018-06-28 20:25:09 +03:00
Nikolai Kochetov
bd7c72de5c Spelling. 2018-06-25 16:08:35 +03:00
Nikolai Kochetov
ba4cf6faf0 Merged with master. 2018-06-25 15:08:21 +03:00
Alexey Milovidov
b9b89a5590 Less dependencies [#CLICKHOUSE-2] 2018-06-05 22:46:49 +03:00
Nikolai Kochetov
9a1c286ade Changed prepared set indexation from AST* to StringRange. [#CLICKHOUSE-3734] 2018-05-17 17:54:43 +03:00
Nikolai Kochetov
6715b945d9 Allow using of function which returs tuple for IN. [#CLICKHOUSE-3730] 2018-05-15 18:38:04 +03:00
Nikolai Kochetov
aaad77a602 Fixed unnecessary creation of prepared set for function arguments other than second for in or global in. [#CLICKHOUSE-3730] 2018-05-15 18:38:04 +03:00
Nikolai Kochetov
e6adcfaad5 Fixed element types for explicit set in IN function. [#CLICKHOUSE-3730] 2018-05-15 18:38:04 +03:00
Nikolai Kochetov
651bac519c Fixed element types for explicit set in IN function.
Fixed element types for explicit set in IN function. [#CLICKHOUSE-3730]
2018-05-15 18:38:04 +03:00
Tsarkova Anastasia
7c9741ed5b Fix style. 2018-05-01 15:31:38 +02:00
Tsarkova Anastasia
fe0753a128 Minor fixes, adding test case. 2018-05-01 15:24:43 +02:00
Tsarkova Anastasia
210a389592 Getting rid of measure action, other small fixes applied. 2018-04-30 21:33:32 +02:00
Tsarkova Anastasia
2c96b1c684 Add comments. Change projection restoring function. 2018-04-29 15:49:58 +02:00
Tsarkova Anastasia
12c8014e5c Conditional computations. 2018-04-24 09:16:39 +02:00
Nikolai Kochetov
7a62bb9267 added comments and fixed tests build 2018-04-23 22:41:10 +03:00
Nikolai Kochetov
233ac6c599 style fixes 2018-04-20 22:38:34 +03:00
Nikolai Kochetov
a6375d6155 merged with master 2018-04-20 17:15:03 +03:00
Alexey Milovidov
d71b3a95ef Renamed PK to Key where it's appropriate #2246 2018-04-20 03:20:50 +03:00
Alexey Milovidov
ce0ac3f8f8 Fixed error with Sets, part 2 #2246 2018-04-20 00:34:04 +03:00
Nikolai Kochetov
dd10c2073c merged with master 2018-04-19 18:10:44 +03:00
Alexey Milovidov
3eff0184fa Added set size checking when set from subquery is used for index; removed harmful feature for special support of (a, b) IN (SELECT (a, b)) instead of (a, b) IN (SELECT a, b) [#CLICKHOUSE-2] 2018-04-18 22:38:40 +03:00
Nikolai Kochetov
41229b201b Merge branch 'master' into fix-header-for-union-stream-in-distributed-2 2018-04-13 23:11:04 +03:00
Nikolai Kochetov
325f16f8a5 fix perf 2018-04-13 23:09:13 +03:00
Nikolai Kochetov
c9abeed3f5 remove unused columns from prewhere actions [#CLICKHOUSE-3694] #2156 2018-04-11 22:08:53 +03:00
Alexey Milovidov
30dd11f8ca Removed (obsolete) special handling for Arrays in the left hand side of IN (continued) #2113 2018-04-06 03:25:14 +03:00
Alexey Milovidov
6452a3bb76 Removed (obsolete) special handling for Arrays in the left hand side of IN [#CLICKHOUSE-2] 2018-04-05 23:52:01 +03:00
Nikolai Kochetov
dc22b881a7 added columns_added_by_join into in with pk [#CLICKHOUSE-3680] 2018-04-04 22:38:42 +03:00
Nikolai Kochetov
fde23f7975 added array_join_columns [#CLICKHOUSE-3680] 2018-04-04 22:38:42 +03:00
Nikolai Kochetov
7d0602c279 added columns from array join to aggregated_columns [#CLICKHOUSE-3680] 2018-04-04 22:38:42 +03:00
Nikolai Kochetov
4f7d262997 added aggregated_columns to mayBenefitFromIndexForIn [#CLICKHOUSE-3680] 2018-04-04 00:17:22 +03:00
Vitaliy Lyudvichenko
1f28410490 Fixed false positive error messages for queries with IN and ARRAY JOIN. [#CLICKHOUSE-2] 2018-03-16 17:11:49 +03:00
Alexey Milovidov
cf6112fd37 Fixed half of bad code [#CLICKHOUSE-2] 2018-03-16 09:39:32 +03:00
Alexey Milovidov
dc4a9be6fa Fixed error with "makeSetsForIndex" [#CLICKHOUSE-2] 2018-03-16 09:33:23 +03:00
Alexey Milovidov
73b04a4d27 Revert "Attempt to fix bad code, try 2 [#CLICKHOUSE-3649] #1830"
This reverts commit eb0095a7b9.
2018-03-16 07:37:21 +03:00
Alexey Milovidov
eb0095a7b9 Attempt to fix bad code, try 2 [#CLICKHOUSE-3649] #1830 2018-03-16 07:13:24 +03:00
Alexey Milovidov
83b775fbf5 Attempt to fix bad code, try 1 [#CLICKHOUSE-3649] #1830 2018-03-16 07:10:38 +03:00
Alexey Milovidov
f4c54f02a5 Removed trashy, obsolete code [#CLICKHOUSE-3649] 2018-03-16 07:00:00 +03:00
Alexey Milovidov
3a8d6c28ef Attempt to fix a regression [#CLICKHOUSE-2] 2018-03-16 00:44:09 +03:00
Vitaliy Lyudvichenko
e77701bd4b Enable alisas for sets and tuples for IN operator. [#CLICKHOUSE-3]
Resolves #2044
2018-03-15 21:44:02 +03:00
Alexey Zatelepin
5906c9a988 rename for clarity 2018-03-13 18:00:28 +03:00
Alexey Zatelepin
fdffbe53ac encapsulate ColumnsDeclaration [#CLICKHOUSE-3241] 2018-03-13 17:41:25 +03:00
Alexey Zatelepin
78d92f6794 add some useful methods, rename for clarity [#CLICKHOUSE-3241] 2018-03-12 22:10:13 +03:00
Alexey Zatelepin
71642b0880 use ColumnsDescription everywhere [#CLICKHOUSE-3241] 2018-03-12 22:07:48 +03:00
Alexey Milovidov
5ff433b670 Merged Limits to Settings [#CLICKHOUSE-2021] 2018-03-11 03:15:26 +03:00
Alexey Milovidov
3f8ef38b41 Fixed wording #245 2018-03-10 02:23:15 +03:00
Alexey Milovidov
310b9104b8 Removed useless method [#CLICKHOUSE-2] 2018-03-08 05:16:03 +03:00
alexey-milovidov
9b4ea7acde
Merge pull request #1933 from zhang2014/fix/ISSUES-1386
ISSUES-1386 add illegal column exception when drop exist depend
2018-03-02 22:33:57 +03:00
zhang2014
4a38e97ed6 Merge branch 'master' into fix/ISSUES-1386 2018-03-02 18:03:18 +08:00
Alexey Milovidov
22bbc9f08c Added limit on size of AST after expansion of aliases [#CLICKHOUSE-18] 2018-03-02 09:33:17 +03:00
Alexey Milovidov
f7e0912d81 Added support for LIMIT BY arbitary expressions [#CLICKHOUSE-3613] #1947 2018-03-01 08:24:56 +03:00
Alexey Milovidov
e604be2799 Fixed error #1947 2018-03-01 07:57:51 +03:00
Alexey Milovidov
e0798edc09 Better UNION ALL: development #1947 2018-03-01 04:25:06 +03:00
Alexey Milovidov
672fc3a441 Better UNION ALL: development #1947 2018-02-28 07:49:39 +03:00
Alexey Milovidov
f4dbca54a1 Fixed bad code #1947 2018-02-28 07:30:27 +03:00
Alexey Milovidov
9ea0a603a0 Better UNION ALL: development #1947 2018-02-28 04:29:55 +03:00
Alexey Milovidov
17ffe77b8c Better UNION ALL: development #1947 2018-02-28 00:03:28 +03:00
Alexey Milovidov
d4937621d3 Better UNION ALL: development #1947 2018-02-27 22:02:13 +03:00
Alexey Milovidov
8d72ca25d5 Better UNION ALL: development #1947 2018-02-27 22:00:55 +03:00
Alexey Milovidov
5d27e43f96 Better UNION ALL: development #1947 2018-02-27 00:00:42 +03:00
Alexey Milovidov
4dee4770eb Better UNION ALL: development #1947 2018-02-26 13:00:56 +03:00
Alexey Milovidov
437ba4856b Better UNION ALL: development #1947 2018-02-26 12:55:14 +03:00