Package org.elasticsearch.xpack.esql.optimizer.rules.physical.local
package org.elasticsearch.xpack.esql.optimizer.rules.physical.local
-
ClassDescriptionWhen a spatial distance predicate can be pushed down to lucene, this is done by capturing the distance within the same function.A rule that moves `VALUES(dimension-field)` aggregations in time-series aggregations to execute after the aggregation, reading the dimension fields once each group.Materialize the concrete fields that need to be extracted from the storage until the last possible moment.When deciding if a filter or topN can be pushed down to Lucene, we need to check a few things on the field.Pushes count aggregations on top of query and tags to source.Looks for the case where certain stats exist right before the query and thus can be pushed down.We handle two main scenarios here: Queries like `FROM index | SORT field` will be pushed to the source if the field is an indexed field.
ReplaceRoundToWithQueryAndTagsbuilds a list of ranges and associated tags base on the rounding points defined in aRoundTofunction.This rule is responsible for marking spatial fields to be extracted from doc-values instead of source values.This rule is responsible for marking spatial shape fields whose extent can be extracted from the binary representation encoded byGeometryDocValueWriter.