Class ClusterKeyValidation

java.lang.Object
dev.frostlake.executor.commands.ClusterKeyValidation

public final class ClusterKeyValidation extends Object
Validates clustering-key expressions: every column reference must name a column of the table. Snowflake compiles the expressions even when IF EXISTS forgave a MISSING table — with no table, no reference can resolve — and the refusal is positioned at the reference itself (live-verified: error line 1 at position 31\ninvalid identifier 'NOSUCHCOL').
  • Method Details

    • requireResolvable

      public static void requireResolvable(List<FrostlakeParser.ExpressionContext> expressions, Table tableOrNull)
      Refuses the first cluster expression column reference that does not resolve in the table (null table: refuses the first reference outright).