Add min/max statistics to the metastore for pruning

Offen
#5,989 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
rust
Bereich
backend

Rechercherichtung

Es ist keine Datei oder kein Test benannt. Beginne damit, die Verarbeitung der Split-Paketierung und die Handhabung von Metastore-Metadaten nachzuverfolgen, und ermittle anschließend, wie die vorgeschlagene Konfiguration und die Speicheroptionen für numerische Statistiken in diese Pfade passen. Als erledigt gilt die Aufgabe, wenn numerische Min-/Max-Werte für konfigurierte Felder aufgezeichnet werden und das Pruning unterstützen können.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

Is your feature request related to a problem? Please describe.
The current pruning mechanisms are time, tag and partitioning. We often run into queries that end up having to target every split in the index because we can leverage neither of these. A typical example is when we have two time dimensions, event time and ingestion time. Only one can be used as time in QW, but we might want to query on the second one.

Describe the solution you'd like
I would like to add a configuration (e.g stats_fields) in the doc mapping similar to tag_fields.

  • it would be only compatible with numerical fields
  • when packaging the split, we would compute min and max and add it to the metadata
  • we would store the min and max in the metastore by either
    • adding a field to split_metadata_json. This is simple to setup, we could probably still push down the pruning to the metastore but it would be quite expensive.
    • using an encoding similar to tags, with something like a Vec where min and max values would be encoded
    • use a JSON type

Describe alternatives you've considered
We can come up with workarounds using tags. For instance for the problem of the secondary time dimension, we could record the ingestion day as tag. But its less flexible, harder to setup for users, and more costly.

Vorherrschende Sprache
Rust
Sterne
11.8k
Forks
628
Ø Merge
2 T. 22 Std.
Gemergte PRs (30 T.)
50

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus quickwit-oss/quickwit

Alle Issues in quickwit-oss/quickwit

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.