Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/20464
  
    I was just manually double checking both substr in R and this. It seems 
correct; however, I think we should add a note in the doc and release note ... 
    
    One followup question is though, would it be difficult to match the 
behaviour with substr in R when the index is 0 or minus? If i understood 
https://github.com/apache/spark/pull/20464#issuecomment-362150632 correctly, it 
sounds better to match it to substr's behaviour in R. Took a quick look/test 
and seems we can just set `start` to 1 for both cases.
    
    If this followup question is something we are not sure yet, I think we 
might be okay as is.
    



---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to