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

Vladimir Dolzhenko commented on CALCITE-588:
--------------------------------------------

The actual workaround (to me) is to use eval( Map<SqlLiteral, SqlLiteral> ) and 
after that manually translate to Map<String, String> handling 
SqlCharStringLiteral - so it is quite unclear that in case of eval(Map<String, 
String>) it would be converted with single quotes in it.

> 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)

Reply via email to