Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions website/docs/quick-start-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions website/docs/table_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
```

Expand Down
12 changes: 2 additions & 10 deletions website/versioned_docs/version-0.11.0/quick-start-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions website/versioned_docs/version-0.11.0/table_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
```

Expand Down
12 changes: 2 additions & 10 deletions website/versioned_docs/version-0.11.1/quick-start-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions website/versioned_docs/version-0.11.1/table_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
```

Expand Down