Would the following fix the issue of not wanting to convert array to object?
let data = if time_partition.is_some() || custom_partition.is_some() {
convert_array_to_object(
body_val,
time_partition.as_ref(),
time_partition_limit,
custom_partition.as_ref(),
schema_version,
)?
} else {
vec![body_val]
};
Originally posted by @de-sh in #1058 (comment)