paleolimbot commented on issue #12644: URL: https://github.com/apache/datafusion/issues/12644#issuecomment-3427074234
For what it's worth, it looks like polars is implementing this as an `Extension` member on their `DataType` enum: https://github.com/geopolars/geopolars/issues/245#issuecomment-3422086194 Having something `Arc<dyn ExtensionTypeyThing>` is nice because it limits the points at which a "registry" is necessary. The registry (ideally in the session) produces objects that know how to print, cast, coerce, and compare equality so that we don't have to pipe a reference to the registry into every single `==` or cast involving data types. In Arrow C++ the only points at which the static registry are used are when importing serialized IPC or importing a type via the C data interface. -- 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]
