AngersZhuuuu commented on a change in pull request #30421:
URL: https://github.com/apache/spark/pull/30421#discussion_r530058054



##########
File path: docs/sql-ref-syntax-dml-insert-into.md
##########
@@ -198,6 +198,21 @@ SELECT * FROM students;
 +-------------+-------------------------+----------+
 ```
 
+#### Insert Using a type constructed partition col value
+```sql
+CREATE TABLE students(name STRING, address  STRING) PARTITIONED BY (birthday 
DATE);
+
+INSERT INTO students PARTITION(birthday = date'2019-01-02')
+    VALUES('Amy Smith', '123 Park Ave, San Jose');

Review comment:
       Done

##########
File path: docs/sql-ref-syntax-dml-insert-into.md
##########
@@ -198,6 +198,21 @@ SELECT * FROM students;
 +-------------+-------------------------+----------+
 ```
 
+#### Insert Using a type constructed partition col value
+```sql
+CREATE TABLE students(name STRING, address  STRING) PARTITIONED BY (birthday 
DATE);
+
+INSERT INTO students PARTITION(birthday = date'2019-01-02')

Review comment:
       Done

##########
File path: docs/sql-ref-syntax-dml-insert-into.md
##########
@@ -198,6 +198,21 @@ SELECT * FROM students;
 +-------------+-------------------------+----------+
 ```
 
+#### Insert Using a type constructed partition col value
+```sql
+CREATE TABLE students(name STRING, address  STRING) PARTITIONED BY (birthday 
DATE);

Review comment:
       Done

##########
File path: docs/sql-ref-syntax-dml-insert-into.md
##########
@@ -198,6 +198,21 @@ SELECT * FROM students;
 +-------------+-------------------------+----------+
 ```
 
+#### Insert Using a type constructed partition col value
+```sql
+CREATE TABLE students(name STRING, address  STRING) PARTITIONED BY (birthday 
DATE);
+
+INSERT INTO students PARTITION(birthday = date'2019-01-02')
+    VALUES('Amy Smith', '123 Park Ave, San Jose');
+
+SELECT  * FROM students;

Review comment:
       Done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to