gatorsmile commented on a change in pull request #24767: 
[WIP][SPARK-27918][SQL] Port boolean.sql
URL: https://github.com/apache/spark/pull/24767#discussion_r290062232
 
 

 ##########
 File path: sql/core/src/test/resources/sql-tests/inputs/pgSQL/boolean.sql
 ##########
 @@ -0,0 +1,265 @@
+--
+-- Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
+--
+--
+-- BOOLEAN
+-- 
https://github.com/postgres/postgres/blob/REL_12_BETA1/src/test/regress/sql/boolean.sql
+
+--
+-- sanity check - if this fails go insane!
+--
+SELECT 1 AS one;
+
+
+-- ******************testing built-in type bool********************
+
+-- check bool input syntax
+
+SELECT true AS true;
+
+SELECT false AS false;
+
+SELECT cast('t' as boolean) AS true;
 
 Review comment:
   Instead of creating built-in UDF functions, can we create these UDFs in our 
SQLQueryTestSuite? 

----------------------------------------------------------------
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]


With regards,
Apache Git Services

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

Reply via email to