You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/06/05 01:52:13 UTC

[GitHub] [spark] lipzhu opened a new pull request #24802: [SPARK-27949][SQL]Support ANSI SQL grammar `substring(string_expression from n1 [for n2])`

lipzhu opened a new pull request #24802: [SPARK-27949][SQL]Support ANSI SQL grammar `substring(string_expression from n1 [for n2])`
URL: https://github.com/apache/spark/pull/24802
 
 
   ## What changes were proposed in this pull request?
   
   Currently, function substr/substring's usage is like substring(string_expression, n1 [,n2]). 
   
   But the ANSI SQL defined the pattern for substr/substring is like substring(string_expression from n1 [for n2]). This gap make some inconvenient when we switch to the SparkSQL.
   
   Can we support the ANSI pattern like substring(string_expression from n1 [for n2])?
   
   http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
   
   ## How was this patch tested?
   Pass the Jenkins with the updated test cases.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org