Class InfoCommandPlanUtils

java.lang.Object
org.elasticsearch.xpack.esql.plan.logical.InfoCommandPlanUtils

public final class InfoCommandPlanUtils extends Object
Shared helpers for MetricsInfo and TsInfo plan construction.

Info commands require _doc metadata on the source relation so logical optimizers retain it when union-type resolution injects Eval+Project nodes below the command (see #145766).

  • Method Details

    • injectDocAttribute

      public static LogicalPlan injectDocAttribute(Source source, LogicalPlan input)
      Ensures the TS source relation beneath an info command requests _doc metadata.