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

Rong Rong edited comment on CALCITE-2542 at 9/8/18 4:20 PM:
------------------------------------------------------------

This might have been similar to CALCITE-2016, I actually tried to modify the 
{{Parser.jj}} to allow generically a {{<DOT>}} operator afterwards. Seems like 
it also breaks some validation test which the SQL are suppose to be invalid. 
For example:
{code}
SELECT emp.*^.^xx FROM table
{code}
should not be allowed.
Please see:
https://github.com/apache/calcite/compare/master...walterddr:CALCITE-func-dot


was (Author: walterddr):
This might have been similar to CALCITE-2016, I actually tried to modify the 
{{Parser.jj}} to allow generically a {{<DOT>}} operator afterwards. Seems like 
it also breaks some validation test which the SQL are suppose to be invalid. 
For example:
{code}
SELECT emp.*^.^xx FROM table
{code}
should not be allowed.


> SqlNode AtomicRowExpression + DOT operation does not work for constructed ROWs
> ------------------------------------------------------------------------------
>
>                 Key: CALCITE-2542
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2542
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Rong Rong
>            Assignee: Julian Hyde
>            Priority: Major
>
> It seems like some of the {{AtomicRowExpression}} (such as 
> {{NamedFunctionCall}}) or rowSpan with {{<ROW>}} operator does not allow 
> following DOT operators in Parser.jj
> To named a few, the following does not parse correctly.
> {code}
> SELECT ROW(col1, col2, col3).col1 FROM t
> SELECT myFunc(arg1, arg2).col1 FROM t
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to