dongjoon-hyun commented on a change in pull request #25210: [SPARK-28432][SQL] 
Add `make_date` function
URL: https://github.com/apache/spark/pull/25210#discussion_r305606883
 
 

 ##########
 File path: sql/core/src/test/resources/sql-tests/results/pgSQL/date.sql.out
 ##########
 @@ -508,8 +508,48 @@ struct<Days From 2K:int>
 
 
 -- !query 47
-DROP TABLE DATE_TBL
+select make_date(2013, 7, 15)
 -- !query 47 schema
-struct<>
+struct<make_date(2013, 7, 15):date>
 -- !query 47 output
+2013-07-15
+
+
+-- !query 48
+select make_date(-44, 3, 15)
+-- !query 48 schema
+struct<make_date(-44, 3, 15):date>
+-- !query 48 output
+0045-03-15
 
 Review comment:
   You need to file a JIRA issue for this difference on `make_date` input range 
checking. Also, please add the JIRA id to `date.sql` file.
   
   FYI, the following is PostgreSQL output. 
   - 
https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/expected/date.out

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to