Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date histogram API discrepancies between OpenSearch and Elasticsearch #3250

Closed
fmassot opened this issue May 1, 2023 · 1 comment
Closed
Labels
bug Something isn't working elasticsearch-api

Comments

@fmassot
Copy link
Contributor

fmassot commented May 1, 2023

For airmail project, we need to support the OpenSearch API.

The date histogram OpenSearch uses the interval field:

json
{
  "size": 0,
  "aggs": {
    "logs_per_month": {
      "date_histogram": {
        "field": "@timestamp",
        "interval": "month"
      }
    }
  }
}

Ref

But tantivy supports only fixed_interval or calendar_interval. This corresponds to ES API. The interval field was deprecated in version 7.

We have two solutions:

  • support the interval field in tantivy
  • when parsing aggregation in Quickwit, we fix the query so that tantivy can run.

I suggest the first solution as the problem is "relatively" simple.

@fmassot fmassot added bug Something isn't working wontfix This will not be worked on elasticsearch-api and removed wontfix This will not be worked on labels May 1, 2023
@fulmicoton
Copy link
Contributor

Closed as not wanted. this feature is deprecated in both elastic and opensearch

@fulmicoton fulmicoton closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working elasticsearch-api
Projects
No open projects
Development

No branches or pull requests

2 participants