paleolimbot opened a new issue, #17862: URL: https://github.com/apache/datafusion/issues/17862
### Is your feature request related to a problem or challenge? The logical expr `Placeholder` is currently defined in terms of `DataType`: https://github.com/apache/datafusion/blob/35f45b544de86965e55a91704ca6054cbd109abc/datafusion/expr/src/expr.rs#L1364-L1374 We're hoping to use this to implement parameterized queries in SedonaDB and we'd love to be able to attach field metadata to this (either like `Literal` with extra metadata, or like scalar functions where we use a `FieldRef`). It may be that these placeholder types are inferred correctly (I haven't checked). ### Describe the solution you'd like Either adding field metadata or expressing the data type as a field ref would allow literals with an extension type to be plugged in here. ### Describe alternatives you've considered We can produce non-parameterized SQL strings to function calls that produce an extension type. ### Additional context _No response_ -- 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]
