maropu commented on issue #27024: [SPARK-29854]lpad and rpad built in function should throw Error or Exception for invalid length value URL: https://github.com/apache/spark/pull/27024#issuecomment-569395503 But, there are many functions having the same behaivour? e.g., ``` scala> sql("SELECT substring_index('www.apache.org', '.', 'Must be integer')").show() +----------------------------------------------------------------+ |substring_index(www.apache.org, ., CAST(Must be integer AS INT))| +----------------------------------------------------------------+ | null| +----------------------------------------------------------------+ ``` Actually, implicit casts do so.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
