You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow SQL TypePlanner to plan SQL types as extension types (#20676)
## Which issue does this PR close?
- Closes#20675
## Rationale for this change
The existing enum `SQLDataType` has a number of existing members that
have canonical Arrow extension type equivalents; however, the
`TypePlanner` trait only supports returning `DataType` (which cannot
represent an Arrow extension type).
This will be substantially more useful after
#18136, as the SQL planner
inserts casts in a number of places (and currently the extension
metadata of those casts is dropped when the logical cast is created).
## What changes are included in this PR?
This PR adds a `fn plan_type_field()` member to the `TypePlanner` trait.
The only place that the previously existing `plan_type()` member was
called was already wrapping it in a `FieldRef` and so few other changes
were needed.
## Are these changes tested?
Yes
## Are there any user-facing changes?
Existing `TypePlanner`s will continue to work and an example was added
for supporting the UUID type.
0 commit comments