You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Daniel Barclay (Drill) (JIRA)" <ji...@apache.org> on 2015/08/28 23:35:45 UTC

[jira] [Commented] (DRILL-3704) Document precedence of operators in Drill

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

Daniel Barclay (Drill) commented on DRILL-3704:
-----------------------------------------------

For determining the precedence (for documenting it):

The root of the expression hierarchy seems to be the non-terminal "<value expression>" in the SQL specification's grammar.  (It's at least the recursion entry point, where <parenthesized value expression> leads back to <value expression>.)

Traversing through grammar productions from that starting point, or Drill's parser's grammar's equivalent, should reveal the precedence of operators and other expression constructs in Drill.

> Document precedence of operators in Drill
> -----------------------------------------
>
>                 Key: DRILL-3704
>                 URL: https://issues.apache.org/jira/browse/DRILL-3704
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Abhishek Girish
>            Assignee: Kristine Hahn
>
> I couldn't find documentation of precedence of SQL operators in Apache Drill. If they aren't added already, we should include them similar to
> (1) https://docs.oracle.com/cd/E17952_01/refman-5.1-en/operator-precedence.html
> (2) https://msdn.microsoft.com/en-us/library/ms190276.aspx
> (3) https://dev.mysql.com/doc/refman/5.0/en/operator-precedence.html



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