Package dev.frostlake.executor.commands
Class ClusterKeyValidation
java.lang.Object
dev.frostlake.executor.commands.ClusterKeyValidation
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 Summary
Modifier and TypeMethodDescriptionstatic voidrequireResolvable(List<FrostlakeParser.ExpressionContext> expressions, Table tableOrNull) Refuses the first cluster expression column reference that does not resolve in the table (nulltable: refuses the first reference outright).
-
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 (nulltable: refuses the first reference outright).
-