ahmedabu98 commented on code in PR #37539:
URL: https://github.com/apache/beam/pull/37539#discussion_r3396295881


##########
website/www/site/content/en/documentation/dsls/sql/ddl.md:
##########
@@ -0,0 +1,343 @@
+---
+type: languages
+title: "Beam SQL DDL"
+---
+<!--
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+# Beam SQL DDL
+
+Beam SQL provides a standard three-level hierarchy to manage metadata across 
external data sources,
+enabling structured discovery and cross-source interoperability.
+1. Catalog: The top-level container representing an external metadata 
provider. Examples include a Hive Metastore, AWS Glue, or a BigLake Catalog.
+2. Database: A logical grouping within a Catalog. This typically maps to a 
"Schema" in traditional RDBMS or a "Namespace" in systems like Apache Iceberg
+3. Table: The leaf node containing the schema definition and the underlying 
data.
+
+This structure enables Federated Querying. Because Beam can resolve multiple 
Catalogs simultaneously,
+you can execute complex pipelines that bridge disparate environments within a 
single SQL statement (e.g.
+joining a production BigQuery table with a developmental Iceberg dataset in 
GCS).
+
+By using fully qualified names (e.g., catalog.database.table), you can perform 
cross-catalog joins or
+migrate data between clouds without manual schema mapping or intermediate 
storage.
+
+Below are details about metadata management at each level:
+
+## Catalogs
+The Catalog is the entry point for external metadata. When you initialize Beam 
SQL, you start off with a `default` Catalog that contains a `default` Database.
+You can register new Catalogs, switch between them, and modify their 
configurations.
+
+{{< tab CREATE >}}

Review Comment:
   Just fixed the tab issue



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to