beliefer commented on PR #52012: URL: https://github.com/apache/spark/pull/52012#issuecomment-3199002527
> 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 alt="image" width="1884" height="886" src="https://private-user-images.githubusercontent.com/26023240/479051188-e3de7e79-b36d-4508-804b-f0b6e7dc8ee9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTU1NzA0NzEsIm5iZiI6MTc1NTU3MDE3MSwicGF0aCI6Ii8yNjAyMzI0MC80NzkwNTExODgtZTNkZTdlNzktYjM2ZC00NTA4LTgwNGItZjBiNmU3ZGM4ZWU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODE5VDAyMjI1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxYzQ0MjMwY2QyMjU2Yzc0YjVjN2EwNDc5MzE5MTcxNjU5MDc5NDQ1OWUzNjc2OGMwMzUxNWI 0ZjI3MTYyNTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.vo7arDDRfZgXG8lhKxYGMt967xweizC4VUge5IlpTfI"> What data type of `date1#17` here? -- 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]
