Skip to content

Commit

Permalink
[Minor] fix(docs): Fix docs mistake for partitioned table created by …
Browse files Browse the repository at this point in the history
…Trino (#4813)

### What changes were proposed in this pull request?

Fix the error in the example SQL.

### Why are the changes needed?

For a better user experience. 

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

N/A.
  • Loading branch information
yuqi1129 authored Aug 30, 2024
1 parent 6e4e103 commit 972edc1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/trino-connector/catalog-hive.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,12 @@ Create a new table named `table_01` in schema `hive_test.database_01` and stored
CREATE TABLE hive_test.database_01.table_01
(
name varchar,
salary int
salary int,
month int
)
WITH (
format = 'TEXTFILE',
partitioned_by = ARRAY['salary'],
partitioned_by = ARRAY['month'],
bucketed_by = ARRAY['name'],
bucket_count = 2,
sorted_by = ARRAY['salary']
Expand All @@ -237,13 +238,13 @@ WITH (
Insert data into the table `table_01`:

```sql
INSERT INTO hive_test.database_01.table_01 (name, salary) VALUES ('ice', 12);
INSERT INTO hive_test.database_01.table_01 (name, salary) VALUES ('ice', 12, 22);
```

Insert data into the table `table_01` from select:

```sql
INSERT INTO hive_test.database_01.table_01 (name, salary) SELECT * FROM hive_test.database_01.table_01;
INSERT INTO hive_test.database_01.table_01 (name, salary, month) SELECT * FROM hive_test.database_01.table_01;
```

### Querying data
Expand Down

0 comments on commit 972edc1

Please sign in to comment.