You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2019/01/13 23:59:00 UTC

[jira] [Comment Edited] (CALCITE-2721) Support parsing of DOT + MEMBER_FUNCTION

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

Julian Hyde edited comment on CALCITE-2721 at 1/13/19 11:58 PM:
----------------------------------------------------------------

The parser tends to glom multi-part identifiers together, and it cannot tell between "myCol.myMethod(0)" and "mySchema.myFunction(0)". So, it's OK if the parser outputs the same for both, and the validator will have to unpick them, because it has sufficient information to do the job.

Is the current the parser able to handle expressions like "foo(0).bar.baz(2, 3)"?


was (Author: julianhyde):
Yes, I think that's OK. The parser tends to glom multi-part identifiers together, and it cannot tell between "myCol.myMethod(0)" and "mySchema.myFunction(0)".

Can the parser handle expressions like "foo(0).bar.baz(2, 3)"?

> Support parsing of DOT + MEMBER_FUNCTION
> ----------------------------------------
>
>                 Key: CALCITE-2721
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2721
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Rong Rong
>            Assignee: Julian Hyde
>            Priority: Major
>         Attachments: 6_17_Method_invocation.png
>
>
> Support parsing of <DOT> + <MEMBER_FUNCTION> parsing Similar to 
> {panel:title=Example}
> {{SELECT t.complex_col}}*{{.member_func()}}* {{FROM tbl;}}
> {panel}
> For more details please see: [Member Function|https://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_8001.htm#i2126584]



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