You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Till (JIRA)" <ji...@apache.org> on 2018/03/14 23:54:00 UTC
[jira] [Updated] (ASTERIXDB-2191) Constant folding for nested
Scalar Functions
[ https://issues.apache.org/jira/browse/ASTERIXDB-2191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Till updated ASTERIXDB-2191:
----------------------------
Labels: triaged (was: )
> Constant folding for nested Scalar Functions
> --------------------------------------------
>
> Key: ASTERIXDB-2191
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-2191
> Project: Apache AsterixDB
> Issue Type: Improvement
> Components: COMP - Compiler
> Reporter: Wail Alkowaileet
> Assignee: Wail Alkowaileet
> Priority: Major
> Labels: triaged
>
> Currently, ConstantFoldingRule ignores functions that have non-constants as their arguments. That can miss some opportunities as below:
> * Query:
> {noformat}
> SELECT t
> FROM Tweets as t
> WHERE t.x = t.x;
> {noformat}
> * Plan
> {noformat}
> distribute result [$$7]
> -- DISTRIBUTE_RESULT |PARTITIONED|
> exchange
> -- ONE_TO_ONE_EXCHANGE |PARTITIONED|
> project ([$$7])
> -- STREAM_PROJECT |PARTITIONED|
> assign [$$7] <- [{"t": $$t}]
> -- ASSIGN |PARTITIONED|
> project ([$$t])
> -- STREAM_PROJECT |PARTITIONED|
> select (eq($$8, $$8))
> -- STREAM_SELECT |PARTITIONED|
> assign [$$8] <- [$$t.getField("x")]
> -- ASSIGN |PARTITIONED|
> project ([$$t])
> -- STREAM_PROJECT |PARTITIONED|
> exchange
> -- ONE_TO_ONE_EXCHANGE |PARTITIONED|
> data-scan []<-[$$9, $$t] <- TwitterDataverse.Tweets
> -- DATASOURCE_SCAN |PARTITIONED|
> exchange
> -- ONE_TO_ONE_EXCHANGE |PARTITIONED|
> empty-tuple-source
> -- EMPTY_TUPLE_SOURCE |PARTITIONED|
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)