You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Vladimir Sitnikov (JIRA)" <ji...@apache.org> on 2014/12/13 12:41:13 UTC
[jira] [Created] (CALCITE-529) Allow to pass java object via
rexBuilder.makeLiteral()
Vladimir Sitnikov created CALCITE-529:
-----------------------------------------
Summary: Allow to pass java object via rexBuilder.makeLiteral()
Key: CALCITE-529
URL: https://issues.apache.org/jira/browse/CALCITE-529
Project: Calcite
Issue Type: Bug
Affects Versions: 1.0.0-incubating
Reporter: Vladimir Sitnikov
Assignee: Julian Hyde
Motivation: Rex is simpler that linq4j. For instance, sometimes it is easier to create a {{ProjectRel}} rather than lower the expression to low-level linq4j.
For example: https://github.com/vlsi/mat-calcite-plugin/blob/master/MatCalcitePlugin/src/com/github/vlsi/mat/optiq/rules/InstanceAccessByClassIdRule.java#L43
The problem is to pass non-literal java object to enumerable/interpreter conventions.
For enumerable the implementation can use stash. For interpreter it can use the value as is, etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)