You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2013/05/22 10:01:21 UTC

[jira] [Created] (DRILL-66) In "order" logical operator, specify whether nulls collate first or last

Julian Hyde created DRILL-66:
--------------------------------

             Summary: In "order" logical operator, specify whether nulls collate first or last
                 Key: DRILL-66
                 URL: https://issues.apache.org/jira/browse/DRILL-66
             Project: Apache Drill
          Issue Type: New Feature
            Reporter: Julian Hyde
            Priority: Minor


To support SQL "nulls collate [first|last]" syntax (e.g. "select * from emp order by deptId desc nulls last, name asc nulls first"), add a "nullCollation" property to the "order" operator. Syntax would be as follows:

{ @id†: <opref>, op: “order”, 
  input†: <input>,
  within*: <name>,
  ordering: [
    {order: <desc|asc>, nullCollation: <first|last>, expr: <expr>}, ...
  ]
}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira