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

Adding negative sign in front of EXTRACT triggers Assertion Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • Functions - Drill
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: