ivan-kiselev commented on code in PR #27919:
URL: https://github.com/apache/datafusion/pull/27919#discussion_r4767320354
##########
datafusion/common/src/nested_struct.rs:
##########
@@ -720,8 +720,30 @@ fn map_struct_fields(
target_fields: &[FieldRef],
mut mapped_source_fields: Option<&mut Vec<Option<usize>>>,
) -> Result<()> {
+ const LINEAR_SEARCH_MAX_FIELDS: usize = 32;
Review Comment:
This cutoff is decided simply based on local benchmarks.
--
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]