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 Dolzhenko (JIRA)" <ji...@apache.org> on 2015/02/11 16:33:12 UTC

[jira] [Comment Edited] (CALCITE-588) Allow TableMacro to consume Maps and Collections

    [ https://issues.apache.org/jira/browse/CALCITE-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14316365#comment-14316365 ] 

Vladimir Dolzhenko edited comment on CALCITE-588 at 2/11/15 3:32 PM:
---------------------------------------------------------------------

It looks good, but there is a small issue :

MAP[ 'key', 'value' ] is parsed as Map<String, String> contains string literals with single quotes:
{code} map.get( 'key' ) .equals ( 'value' ) {code}

while expected w/o them


was (Author: vladimir.dolzhenko):
It looks good, but there is a small issue :

MAP[ 'key', 'value' ] is parsed as Map contains string literals with single quotes:
{code} map.get( 'key' ) .equals ( 'value' ) {code}

while expected w/o them

> Allow TableMacro to consume Maps and Collections
> ------------------------------------------------
>
>                 Key: CALCITE-588
>                 URL: https://issues.apache.org/jira/browse/CALCITE-588
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Vladimir Dolzhenko
>            Assignee: Julian Hyde
>             Fix For: 1.1.0-incubating
>
>
> Actually it is not possible to pass to TableMacro smth like
> {code}TABLE(MY_TABLE('simpleName', MAP[ 'key', 'value', 'anotherKey', 'anotherValue' ] )){code}
> SqlUserDefinedTableMacro.convertArguments leads to IllegalArgumentException: _All arguments of call to macro XXX  should be literal._



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)