Uses of Class
dev.frostlake.metastore.model.Table
Packages that use Table
Package
Description
-
Uses of Table in dev.frostlake.executor
Methods in dev.frostlake.executor that return TableModifier and TypeMethodDescriptionGroupedExpressionValues.baseTable()The relation the groups were formed over — the FROM table the projected rows no longer are.ConnectByExpander.expandedTable(Table baseTable) The relation the expansion produces: the source columns followed by theLEVELdepth pseudo-column and the hiddenCONNECT_BY_ROOT$<col>pseudo-columns.MergeRowShape.mergedTable()Methods in dev.frostlake.executor that return types with arguments of type TableModifier and TypeMethodDescriptionGroupedExpressionValues.aliasToTable()The FROM clause's alias map paired withGroupedExpressionValues.baseTable(), or null for a single relation.GroupedExpressionValues.allTables()Every joined relation paired withGroupedExpressionValues.baseTable(), or null for a single relation.Methods in dev.frostlake.executor with parameters of type TableModifier and TypeMethodDescriptionQueryExecutor.baseTableRowCount(Table owner) The rows a catalog table holds, as this transaction sees them, or null when the table's rows are not reachable — the bound the account gives a COUNT over it.static MergeRowShapeMergeRowShape.build(Table targetTable, Table sourceTable, String targetAlias, String sourceAlias, boolean valueMode, boolean unqualifiedFromSource, FunctionRegistry functionRegistry, Catalog catalog, QueryExecutor executor) voidQueryExecutor.coerceRowTypesLenient(Table table, Row row) Lenient per-column coercion for CTAS rows: coerce each value to the created table's column type when the conversion works, and keep the ORIGINAL value when it does not.QueryExecutor.columnValueRange(Table owner, String columnName) A catalog column's statistics: the interval between the least and the greatest value in the WHOLE table — every row, whatever the query's WHERE keeps — which is what the account tags the column by, and whether any row holds a NULL, which decides whether the column may answer one.voidQueryExecutor.enforceColumnConstraints(Table table, Row row) Enforce column constraints at statement time on the COPY write path: coerce values to the column type (only when constraints.enforce.types is on), then check NOT NULL (always — Snowflake enforces NOT NULL, unlike the informational PK/UK/FK).voidQueryExecutor.enforceColumnConstraintsForDml(Table table, Row row) The DML flavour ofQueryExecutor.enforceColumnConstraints(Table, Row): INSERT,INSERT … SELECT, UPDATE and MERGE all report a write violation inside a per-statement envelope naming the table and the column — live-verified verbatim,DML operation to table NN failed on column C with error: NULL result in a non-nullable column— around the same inner sentences the COPY path reports bare.voidQueryExecutor.enforceColumnConstraintsForDml(Table table, Row row, boolean boundToColumnSlot) QueryExecutor.enforceColumnConstraintsForDml(Table, Row, boolean, String)naming the table bare.voidQueryExecutor.enforceColumnConstraintsForDml(Table table, Row row, boolean boundToColumnSlot, String writtenName) The write-time constraints of one row, each failure wrapped in the DML envelope that names the table AS THE STATEMENT WROTE IT —TEST_DB.TEST_SCHEMA.TWOfor a qualified INSERT,TWOfor a bare one, four parts when the account was written (live-verified for INSERT, UPDATE, UPDATE … FROM and both MERGE branches).ConnectByExpander.expand(List<Row> baseRows, Table baseTable, Table expandedTable, FrostlakeParser.ConnectByClauseContext clause, Map<String, Table> aliasToTable, List<Table> allTables) ExpandbaseRowsinto the hierarchy described by the clause, in depth-first pre-order (parent immediately before its subtree).StarArgument.expand(Table table, Map<String, Table> aliasToTable, List<Table> allTables, boolean qualified) The columns this star stands for, as argument texts.ConnectByExpander.expandedTable(Table baseTable) The relation the expansion produces: the source columns followed by theLEVELdepth pseudo-column and the hiddenCONNECT_BY_ROOT$<col>pseudo-columns.StarArgument.expandReferences(Table table, Map<String, Table> aliasToTable, List<Table> allTables, boolean qualified) The columns this star names, as references — seeStarArgument.expand(dev.frostlake.metastore.model.Table, java.util.Map<java.lang.String, dev.frostlake.metastore.model.Table>, java.util.List<dev.frostlake.metastore.model.Table>, boolean)— qualified by the relation each belongs to whenqualified, which a join needs to tell its sides apart.static intValueComparisons.findColumnIndex(Table table, String columnName) LikeValueComparisons.getColumnIndex(dev.frostlake.metastore.model.Table, java.lang.String)but answers -1 instead of throwing — for callers probing whether a text is a bare column at all (the throw built a stack trace per probe).static intValueComparisons.getColumnIndex(Table table, String columnName) static booleanKeyCollations.reachable(List<String> keys, Table table, Map<String, Table> aliasToTable, List<Table> allTables) Whether any key here could carry a collation at all: some relation in scope declares one on a column, or some key writes COLLATE itself.voidQueryExecutor.rejectAggregatesInWhere(FrostlakeParser.WhereClauseContext where, Table table) An UPDATE's or DELETE's WHERE refuses an aggregate as a query's does:Invalid aggregate function in where clause [COUNT(*)](live-verified).voidExpressionEvaluator.setDeclaredTypeBase(Table base, Map<String, Table> aliasToTable, List<Table> allTables) The relation a reference's DECLARED type is read from whentablecannot say — seeExpressionEvaluatorVisitor.setDeclaredTypeBase(dev.frostlake.metastore.model.Table, java.util.Map<java.lang.String, dev.frostlake.metastore.model.Table>, java.util.List<dev.frostlake.metastore.model.Table>).voidQueryExecutor.writeCtasRow(Table table, Row row, String envelopeName) A CTAS row written into the declared types of its column list, as live writes it: each value is converted to its column the way an INSERT converts it — a number rounded to the scale, text parsed — and a value that does not fit is refused inside the DML envelope naming the table and the column ("DML operation to table DB.S.T failed on column X with error: String 'abcd' is too long and would be truncated").Method parameters in dev.frostlake.executor with type arguments of type TableModifier and TypeMethodDescriptionConnectByExpander.expand(List<Row> baseRows, Table baseTable, Table expandedTable, FrostlakeParser.ConnectByClauseContext clause, Map<String, Table> aliasToTable, List<Table> allTables) ExpandbaseRowsinto the hierarchy described by the clause, in depth-first pre-order (parent immediately before its subtree).StarArgument.expand(Table table, Map<String, Table> aliasToTable, List<Table> allTables, boolean qualified) The columns this star stands for, as argument texts.StarArgument.expand(Table table, Map<String, Table> aliasToTable, List<Table> allTables, boolean qualified) The columns this star stands for, as argument texts.StarArgument.expandReferences(Table table, Map<String, Table> aliasToTable, List<Table> allTables, boolean qualified) The columns this star names, as references — seeStarArgument.expand(dev.frostlake.metastore.model.Table, java.util.Map<java.lang.String, dev.frostlake.metastore.model.Table>, java.util.List<dev.frostlake.metastore.model.Table>, boolean)— qualified by the relation each belongs to whenqualified, which a join needs to tell its sides apart.StarArgument.expandReferences(Table table, Map<String, Table> aliasToTable, List<Table> allTables, boolean qualified) The columns this star names, as references — seeStarArgument.expand(dev.frostlake.metastore.model.Table, java.util.Map<java.lang.String, dev.frostlake.metastore.model.Table>, java.util.List<dev.frostlake.metastore.model.Table>, boolean)— qualified by the relation each belongs to whenqualified, which a join needs to tell its sides apart.static booleanKeyCollations.reachable(List<String> keys, Table table, Map<String, Table> aliasToTable, List<Table> allTables) Whether any key here could carry a collation at all: some relation in scope declares one on a column, or some key writes COLLATE itself.QueryExecutor.resolveColumnInTables(Row row, List<Table> tables, Map<String, Table> aliasToTable, String qualifiedName) Resolve a (possibly qualified) column reference against a multi-table row context — the alias-aware resolution used by JOIN evaluation, exposed for the AST evaluator so a parsed Expression can be evaluated directly over joined rows (e.g.QueryExecutor.resolveColumnInTables(Row row, List<Table> tables, Map<String, Table> aliasToTable, String qualifiedName) Resolve a (possibly qualified) column reference against a multi-table row context — the alias-aware resolution used by JOIN evaluation, exposed for the AST evaluator so a parsed Expression can be evaluated directly over joined rows (e.g.QueryExecutor.resolveColumnInTables(Row row, List<Table> tables, Map<String, Table> aliasToTable, String qualifiedName, int[] resolvedOffset) Resolve likeQueryExecutor.resolveColumnInTables(Row, List, Map, String), additionally reporting HOW the reference resolved throughresolvedOffset[0]: the flat row offset when the value came from the plain table-column scan (a fixed layout position the caller may cache for this context), left untouched when it resolved any other way (literal fallback, merged join key — per-row decisions that must re-run).QueryExecutor.resolveColumnInTables(Row row, List<Table> tables, Map<String, Table> aliasToTable, String qualifiedName, int[] resolvedOffset) Resolve likeQueryExecutor.resolveColumnInTables(Row, List, Map, String), additionally reporting HOW the reference resolved throughresolvedOffset[0]: the flat row offset when the value came from the plain table-column scan (a fixed layout position the caller may cache for this context), left untouched when it resolved any other way (literal fallback, merged join key — per-row decisions that must re-run).voidExpressionEvaluator.setDeclaredTypeBase(Table base, Map<String, Table> aliasToTable, List<Table> allTables) The relation a reference's DECLARED type is read from whentablecannot say — seeExpressionEvaluatorVisitor.setDeclaredTypeBase(dev.frostlake.metastore.model.Table, java.util.Map<java.lang.String, dev.frostlake.metastore.model.Table>, java.util.List<dev.frostlake.metastore.model.Table>).voidExpressionEvaluator.setDeclaredTypeBase(Table base, Map<String, Table> aliasToTable, List<Table> allTables) The relation a reference's DECLARED type is read from whentablecannot say — seeExpressionEvaluatorVisitor.setDeclaredTypeBase(dev.frostlake.metastore.model.Table, java.util.Map<java.lang.String, dev.frostlake.metastore.model.Table>, java.util.List<dev.frostlake.metastore.model.Table>).voidProvide a multi-table (JOIN) resolution context so a parsed Expression can be evaluated directly over joined rows with alias-aware column resolution.voidProvide a multi-table (JOIN) resolution context so a parsed Expression can be evaluated directly over joined rows with alias-aware column resolution.Constructors in dev.frostlake.executor with parameters of type TableModifierConstructorDescriptionDeferredInsertGuard(Table table, TableStorage base, TransactionWriteSet writeSet, String fullyQualifiedName, boolean enforcePrimaryKey, boolean enforceUniqueKey) ExpressionEvaluator(Table table, FunctionRegistry functionRegistry, Catalog catalog) ExpressionEvaluator(Table table, FunctionRegistry functionRegistry, Catalog catalog, QueryExecutor queryExecutor) -
Uses of Table in dev.frostlake.executor.commands
Methods in dev.frostlake.executor.commands with parameters of type TableModifier and TypeMethodDescriptionstatic voidRowAccessPolicyAttachment.check(RowAccessPolicy policy, Table table, String objectName, String policyName, List<String> columns) The argument-count, masked-column and type checks, in live's order.static voidClusterKeyValidation.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). -
Uses of Table in dev.frostlake.executor.expressions
Methods in dev.frostlake.executor.expressions with parameters of type TableModifier and TypeMethodDescriptionstatic DataTypeRoutineReturnTypeOracle.bodyType(String expressionText, Table parameters, FunctionRegistry functionRegistry, Catalog catalog) The statically-known type ofexpressionText, or null (undetermined never guesses).voidExpressionEvaluatorVisitor.setDeclaredTypeBase(Table base, Map<String, Table> aliasToTable, List<Table> allTables) Install the relation a reference's DECLARED type falls back to.Method parameters in dev.frostlake.executor.expressions with type arguments of type TableModifier and TypeMethodDescriptionvoidExpressionEvaluatorVisitor.setDeclaredTypeBase(Table base, Map<String, Table> aliasToTable, List<Table> allTables) Install the relation a reference's DECLARED type falls back to.voidExpressionEvaluatorVisitor.setDeclaredTypeBase(Table base, Map<String, Table> aliasToTable, List<Table> allTables) Install the relation a reference's DECLARED type falls back to.voidExpressionEvaluatorVisitor.setMultiTableContext(Map<String, Table> aliasToTable, List<Table> allTables) voidExpressionEvaluatorVisitor.setMultiTableContext(Map<String, Table> aliasToTable, List<Table> allTables) Constructors in dev.frostlake.executor.expressions with parameters of type TableModifierConstructorDescriptionExpressionEvaluatorVisitor(Table table, Row row, FunctionRegistry functionRegistry, Catalog catalog) -
Uses of Table in dev.frostlake.executor.operators
Methods in dev.frostlake.executor.operators that return TableMethods in dev.frostlake.executor.operators that return types with arguments of type TableModifier and TypeMethodDescriptionOperatorContext.getAliasToTable()OperatorContext.getAllTables()Methods in dev.frostlake.executor.operators with parameters of type TableModifier and TypeMethodDescriptionstatic JoinOperatorCreate a CROSS JOIN operator (no condition).Method parameters in dev.frostlake.executor.operators with type arguments of type TableModifier and TypeMethodDescriptionOperatorContextBuilder.aliasToTable(Map<String, Table> aliasToTable) Constructors in dev.frostlake.executor.operators with parameters of type TableModifierConstructorDescriptionAsofJoinOperator(Table leftTable, Table rightTable, List<Row> rightRows, BinaryOperator matchOperator, Expression leftMatchExpression, RowExpressionEvaluator leftMatchEvaluator, Expression rightMatchExpression, RowExpressionEvaluator rightMatchEvaluator, JoinConditionEvaluator partitionEvaluator) JoinOperator(Table leftTable, Table rightTable, List<Row> rightRows, JoinType joinType, String joinCondition, JoinConditionEvaluator conditionEvaluator) Create a JOIN operator with a condition evaluator. -
Uses of Table in dev.frostlake.metastore
Methods in dev.frostlake.metastore that return TableModifier and TypeMethodDescriptionCatalog.resolveTable(QualifiedName written) Catalog.resolveTable(String qualifiedName) Catalog.resolveTableAsWritten(QualifiedName written, String reportedKind) Catalog.resolveTableAsWritten(String qualifiedName, String reportedKind) The table a QUERY or DML statement named, with a miss reported the way Snowflake reports it there: the name exactly as the writer spelled it when they spelled it bare, expanded in full when they supplied any qualifier at all, and underreportedKind—Objectfor a FROM clause, an UPDATE or a DELETE,Tablefor INSERT and DESCRIBE.Catalog.resolveTableAsWritten(String qualifiedName, String reportedKind, String lookup) Catalog.resolveTableAsWritten(String, String)for a lookup a query does not make. -
Uses of Table in dev.frostlake.metastore.model
Methods in dev.frostlake.metastore.model that return TableModifier and TypeMethodDescriptionThe table, or a miss reported asreportedKind 'reportedName'.JoinedRelations.keptRelationWith(String columnName) The first relation no outer join extends that carriescolumnName: the side a USING or NATURAL key written bare reads, which for a RIGHT join is its right side — live tagsCOALESCE(k, 3000.5)overa RIGHT JOIN b USING (k)byb.k's width alone.Schema.tableExact(String name) The table a SQL reference names, matched EXACTLY.Methods in dev.frostlake.metastore.model that return types with arguments of type TableMethods in dev.frostlake.metastore.model with parameters of type TableModifier and TypeMethodDescriptionvoidbooleanWhetherrelationis one of the joined relations.booleanJoinedRelations.isNullExtended(Table relation) Whether an outer join extendsrelationwith NULLs.static JoinedRelationsJoinedRelations.joining(Table left, Table right, boolean leftNullExtended, boolean rightNullExtended) The relations ofleftjoined toright, either of which may itself be an earlier join's merged relation. -
Uses of Table in dev.frostlake.storage
Methods in dev.frostlake.storage with parameters of type TableModifier and TypeMethodDescriptionvoidStorageEngine.createTable(String qualifiedName, Table tableMetadata) Constructors in dev.frostlake.storage with parameters of type Table