You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/ZetaSQLQueryPlanner.java
+2
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,8 @@ public ZetaSQLQueryPlanner(FrameworkConfig config) {
Copy file name to clipboardExpand all lines: sdks/java/extensions/sql/zetasql/src/main/java/org/apache/beam/sdk/extensions/sql/zetasql/package-info.java
+7-1
Original file line number
Diff line number
Diff line change
@@ -16,5 +16,11 @@
16
16
* limitations under the License.
17
17
*/
18
18
19
-
/** ZetaSQL Dialect package. */
19
+
/**
20
+
* ZetaSQL Dialect package.
21
+
*
22
+
* <p>
23
+
*
24
+
* @deprecated Use Calcite SQL dialect. Beam ZetaSQL has been deprecated.
Beam Calcite SQL is a variant of Apache Calcite, a dialect widespread in
32
-
big data processing. Beam Calcite SQL is the default Beam SQL dialect. Beam ZetaSQL is more compatible with BigQuery, so it's especially useful in pipelines that [write to or read from BigQuery tables](https://beam.apache.org/releases/javadoc/current/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.html).
29
+
<!-- TODO: Remove deprecation statement when ZetaSQL dialect is removed. -->
30
+
**Note:** Beam SQL supports for [ZetaSQL dialect](/documentation/dsls/sql/zetasql/overview) has been deprecated.
33
31
34
32
To change dialects, pass [the dialect's full package name](https://beam.apache.org/releases/javadoc/current/org/apache/beam/sdk/extensions/sql/package-summary.html) to the [`setPlannerName`](https://beam.apache.org/releases/javadoc/current/org/apache/beam/sdk/extensions/sql/impl/BeamSqlPipelineOptions.html#setPlannerName-java.lang.String-) method in the [`PipelineOptions`](https://beam.apache.org/releases/javadoc/2.15.0/org/apache/beam/sdk/options/PipelineOptions.html) interface.
35
33
@@ -50,17 +48,5 @@ The [Shell page](/documentation/dsls/sql/shell) describes how to work with the i
50
48
The [Beam Calcite SQL overview](/documentation/dsls/sql/calcite/overview) summarizes Apache Calcite operators,
51
49
functions, syntax, and data types supported by Beam Calcite SQL.
52
50
53
-
## ZetaSQL dialect
54
-
For more information on the ZetaSQL features in Beam SQL, see the [Beam ZetaSQL dialect reference](/documentation/dsls/sql/zetasql/overview).
55
-
56
-
To switch to Beam ZetaSQL, configure the [pipeline options](https://beam.apache.org/releases/javadoc/2.15.0/org/apache/beam/sdk/options/PipelineOptions.html) as follows:
Note, Use of the `ZetaSQLQueryPlanner` requires an additional dependency on `beam-sdks-java-extensions-sql-zetasql` in addition to the `beam-sdks-java-extensions-sql` package required for `CalciteQueryPlanner`.
64
-
65
51
## Beam SQL extensions
66
52
Beam SQL has additional extensions leveraging Beam’s unified batch/streaming model and processing complex data types. You can use these extensions with all Beam SQL dialects.
Copy file name to clipboardExpand all lines: website/www/site/content/en/documentation/dsls/sql/zetasql/overview.md
+3
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,9 @@ See the License for the specific language governing permissions and
16
16
limitations under the License.
17
17
-->
18
18
# Beam ZetaSQL overview
19
+
20
+
**Note:** Beam ZetaSQL has been deprecated ([details](https://github.com/apache/beam/issues/34423)). Please switch to use the default [Calcite SQL](/documentation/dsls/sql/calcite/overview) dialect.
21
+
19
22
Beam SQL supports a variant of the [ZetaSQL](https://github.com/google/zetasql) language. ZetaSQL is similar to the language in BigQuery's SQL framework. This Beam SQL dialect is especially useful in pipelines that [write to or read from BigQuery tables](https://beam.apache.org/releases/javadoc/current/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.html).
20
23
21
24
Beam SQL has additional extensions leveraging Beam’s unified batch/streaming model and processing complex data types. You can use these extensions with all Beam SQL dialects, including Beam ZetaSQL.
0 commit comments