Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4599

Support push-down of "date histogram aggregation" in elastic search adapter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • elasticsearch-adapter
    • None

    Description

      "date histogram aggregation" is one of the most popular analysis function of elastic search. It is not pushed down to elastic search in current calcite es adapter. Is there any plan to support it? Given the below example, if it can be pushed down to es, the query should be very efficient. 

      select count as cc from t group by date_histogram(`@timestamp`, interval '5' minute)

      Another question is currently there seems no proper sql function/keyword for date_histogram.  One possible option is TUMBLE function. Is it right? 

      Attachments

        Activity

          People

            Unassigned Unassigned
            jackyyin Jacky Yin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: