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.The rule checks if the join's performed on a field which is aliased to null (in type or value); if that's the case, it prunes the join, replacing it with an Eval - returning aliases to null for all the fields added in by the right side of the Join - plus a Project on top of it.Look for any fields used in the plan that are missing and replaces them with null or look for fields that are constant.Break TopN back into Limit + OrderBy to allow the order rules to kick in.