comphead commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1476915870
##########
datafusion/common/src/dfschema.rs:
##########
@@ -112,6 +112,10 @@ pub struct DFSchema {
metadata: HashMap<String, String>,
/// Stores functional dependencies in the schema.
functional_dependencies: FunctionalDependencies,
+ /// Fields map
+ /// key - fully qualified field name
+ /// value - field index in schema
+ fields_map: BTreeMap<String, usize>,
Review Comment:
Name is also a String? should this also cause a copy?
Btw why it causes copy in the first place?
--
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]