Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3719

Adding negative sign in front of EXTRACT triggers Assertion Error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: Functions - Drill
    • Labels:
      None

      Description

      A simple repo:
      When we typing

      select -EXTRACT(DAY FROM birth_date) from cp.`employee.json`;
      

      we probably mean

      select -1 * EXTRACT(DAY FROM birth_date) from cp.`employee.json`;
      

      However, the first one will trigger assertion error:
      Error: SYSTEM ERROR: AssertionError: todo: implement syntax PREFIX(-(EXTRACT(FLAG(DAY), $0)))

        Attachments

          Activity

            People

            • Assignee:
              seanhychu Sean Hsuan-Yi Chu
              Reporter:
              seanhychu Sean Hsuan-Yi Chu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: