diff --git a/website/docs/quick-start-guide.md b/website/docs/quick-start-guide.md index b33aeb59f9b8..02ebfc74e06e 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 762b7c59167c..6099476c311a 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 529b1a0e5340..8dace5306e13 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 762b7c59167c..6099476c311a 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 49f133c6f0c9..bec6545520f4 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 762b7c59167c..6099476c311a 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'; ```