You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Xu Mingmin (JIRA)" <ji...@apache.org> on 2017/05/17 21:37:04 UTC
[jira] [Resolved] (BEAM-2288) Refine DSL interface
[ https://issues.apache.org/jira/browse/BEAM-2288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xu Mingmin resolved BEAM-2288.
------------------------------
Resolution: Fixed
Fix Version/s: Not applicable
> Refine DSL interface
> --------------------
>
> Key: BEAM-2288
> URL: https://issues.apache.org/jira/browse/BEAM-2288
> Project: Beam
> Issue Type: Improvement
> Components: dsl-sql
> Reporter: Xu Mingmin
> Assignee: Xu Mingmin
> Fix For: Not applicable
>
>
> As part of BEAM-2010, it update the interface to explain SQL query, to link with Pipeline, so below part is supported:
> {code}
> //prepare environment of BeamSQL
> BeamSQLEnvironment sqlEnv = BeamSQLEnvironment.create();
> //register table metadata
> sqlEnv.addTableMetadata(String tableName, BeamSqlTable tableMetadata);
> //register UDF
> sqlEnv.registerUDF(String functionName, Method udfMethod);
> //explain a SQL statement, SELECT only, and return as a PCollection;
> PCollection<BeamSQLRow> phase1Stream = sqlEnv.explainSQL(pipeline, String sqlStatement);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)