crepererum commented on code in PR #7870:
URL: https://github.com/apache/arrow-datafusion/pull/7870#discussion_r1369928872
##########
datafusion/common/src/dfschema.rs:
##########
@@ -102,8 +217,12 @@ impl DFSchema {
));
}
}
+
+ let fields_index = build_index(&fields);
Review Comment:
this use case might indeed be a good call of interior mutability, i.e. use
an RWLock and init the lookup table on the first use
--
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]