You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ABHISHEK KUMAR GUPTA (Jira)" <ji...@apache.org> on 2019/11/12 05:34:00 UTC

[jira] [Created] (SPARK-29853) lpad returning empty instead of NULL for empty pad value

ABHISHEK KUMAR GUPTA created SPARK-29853:
--------------------------------------------

             Summary: lpad returning empty instead of NULL for empty pad value
                 Key: SPARK-29853
                 URL: https://issues.apache.org/jira/browse/SPARK-29853
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: ABHISHEK KUMAR GUPTA


Spark

0: jdbc:hive2://10.18.18.214:23040/default> SELECT lpad('hi', 5, '');
+----------------+--+
| lpad(hi, 5, ) |
+----------------+--+
| hi |
+----------------+--+
1 row selected (0.186 seconds)

Hive:

INFO : Concurrency mode is disabled, not creating a lock manager
+-------+
| _c0 |
+-------+
| NULL |
+-------+



--
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