Class UnresolvedPattern

All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable, Unresolvable

public class UnresolvedPattern extends UnresolvedAttribute
When a KEEP or a DROP receives a wildcard pattern, this is provided to them as an UnresolvedNamePattern. This is run against the available attributes names. In case nothing matches, the resulting attribute would be an UnresolvedAttribute, which ends up being reported as to the user in a failure message. However, in case unmapped fields are enabled, an UnresolvedAttribute isn't sufficient, as we the analyzer wouldn't know.
  • Constructor Details

    • UnresolvedPattern

      public UnresolvedPattern(Source source, String name)
    • UnresolvedPattern

      public UnresolvedPattern(Source source, @Nullable String qualifier, String name, @Nullable NameId id, @Nullable String unresolvedMessage)
  • Method Details

    • withUnresolvedMessage

      public UnresolvedPattern withUnresolvedMessage(String unresolvedMessage)
      Overrides:
      withUnresolvedMessage in class UnresolvedAttribute
    • info

      protected NodeInfo<? extends UnresolvedPattern> info()
      Description copied from class: Node
      Normally, you want to use one of the static create methods to implement this.

      For QueryPlans, it is very important that the properties contain all of the expressions and references relevant to this node, and that all the properties are used in the provided constructor; otherwise query plan transformations like QueryPlan#transformExpressionsOnly(Function) will not have an effect.

      Overrides:
      info in class UnresolvedAttribute