Skip to content

Commit d80bf4d

Browse files
committed
fix a few problems
1 parent b1f189e commit d80bf4d

4 files changed

Lines changed: 5 additions & 7 deletions

docs/sql-ref-syntax-dml-dynamic-partition-insert.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ INSERT OVERWRITE TABLE data_source_tab2 PARTITION (p1 = 'partNew1', p2)
5757
VALUES (3, 'partNew2')
5858

5959
-- After this INSERT OVERWRITE, the two partitions ('part1', 'part1') and ('part1', 'part2')
60-
-- are dropped,
61-
-- because both partitions are included by (p1 = 'part1', p2).
60+
-- are dropped, because both partitions are included by (p1 = 'part1', p2).
6261
-- Then, two partitions ('partNew1', 'partNew2'), ('part1', 'part1') exist after this
6362
-- operation.
6463
INSERT OVERWRITE TABLE data_source_tab2 PARTITION (p1 = 'part1', p2)
@@ -74,8 +73,7 @@ INSERT OVERWRITE TABLE hive_serde_tab2 PARTITION (p1 = 'partNew1', p2)
7473
VALUES (3, 'partNew2')
7574

7675
-- After this INSERT OVERWRITE, only the partitions ('part1', 'part1') is overwritten by the
77-
-- new value.
78-
-- All the three partitions still exist.
76+
-- new value. All the three partitions still exist.
7977
INSERT OVERWRITE TABLE hive_serde_tab2 PARTITION (p1 = 'part1', p2)
8078
VALUES (5, 'part1')
8179
{% endhighlight %}

docs/sql-ref-syntax-dml-insert-into.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The INSERT INTO statement can be used to insert new rows into a table. The inser
2828
INSERT INTO [TABLE] [db_name.]table_name [partition_spec] value_clause | query
2929

3030
partition_spec:
31-
: (part_col_name1[=val1], part_col_name2[=val2], ...)
31+
: (part_col_name1[=val1] [, part_col_name2[=val2], ...])
3232

3333
value_clause:
3434
: VALUES values_row [, values_row ...]

docs/sql-ref-syntax-dml-insert-overwrite-directory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Insert the query results into a directory using Spark native format. If the spec
2626

2727
{% highlight sql %}
2828
INSERT OVERWRITE [LOCAL] DIRECTORY [directory_path]
29-
USING file_format [OPTIONS (key1=val1, key2=val2, ...)] [AS] query
29+
USING file_format [OPTIONS (key1=val1 [, key2=val2, ...])] [AS] query
3030
{% endhighlight %}
3131

3232
### Examples

docs/sql-ref-syntax-dml-insert-overwrite-table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ INSERT OVERWRITE [TABLE] [db_name.]table_name [partition_spec [IF NOT EXISTS]]
2929
valueClause | query
3030

3131
partition_spec:
32-
: (part_col_name1[=val1], part_col_name2[=val2], ...)
32+
(part_col_name1[=val1] [, part_col_name2[=val2], ...])
3333

3434
value_clause:
3535
: VALUES values_row [, values_row ...]

0 commit comments

Comments
 (0)