Kapil Singh created SPARK-16890:
-----------------------------------
Summary: substring returns wrong result for positive position
Key: SPARK-16890
URL: https://issues.apache.org/jira/browse/SPARK-16890
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.0.0, 1.6.2, 1.5.2
Reporter: Kapil Singh
If position > 0 then substring function reduces it by 1. So if it is invoked
like substring("First", 1, 4) then result is "Fir" instead of "irs". This is
because UTF8String's substring method does this fancy modification before
invoking substring on underlying String.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]