andygrove commented on issue #3093: URL: https://github.com/apache/datafusion-comet/issues/3093#issuecomment-5113044042
`ParseToDate` is a `RuntimeReplaceable` expression. The `ReplaceExpressions` rule (Finish Analysis batch) substitutes it with its `replacement` before physical planning, so the class never appears in a physical plan and Comet's expression serde never sees it. Registering a `CometExpressionSerde` for it would be dead code. Its replacement is `Cast(GetTimestamp(...), DateType)` when a format is given, and a plain `Cast(child, DateType)` otherwise. Comet already handles both `Cast` and `GetTimestamp` (`CometGetTimestamp`), so `to_date` already runs inside Comet today without a serde for this class. Closing as not actionable as specified. -- 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]
