paleolimbot commented on PR #18243:
URL: https://github.com/apache/datafusion/pull/18243#issuecomment-3598860546
@batmnnn I see
```
error[E0599]: no method named `into_nullable_field_ref` found for enum
`arrow::datatypes::DataType` in the current scope
--> datafusion/sql/src/expr/identifier.rs:48:38
|
48 | .map(|ty| ty.into_nullable_field_ref())
| ^^^^^^^^^^^^^^^^^^^^^^^
|
::: /__w/datafusion/datafusion/datafusion/common/src/datatype.rs:51:8
|
51 | fn into_nullable_field_ref(self) -> FieldRef;
| ----------------------- the method is available for
`arrow::datatypes::DataType` here
|
= help: items from traits can only be used if the trait is in scope
help: trait `DataTypeExt` which provides `into_nullable_field_ref` is
implemented but not in scope; perhaps you want to import it
|
18 + use datafusion_common::datatype::DataTypeExt;
|
help: there is a method `into_nullable_field` with a similar name
|
48 - .map(|ty| ty.into_nullable_field_ref())
48 + .map(|ty| ty.into_nullable_field())
|
error[E0599]: no method named `into_nullable_field_ref` found for enum
`arrow::datatypes::DataType` in the current scope
--> datafusion/sql/src/expr/identifier.rs:125:38
|
125 | .map(|ty| ty.into_nullable_field_ref())
| ^^^^^^^^^^^^^^^^^^^^^^^
|
::: /__w/datafusion/datafusion/datafusion/common/src/datatype.rs:51:8
|
51 | fn into_nullable_field_ref(self) -> FieldRef;
| ----------------------- the method is available for
`arrow::datatypes::DataType` here
|
= help: items from traits can only be used if the trait is in scope
help: trait `DataTypeExt` which provides `into_nullable_field_ref` is
implemented but not in scope; perhaps you want to import it
|
18 + use datafusion_common::datatype::DataTypeExt;
|
help: there is a method `into_nullable_field` with a similar name
|
125 - .map(|ty| ty.into_nullable_field_ref())
125 + .map(|ty| ty.into_nullable_field())
|
```
I think the suggestion `use datafusion_common::datatype::DataTypeExt;` will
get you there 🙂 . It is also worth running `cargo test` locally (or `cargo test
-p datafusion-expr` for a smaller subset of those tests) to ensure crate
compiles and the tests run!
--
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]