tschwarzinger opened a new pull request, #27942: URL: https://github.com/apache/datafusion/pull/27942
## Which issue does this PR close? None, just a small addition to an example. ## Rationale for this change While reviewing https://github.com/apache/datafusion/pull/26822 I saw that https://github.com/apache/datafusion/issues/26866 has been closed which I found great! :partying_face: This PR adds the feature from #26866 to the temperature extension type example. For now, I've only added it to the tests. I can also add the describe query to the example's "main" if you think it helps. ## What changes are included in this PR? - Implement `DFExtensionType::display_name` for `TemperatureExtensionType` ## What is the testing strategy for this PR? - Test the `DESCRIBE` Manual Run: ```text tschwarzinger@pop-os /m/d/b/d/datafusion-examples (temp-example) [1]> cargo run --example extension_types -- all Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s Running `/mnt/data/bartgeier/datafusion/target/debug/examples/extension_types all` Running example: temperature +-------------+-------------+-------------+ | column_name | data_type | is_nullable | +-------------+-------------+-------------+ | city | Utf8 | NO | | celsius | TEMPERATURE | NO | | fahrenheit | TEMPERATURE | NO | | kelvin | TEMPERATURE | NO | +-------------+-------------+-------------+ +----------+----------+------------+----------+ | city | celsius | fahrenheit | kelvin | +----------+----------+------------+----------+ | Vienna | 15.10 °C | 59.18 °F | 288.25 K | | Tokyo | 22.50 °C | 72.50 °F | 295.65 K | | New York | 18.98 °C | 66.16 °F | 292.13 K | | Sydney | 25.00 °C | 77.00 °F | 298.15 K | +----------+----------+------------+----------+ ``` ## Are there any user-facing changes? - No, just an example update -- 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]
