Skip to content

Commit dc4c63a

Browse files
[Minor] fix(docs): Fix docs mistake for partitioned table created by Trino (#4816)
### 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. Co-authored-by: Qi Yu <yuqi@datastrato.com>
1 parent 9ebe6ac commit dc4c63a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/trino-connector/catalog-hive.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,12 @@ Create a new table named `table_01` in schema `hive_test.database_01` and stored
221221
CREATE TABLE hive_test.database_01.table_01
222222
(
223223
name varchar,
224-
salary int
224+
salary int,
225+
month int
225226
)
226227
WITH (
227228
format = 'TEXTFILE',
228-
partitioned_by = ARRAY['salary'],
229+
partitioned_by = ARRAY['month'],
229230
bucketed_by = ARRAY['name'],
230231
bucket_count = 2,
231232
sorted_by = ARRAY['salary']
@@ -237,13 +238,13 @@ WITH (
237238
Insert data into the table `table_01`:
238239

239240
```sql
240-
INSERT INTO hive_test.database_01.table_01 (name, salary) VALUES ('ice', 12);
241+
INSERT INTO hive_test.database_01.table_01 (name, salary) VALUES ('ice', 12, 22);
241242
```
242243

243244
Insert data into the table `table_01` from select:
244245

245246
```sql
246-
INSERT INTO hive_test.database_01.table_01 (name, salary) SELECT * FROM hive_test.database_01.table_01;
247+
INSERT INTO hive_test.database_01.table_01 (name, salary, month) SELECT * FROM hive_test.database_01.table_01;
247248
```
248249

249250
### Querying data

0 commit comments

Comments
 (0)