You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "pavithra ramachandran (Jira)" <ji...@apache.org> on 2019/11/07 06:00:00 UTC
[jira] [Commented] (SPARK-29784) Built in function trim is not
compatible in 3.0 with previous version
[ https://issues.apache.org/jira/browse/SPARK-29784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16968949#comment-16968949 ]
pavithra ramachandran commented on SPARK-29784:
-----------------------------------------------
i shall work on this
> 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
> Priority: Major
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org