Ivan
118bea2be6
Enable predicate push-down optimization by default. ( #4846 )
...
* Enable predicate push-down optimization by default.
* Forbid push-downs for some JOIN cases.
* Fix existing tests
* Forbid optimization if a select query has ARRAY JOIN on any side.
2019-04-18 13:39:25 +03:00
chertus
e53a50e01a
fix pushdown & build
2019-04-09 19:49:52 +03:00
chertus
82dc1fb1db
rewrite ASTSelectQuery (consistent children)
2019-04-09 17:22:35 +03:00
zhang2014
0096ef3524
try fix
2019-03-29 22:25:37 +08:00
Ivan Lezhankin
d1ead22073
Rename As<…> → as<…>
2019-03-11 16:22:51 +03:00
Ivan Lezhankin
a7e838e328
Replace all other casts to method IAST::As<Derived>
...
Also remove some redundant methods like IsIdentifier() et. al.
2019-03-11 15:49:39 +03:00
Ivan Lezhankin
0e325c7a4a
Replace const typeid_casts with As<Derived>() method invocations
2019-03-08 12:48:20 +03:00
Ivan Lezhankin
09af5512b8
Implement push-down inside join-statement
2019-02-26 13:56:19 +03:00
Ivan Lezhankin
0a443399a0
Implement the debug query "ANALYZE"
...
that prints out the query after syntax analysis.
Should be helpful for tests.
2019-02-26 13:17:25 +03:00
zhang2014
597ae0b937
ISSUES-4389 fix lambda function with predicate optimizer
2019-02-15 17:04:02 +08:00
chertus
93e0621a2c
fix wrong query in push down test
2019-02-12 18:08:21 +03:00
chertus
1de1192aa8
move asterisks extraction to TranslateQualifiedNamesVisitor (before column names normalisation)
2019-02-11 17:19:09 +03:00
chertus
668b220258
fix push down
2019-02-08 18:37:43 +03:00
chertus
db9a2060bf
get rid of custom JOIN ON names qualification
2019-02-07 22:18:40 +03:00
zhang2014
cac52f8312
ISSUES-3885 remove useless methods
2019-01-31 07:23:22 +08:00
zhang2014
3af26ca070
ISSUES-3885 better test & fix isStateful bug
2019-01-30 12:49:00 +08:00
zhang2014
ddbd384f32
ISSUES-3885 mark stateful function & do not optimize their predicate
2019-01-30 12:04:28 +08:00
chertus
091efcda95
add IdentifierSemantic and PredicateExpressionsOptimizer refactoring
2019-01-25 18:42:24 +03:00
chertus
5289c1337e
child free ASTIdentifier
2019-01-17 20:01:48 +03:00
chertus
c53854125f
QueryNormalizer with visitor interface
2019-01-11 17:09:23 +03:00
chertus
275d6b2fcc
some QueryNormalizer refactoring
2019-01-10 21:58:55 +03:00
Alexey Milovidov
19f4652959
Fixed bugs found by PVS-Studio
2019-01-09 18:44:20 +03:00
chertus
9236e94e1b
ExecuteScalarSubqueriesVisitor via InDepthNodeVisitor
2018-12-10 16:02:45 +03:00
chertus
6fad51d642
QueryAliasesMatcher via InDepthNodeVisitor (bottom to top) CLICKHOUSE-3996
2018-12-06 22:02:42 +03:00
chertus
ff8fb077a4
InDepthNodeVisitor: extract AST traverse from visitor logic CLICKHOUSE-3996
2018-12-06 18:29:55 +03:00
Alexey Milovidov
dbbacf4f87
Added more style checks [#CLICKHOUSE-3]
2018-11-23 21:52:00 +03:00
zhang2014
c23447ba3a
ISSUES-1777 qualified subqueries when optimize predicate
2018-11-15 23:23:44 +08:00
chertus
50d9a6e5d5
refactoring: unify QueryAliasesVisitor with other AST visitors
2018-11-02 18:09:15 +03:00
chertus
4ff0391ca6
DatabaseAndTableWithAlias - the only place for db & table expraction from AST
2018-10-30 19:31:21 +03:00
chertus
95c618b163
ExpressionAnalyzer: remove duplicated code
2018-10-26 18:13:02 +03:00
alexey-milovidov
9c3278f378
Merge pull request #3400 from zhang2014/fix/ISSUES-2312
...
ISSUES-2312 fix nested view & joined view without database
2018-10-23 11:21:29 +03:00
chertus
a32e06d298
more ExpressionAnalyzer refactoring [CLICKHOUSE-3996]
2018-10-18 18:03:14 +03:00
zhang2014
133363e8e3
ISSUES-2312 fix nested view & joined view without database
2018-10-17 14:35:16 +08:00
chertus
ec8d3b388d
move DumpASTNode to own file, style fixes [CLICKHOUSE-4001]
2018-10-09 17:32:11 +03:00
chertus
4c8112138c
Merge branch 'master' into joins
2018-09-28 20:02:25 +03:00
chertus
59df909f87
more ast debug info
2018-09-28 18:01:13 +03:00
chertus
669ab71502
rename files according to class name
2018-09-28 13:52:08 +03:00
chertus
57d2c9db60
AST debug stuff: DumpASTNode, TranslateQualifiedNamesVisitor, hide AST explain command [CLICKHOUSE-4001]
2018-09-27 22:25:18 +03:00
zhang2014
b35ab511cb
ISSUES-3225 fix alias conflict when predicate optimization
2018-09-27 14:29:38 +08:00
zhang2014
f3dcc2ef41
ISSUES-3145 support qualified asterisk
2018-09-24 23:28:18 +08:00
zhang2014
25f79593a2
ISSUES-3105 fix some bugs in the predicate optimizer
2018-09-13 20:08:27 +08:00
zhang2014
cdc4c65adc
ISSUES-2906 support join for table function
2018-08-24 15:40:09 +08:00
zhang2014
21528697f8
ISSUES-863 turn off enable_optimize_predicate_expression
2018-08-24 13:30:49 +08:00
zhang2014
bf517d5523
ISSUES-863 fix failure tests
2018-08-24 12:11:32 +08:00
zhang2014
32cc611f5d
ISSUES-863 fix predicate optimizer not work for asterisk
2018-08-24 10:05:43 +08:00
Alexey Milovidov
2717185991
Modified names #2015
2018-08-20 18:49:39 +03:00
Alexey Milovidov
5410f73ba7
Fixed warnings #2015
2018-08-15 00:49:51 +03:00
Alexey Milovidov
03af27a218
Fixed warnings #2015
2018-08-15 00:48:39 +03:00
zhang2014
d61c53fc3e
ISSUES-863 support predicate push down with subquery
2018-08-01 17:56:02 +08:00