elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.24k stars 24.85k forks source link

ESQL: LOOKUP followups #109353

Open nik9000 opened 5 months ago

nik9000 commented 5 months ago

Description

Because LOOKUP is super experimental we're going to merge without doing a few things. These are all things we're ok doing after merging, but want to do before too long

TODO next:

TODO soon:

TODO before we drop experimental:

TODO eventually:

elasticsearchmachine commented 5 months ago

Pinging @elastic/es-analytical-engine (Team:Analytics)

alex-spies commented 1 month ago

There's a bug with optimization rules looping. Good find @dgieselaar !

POST _query
{
  "query": """
    ROW id = [ "a", "b" ] 
    | LOOKUP joins ON id
    | MV_EXPAND id
  """,
  "tables": {
    "joins": {
      "id": {
        "keyword": [ "a", "b"]
      },
      "join": {
        "keyword": [ "c", "d" ]
      }
    }
  }
}

This results in

Rule execution limit [100] reached