You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by xu...@apache.org on 2022/08/15 21:29:40 UTC

[hudi] branch asf-site updated: [HUDI-4580][DOCS] Update docs of Spark SQL create table statement (#6402)

This is an automated email from the ASF dual-hosted git repository.

xushiyan pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 0d73341513 [HUDI-4580][DOCS] Update docs of Spark SQL create table statement (#6402)
0d73341513 is described below

commit 0d73341513b2e455e60fa09199846b210d56e704
Author: Y Ethan Guo <et...@gmail.com>
AuthorDate: Mon Aug 15 14:29:26 2022 -0700

    [HUDI-4580][DOCS] Update docs of Spark SQL create table statement (#6402)
---
 website/docs/quick-start-guide.md                          | 12 ++----------
 website/docs/table_management.md                           |  7 +------
 website/versioned_docs/version-0.11.0/quick-start-guide.md | 12 ++----------
 website/versioned_docs/version-0.11.0/table_management.md  |  7 +------
 website/versioned_docs/version-0.11.1/quick-start-guide.md | 12 ++----------
 website/versioned_docs/version-0.11.1/table_management.md  |  7 +------
 6 files changed, 9 insertions(+), 48 deletions(-)

diff --git a/website/docs/quick-start-guide.md b/website/docs/quick-start-guide.md
index b33aeb59f9..02ebfc74e0 100644
--- a/website/docs/quick-start-guide.md
+++ b/website/docs/quick-start-guide.md
@@ -325,16 +325,8 @@ We can create a table on an existing hudi table(created with spark-shell or delt
 read/write to/from a pre-existing hudi table.
 
 ```sql
--- create an external hudi table based on an existing path
-
--- for non-partitioned table
-create table hudi_existing_tbl0 using hudi
-location 'file:///tmp/hudi/dataframe_hudi_nonpt_table';
-
--- for partitioned table
-create table hudi_existing_tbl1 using hudi
-partitioned by (dt, hh)
-location 'file:///tmp/hudi/dataframe_hudi_pt_table';
+create table hudi_existing_tbl using hudi
+location '/tmp/hudi/hudi_existing_table';
 ```
 
 :::tip
diff --git a/website/docs/table_management.md b/website/docs/table_management.md
index 762b7c5916..6099476c31 100644
--- a/website/docs/table_management.md
+++ b/website/docs/table_management.md
@@ -98,12 +98,7 @@ You can create an External table using the `location` statement. If an external
 An external table is useful if you need to read/write to/from a pre-existing hudi table.
 
 ```sql
- create table h_p1 using hudi 
- options (
-    primaryKey = 'id',
-    preCombineField = 'ts'
- )
- partitioned by (dt)
+ create table h_p1 using hudi
  location '/path/to/hudi';
 ```
 
diff --git a/website/versioned_docs/version-0.11.0/quick-start-guide.md b/website/versioned_docs/version-0.11.0/quick-start-guide.md
index 529b1a0e53..8dace5306e 100644
--- a/website/versioned_docs/version-0.11.0/quick-start-guide.md
+++ b/website/versioned_docs/version-0.11.0/quick-start-guide.md
@@ -299,16 +299,8 @@ We can create a table on an existing hudi table(created with spark-shell or delt
 read/write to/from a pre-existing hudi table.
 
 ```sql
--- create an external hudi table based on an existing path
-
--- for non-partitioned table
-create table hudi_existing_tbl0 using hudi
-location 'file:///tmp/hudi/dataframe_hudi_nonpt_table';
-
--- for partitioned table
-create table hudi_existing_tbl1 using hudi
-partitioned by (dt, hh)
-location 'file:///tmp/hudi/dataframe_hudi_pt_table';
+create table hudi_existing_tbl using hudi
+location '/tmp/hudi/hudi_existing_table';
 ```
 
 :::tip
diff --git a/website/versioned_docs/version-0.11.0/table_management.md b/website/versioned_docs/version-0.11.0/table_management.md
index 762b7c5916..6099476c31 100644
--- a/website/versioned_docs/version-0.11.0/table_management.md
+++ b/website/versioned_docs/version-0.11.0/table_management.md
@@ -98,12 +98,7 @@ You can create an External table using the `location` statement. If an external
 An external table is useful if you need to read/write to/from a pre-existing hudi table.
 
 ```sql
- create table h_p1 using hudi 
- options (
-    primaryKey = 'id',
-    preCombineField = 'ts'
- )
- partitioned by (dt)
+ create table h_p1 using hudi
  location '/path/to/hudi';
 ```
 
diff --git a/website/versioned_docs/version-0.11.1/quick-start-guide.md b/website/versioned_docs/version-0.11.1/quick-start-guide.md
index 49f133c6f0..bec6545520 100644
--- a/website/versioned_docs/version-0.11.1/quick-start-guide.md
+++ b/website/versioned_docs/version-0.11.1/quick-start-guide.md
@@ -299,16 +299,8 @@ We can create a table on an existing hudi table(created with spark-shell or delt
 read/write to/from a pre-existing hudi table.
 
 ```sql
--- create an external hudi table based on an existing path
-
--- for non-partitioned table
-create table hudi_existing_tbl0 using hudi
-location 'file:///tmp/hudi/dataframe_hudi_nonpt_table';
-
--- for partitioned table
-create table hudi_existing_tbl1 using hudi
-partitioned by (dt, hh)
-location 'file:///tmp/hudi/dataframe_hudi_pt_table';
+create table hudi_existing_tbl using hudi
+location '/tmp/hudi/hudi_existing_table';
 ```
 
 :::tip
diff --git a/website/versioned_docs/version-0.11.1/table_management.md b/website/versioned_docs/version-0.11.1/table_management.md
index 762b7c5916..6099476c31 100644
--- a/website/versioned_docs/version-0.11.1/table_management.md
+++ b/website/versioned_docs/version-0.11.1/table_management.md
@@ -98,12 +98,7 @@ You can create an External table using the `location` statement. If an external
 An external table is useful if you need to read/write to/from a pre-existing hudi table.
 
 ```sql
- create table h_p1 using hudi 
- options (
-    primaryKey = 'id',
-    preCombineField = 'ts'
- )
- partitioned by (dt)
+ create table h_p1 using hudi
  location '/path/to/hudi';
 ```