File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -325,16 +325,8 @@ We can create a table on an existing hudi table(created with spark-shell or delt
325325read/write to/from a pre-existing hudi table.
326326
327327``` sql
328- -- create an external hudi table based on an existing path
329-
330- -- for non-partitioned table
331- create table hudi_existing_tbl0 using hudi
332- location ' file:///tmp/hudi/dataframe_hudi_nonpt_table' ;
333-
334- -- for partitioned table
335- create table hudi_existing_tbl1 using hudi
336- partitioned by (dt, hh)
337- location ' file:///tmp/hudi/dataframe_hudi_pt_table' ;
328+ create table hudi_existing_tbl using hudi
329+ location ' /tmp/hudi/hudi_existing_table' ;
338330```
339331
340332::: tip
Original file line number Diff line number Diff line change @@ -98,12 +98,7 @@ You can create an External table using the `location` statement. If an external
9898An external table is useful if you need to read/write to/from a pre-existing hudi table.
9999
100100``` sql
101- create table h_p1 using hudi
102- options (
103- primaryKey = ' id' ,
104- preCombineField = ' ts'
105- )
106- partitioned by (dt)
101+ create table h_p1 using hudi
107102 location ' /path/to/hudi' ;
108103```
109104
Original file line number Diff line number Diff line change @@ -299,16 +299,8 @@ We can create a table on an existing hudi table(created with spark-shell or delt
299299read/write to/from a pre-existing hudi table.
300300
301301``` sql
302- -- create an external hudi table based on an existing path
303-
304- -- for non-partitioned table
305- create table hudi_existing_tbl0 using hudi
306- location ' file:///tmp/hudi/dataframe_hudi_nonpt_table' ;
307-
308- -- for partitioned table
309- create table hudi_existing_tbl1 using hudi
310- partitioned by (dt, hh)
311- location ' file:///tmp/hudi/dataframe_hudi_pt_table' ;
302+ create table hudi_existing_tbl using hudi
303+ location ' /tmp/hudi/hudi_existing_table' ;
312304```
313305
314306::: tip
Original file line number Diff line number Diff line change @@ -98,12 +98,7 @@ You can create an External table using the `location` statement. If an external
9898An external table is useful if you need to read/write to/from a pre-existing hudi table.
9999
100100``` sql
101- create table h_p1 using hudi
102- options (
103- primaryKey = ' id' ,
104- preCombineField = ' ts'
105- )
106- partitioned by (dt)
101+ create table h_p1 using hudi
107102 location ' /path/to/hudi' ;
108103```
109104
Original file line number Diff line number Diff line change @@ -299,16 +299,8 @@ We can create a table on an existing hudi table(created with spark-shell or delt
299299read/write to/from a pre-existing hudi table.
300300
301301``` sql
302- -- create an external hudi table based on an existing path
303-
304- -- for non-partitioned table
305- create table hudi_existing_tbl0 using hudi
306- location ' file:///tmp/hudi/dataframe_hudi_nonpt_table' ;
307-
308- -- for partitioned table
309- create table hudi_existing_tbl1 using hudi
310- partitioned by (dt, hh)
311- location ' file:///tmp/hudi/dataframe_hudi_pt_table' ;
302+ create table hudi_existing_tbl using hudi
303+ location ' /tmp/hudi/hudi_existing_table' ;
312304```
313305
314306::: tip
Original file line number Diff line number Diff line change @@ -98,12 +98,7 @@ You can create an External table using the `location` statement. If an external
9898An external table is useful if you need to read/write to/from a pre-existing hudi table.
9999
100100``` sql
101- create table h_p1 using hudi
102- options (
103- primaryKey = ' id' ,
104- preCombineField = ' ts'
105- )
106- partitioned by (dt)
101+ create table h_p1 using hudi
107102 location ' /path/to/hudi' ;
108103```
109104
You can’t perform that action at this time.
0 commit comments