cloud-fan commented on issue #26165: [SPARK-29508][SQL] Implicitly cast strings in datetime arithmetic operations URL: https://github.com/apache/spark/pull/26165#issuecomment-545022065 Is it really a useful feature? Users can simply put the `INTERVAL` keyword before the string literal, like `timestamp'today' + interval'1 month'` For `timestamp_col + string_col`, I don't think it's reasonable to implicitly cast `string_col` to interval. People may get null result silently and hide the mistake(they may pick a wrong column to add).
---------------------------------------------------------------- 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]
