Package org.elasticsearch.xpack.esql.optimizer.rules.logical.local
package org.elasticsearch.xpack.esql.optimizer.rules.logical.local
-
ClassesClassDescriptionSimplify IsNotNull targets by resolving the underlying expression to its root fields.The vast majority of aggs ignore null entries - this rule adds a pushable filter, as it is cheap to execute, to filter these entries out to begin with.Local aggregation can only produce intermediate state that get wired into the global agg.Look for any fields used in the plan that are missing locally and replace them with null.Break TopN back into Limit + OrderBy to allow the order rules to kick in.