cloud-fan commented on a change in pull request #29375:
URL: https://github.com/apache/spark/pull/29375#discussion_r467665715
##########
File path: sql/core/src/test/resources/sql-tests/inputs/cast.sql
##########
@@ -70,6 +70,11 @@ select cast(' 1' as bigint);
select cast(' 1' as float);
select cast(' 1 ' as DOUBLE);
select cast('1.0 ' as DEC);
+select cast('1中文' as tinyint);
Review comment:
This kind of character needs multiple bytes, so `getByte(s) <= ' '` may
not work.
----------------------------------------------------------------
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]