luoyuxia commented on code in PR #57:
URL: https://github.com/apache/fluss-rust/pull/57#discussion_r2587143195
##########
crates/fluss/src/client/table/scanner.rs:
##########
@@ -298,7 +298,11 @@ impl LogFetcher {
} else {
let (projection_enabled, projected_fields) = match
self.read_context.project_fields() {
None => (false, vec![]),
- Some(fields) => (true, fields.iter().map(|&i| i as
i32).collect()),
+ Some(fields) => {
+ let mut sorted: Vec<i32> = fields.iter().map(|&i| i as
i32).collect();
+ sorted.sort_unstable();
Review Comment:
we don't need to sort. Server will always return ordered arrow record batch
for better zero copy
--
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]