ABHISHEK KUMAR GUPTA created SPARK-29784:
--------------------------------------------
Summary: Built in function trim is not compatible in 3.0 with
previous version
Key: SPARK-29784
URL: https://issues.apache.org/jira/browse/SPARK-29784
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.0.0
Reporter: ABHISHEK KUMAR GUPTA
SELECT trim('SL', 'SSparkSQLS'); returns empty in Spark 3.0 where as in 2.4 and
2.3.2 is returning after leading and trailing character removed.
Spark 3.0 – Not correct
jdbc:hive2://10.18.19.208:23040/default> SELECT trim('SL', 'SSparkSQLS');
+-----------------------+
| trim(SL, SSparkSQLS) |
+-----------------------+
| |
+-----------------------
Spark 2.4 – Correct
jdbc:hive2://10.18.18.214:23040/default> SELECT trim('SL', 'SSparkSQLS');
+-----------------------+--+
| trim(SSparkSQLS, SL) |
+-----------------------+--+
| parkSQ |
+-----------------------+--+
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]