This is an automated email from the ASF dual-hosted git repository.
jonah pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new f667a01f11 Minor add ticket references to deprecated code (#14174)
f667a01f11 is described below
commit f667a01f1138466c36543bdc8a84583c3b151a38
Author: Andrew Lamb <[email protected]>
AuthorDate: Sun Jan 19 21:10:34 2025 -0500
Minor add ticket references to deprecated code (#14174)
---
datafusion/proto-common/src/from_proto/mod.rs | 2 ++
datafusion/proto-common/src/to_proto/mod.rs | 1 +
datafusion/proto/tests/cases/roundtrip_logical_plan.rs | 2 +-
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/datafusion/proto-common/src/from_proto/mod.rs
b/datafusion/proto-common/src/from_proto/mod.rs
index 37462acec7..73ccbf935b 100644
--- a/datafusion/proto-common/src/from_proto/mod.rs
+++ b/datafusion/proto-common/src/from_proto/mod.rs
@@ -321,6 +321,7 @@ impl TryFrom<&protobuf::Field> for Field {
fn try_from(field: &protobuf::Field) -> Result<Self, Self::Error> {
let datatype = field.arrow_type.as_deref().required("arrow_type")?;
let field = if field.dict_id != 0 {
+ // https://github.com/apache/datafusion/issues/14173
#[allow(deprecated)]
Self::new_dict(
field.name.as_str(),
@@ -436,6 +437,7 @@ impl TryFrom<&protobuf::ScalarValue> for ScalarValue {
let id = dict_batch.id();
let fields_using_this_dictionary = {
+ // See
https://github.com/apache/datafusion/issues/14173
#[allow(deprecated)]
schema.fields_with_dict_id(id)
};
diff --git a/datafusion/proto-common/src/to_proto/mod.rs
b/datafusion/proto-common/src/to_proto/mod.rs
index c69f7b85f4..83296ca76f 100644
--- a/datafusion/proto-common/src/to_proto/mod.rs
+++ b/datafusion/proto-common/src/to_proto/mod.rs
@@ -98,6 +98,7 @@ impl TryFrom<&Field> for protobuf::Field {
children: Vec::new(),
metadata: field.metadata().clone(),
#[allow(deprecated)]
+ // See https://github.com/apache/datafusion/issues/14173 to remove
deprecated dict_id
dict_id: field.dict_id().unwrap_or(0),
dict_ordered: field.dict_is_ordered().unwrap_or(false),
})
diff --git a/datafusion/proto/tests/cases/roundtrip_logical_plan.rs
b/datafusion/proto/tests/cases/roundtrip_logical_plan.rs
index 3544e6c28b..9a60c4f306 100644
--- a/datafusion/proto/tests/cases/roundtrip_logical_plan.rs
+++ b/datafusion/proto/tests/cases/roundtrip_logical_plan.rs
@@ -1815,7 +1815,7 @@ fn round_trip_datatype() {
}
}
-// TODO file a ticket about handling deprecated dict_id attributes
+// See https://github.com/apache/datafusion/issues/14173 to remove deprecated
dict_id
#[allow(deprecated)]
#[test]
fn roundtrip_dict_id() -> Result<()> {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]