You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Mehant Baid (JIRA)" <ji...@apache.org> on 2013/12/12 21:27:08 UTC

[jira] [Created] (DRILL-323) Drill expression parser incorrectly handles expressions that involve math functions with more than 2 inputs

Mehant Baid created DRILL-323:
---------------------------------

             Summary: Drill expression parser incorrectly handles expressions that involve math functions with more than 2 inputs
                 Key: DRILL-323
                 URL: https://issues.apache.org/jira/browse/DRILL-323
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Mehant Baid
            Assignee: Mehant Baid


While executing the following plan:
{
  head : {
    version : 1,
    generator : {
      type : "optiq",
      info : "na"
    },
    type : "APACHE_DRILL_PHYSICAL"
  },
         graph:[
         {
             @id:1,
             pop:"mock-scan",
             url: "http://apache.org",
             entries:[
                 {records: 1, types: [
                   {name: "blue", type: "BIGINT", mode: "REQUIRED"}
                 ]}
             ]
         }, {
    pop : "project",
    @id : 2,
    exprs : [ {
      ref : "output.EXPR$0",
      expr : " blue - blue + 1 "
    } ],
    child : 1
  }, {
    pop : "screen",
    @id : 3,
    child : 2
  } ]
}

we will hit the following error: "Failure while running fragment. < UnsupportedOperationException:[ Missing function implementation: [add(BIGINT-REQUIRED, BIGINT-REQUIRED, BIGINT-REQUIRED)] ]"




--
This message was sent by Atlassian JIRA
(v6.1.4#6159)