cloud-fan commented on a change in pull request #26599: [SPARK-29961][SQL] Implement builtin function - typeof URL: https://github.com/apache/spark/pull/26599#discussion_r348477718
########## 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: ah I got it. The rule constant folding calls `Literal.create(e.eval(EmptyRow), e.dataType)`, which will converts the data to internal format. Now I'm curious about how we expose this bug with UDT... ---------------------------------------------------------------- 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]
