comphead commented on code in PR #15847:
URL: https://github.com/apache/datafusion/pull/15847#discussion_r2061501099
##########
datafusion/common/src/dfschema.rs:
##########
@@ -969,12 +969,15 @@ impl Display for DFSchema {
/// widely used in the DataFusion codebase.
pub trait ExprSchema: std::fmt::Debug {
/// Is this column reference nullable?
+ #[deprecated(since = "48.0.0", note = "Use ExprSchemable::to_field")]
fn nullable(&self, col: &Column) -> Result<bool>;
/// What is the datatype of this column?
+ #[deprecated(since = "48.0.0", note = "Use ExprSchemable::to_field")]
Review Comment:
```suggestion
#[deprecated(since = "48.0.0", note = "Use ExprSchemable::data_type")]
```
##########
datafusion/common/src/dfschema.rs:
##########
@@ -969,12 +969,15 @@ impl Display for DFSchema {
/// widely used in the DataFusion codebase.
pub trait ExprSchema: std::fmt::Debug {
/// Is this column reference nullable?
+ #[deprecated(since = "48.0.0", note = "Use ExprSchemable::to_field")]
fn nullable(&self, col: &Column) -> Result<bool>;
/// What is the datatype of this column?
+ #[deprecated(since = "48.0.0", note = "Use ExprSchemable::to_field")]
fn data_type(&self, col: &Column) -> Result<&DataType>;
/// Returns the column's optional metadata.
+ #[deprecated(since = "48.0.0", note = "Use ExprSchemable::to_field")]
Review Comment:
```suggestion
#[deprecated(since = "48.0.0", note = "Use ExprSchemable::metadata")]
```
--
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]