王俊博 created SPARK-44383:
---------------------------
Summary: Fix the trim logic did't handle ASCII control characters
correctly
Key: SPARK-44383
URL: https://issues.apache.org/jira/browse/SPARK-44383
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.4.0, 3.1.1
Reporter: 王俊博
The trim logic in Cast expression introduced in
[#29375|https://github.com/apache/spark/pull/29375] trim ASCII control
characters
unexpectly.[!https://user-images.githubusercontent.com/25627922/244651442-ca6a2fb1-2143-4264-84d1-70b6bb755ec7.png!|https://user-images.githubusercontent.com/25627922/244651442-ca6a2fb1-2143-4264-84d1-70b6bb755ec7.png]
And hive
[!https://user-images.githubusercontent.com/25627922/244651942-017aaa4a-133e-4396-9694-79f03f027bbe.png!|https://user-images.githubusercontent.com/25627922/244651942-017aaa4a-133e-4396-9694-79f03f027bbe.png]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]