dengziming commented on PR #52012:
URL: https://github.com/apache/spark/pull/52012#issuecomment-3196789780

   > Obviously, the original test cases `month(date)` not be analyzed to 
`month(cast(date) as date) `, so it could be pushed. Please tell me more about 
how it will be analyzed to `month(cast(date) as date) `?
   
   Thank for your reply @beliefer , I mean Oracle doesn't distinguish 
TimeType/TimestampType/DateType, all DateType queries to Oracle will be 
converted to TimestampType, so `month(date)` will be analyzed to 
`month(cast(date) as date)`, see the screenshot below. 
   <img width="1884" height="886" alt="image" 
src="https://github.com/user-attachments/assets/e3de7e79-b36d-4508-804b-f0b6e7dc8ee9";
 />
   
   
   
   


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

To unsubscribe, e-mail: [email protected]

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