Class BeamSqlEnv
java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.BeamSqlEnv
Contains the metadata of tables/UDF functions, and exposes APIs to
query/validate/optimize/translate SQL statements.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BeamSqlEnv.BeamSqlEnvBuilderbuilder(CatalogManager catalogManager) Creates a builder with the default schema backed by the catalog manager.static BeamSqlEnv.BeamSqlEnvBuilderbuilder(TableProvider tableProvider) Creates a builder with the default schema backed by the table provider.voidexecuteDdl(String sqlStatement) org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalcitePrepare.Contextstatic BeamSqlEnvinMemory(TableProvider... tableProviders) This method createsBeamSqlEnvusing empty * Pipeline Options.booleanparseQuery(String query) parseQuery(String query, QueryPlanner.QueryParameters queryParameters) static BeamSqlEnvreadOnly(String tableType, Map<String, BeamSqlTable> tables) This method createsBeamSqlEnvusing empty Pipeline Options.static BeamSqlEnvwithTableProvider(TableProvider tableProvider) This method createsBeamSqlEnvusing empty Pipeline Options.
-
Method Details
-
builder
Creates a builder with the default schema backed by the table provider. -
builder
Creates a builder with the default schema backed by the catalog manager. -
readOnly
This method createsBeamSqlEnvusing empty Pipeline Options. It should only be used in tests. -
withTableProvider
This method createsBeamSqlEnvusing empty Pipeline Options. It should only be used in tests. -
inMemory
This method createsBeamSqlEnvusing empty * Pipeline Options. It should only be used in tests. -
parseQuery
- Throws:
ParseException
-
parseQuery
public BeamRelNode parseQuery(String query, QueryPlanner.QueryParameters queryParameters) throws ParseException - Throws:
ParseException
-
isDdl
- Throws:
ParseException
-
executeDdl
- Throws:
ParseException
-
getContext
public org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.jdbc.CalcitePrepare.Context getContext() -
getPipelineOptions
-
explain
- Throws:
ParseException
-