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

Average does not work with intervals

    XMLWordPrintableJSON

Details

    Description

      avg(<some-interval-value>) returns:

      Error: SYSTEM ERROR: SchemaChangeException: Failure while materializing expression.
      Error in expression at index 0. Error: Missing function implementation: [$sum0(INTERVALDAY-OPTIONAL)]. Full expression: null.
      Fragment 1:2
      [Error Id: 80171750-ac7b-4910-9319-8f4420f2b07f on localhost:31010] (state=,code=0)

      in my case this is the result of avg(<timestamp>-<timestamp>).

      Attachments

        Activity

          People

            Unassigned Unassigned
            acmeguy Stefán Baxter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: