sathyaprakashg commented on pull request #28703:
URL: https://github.com/apache/spark/pull/28703#issuecomment-641075311


   @bart-samwel @cloud-fan @maropu 
   
   In case of subtract use case, If left expression is string and right 
expression is timestamp, then there is no ambiguity. Timestamp is the only data 
type possible for left expression.
   
   But, if left expression is timestamp and right expression is string, then 
right expression could be timestamp or interval. So, there is ambiguity.
   
   So, if that is the reason why we used ExpectsInputTypes instead of 
ImplicitCastInputTypes in SubtractTimestamps then we could close this PR. 
   
   Please let me know your comments


----------------------------------------------------------------
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]



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

Reply via email to