Class TableResolution
java.lang.Object
org.apache.beam.sdk.extensions.sql.zetasql.TableResolution
Utility methods to resolve a table, given a top-level Calcite schema and a table path.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
registerTables
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.SchemaPlus schemaPlus, List<List<String>> tables) Registers tables that will be resolved during query analysis, so table providers can eagerly pre-load metadata.static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Table
resolveCalciteTable
(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.SchemaPlus schemaPlus, List<String> tablePath) ResolvestablePath
according to the givenschemaPlus
.
-
Constructor Details
-
TableResolution
public TableResolution()
-
-
Method Details
-
resolveCalciteTable
public static org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Table resolveCalciteTable(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.SchemaPlus schemaPlus, List<String> tablePath) ResolvestablePath
according to the givenschemaPlus
.tablePath
represents a structured table name where the last component is the name of the table and all the preceding components are sub-schemas / namespaces withinschemaPlus
. -
registerTables
public static void registerTables(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.SchemaPlus schemaPlus, List<List<String>> tables) Registers tables that will be resolved during query analysis, so table providers can eagerly pre-load metadata.
-