yaooqinn commented on a change in pull request #26599: [SPARK-29961][SQL]
Implement builtin function - typeof
URL: https://github.com/apache/spark/pull/26599#discussion_r348486275
##########
File path: sql/core/src/test/resources/sql-tests/inputs/misc-functions.sql
##########
@@ -0,0 +1,10 @@
+-- test for misc functions
+
+-- typeof
+select typeof(null);
+select typeof(true);
+select typeof(1Y), typeof(1S), typeof(1), typeof(1L);
Review comment:
In `CatalystTypeConverters`
```scala
/**
* Converts Scala objects to Catalyst rows / types.
*
* Note: This should be called before do evaluation on Row
* (It does not support UDT)
* This is used to create an RDD or test results with correct types for
Catalyst.
*/
def convertToCatalyst(a: Any): Any = a match {
```
----------------------------------------------------------------
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]