fresh-borzoni commented on code in PR #214:
URL: https://github.com/apache/fluss-rust/pull/214#discussion_r2729726431


##########
crates/fluss/src/client/table/partition_getter.rs:
##########
@@ -17,40 +17,186 @@
 
 use crate::error::Error::IllegalArgument;
 use crate::error::Result;
-use crate::metadata::{DataType, RowType};
+use crate::metadata::{DataType, ResolvedPartitionSpec, RowType};
+use crate::row::InternalRow;
 use crate::row::field_getter::FieldGetter;
+use crate::util::partition;
 
+/// A getter to get partition name from a row.
 #[allow(dead_code)]
-pub struct PartitionGetter<'a> {
-    partitions: Vec<(&'a String, &'a DataType, FieldGetter)>,
+pub struct PartitionGetter {
+    partition_keys: Vec<String>,

Review Comment:
   I wonder if Arc[String] is better, this code is hot, here is makes sense. 
WDYT? 
   I mean this later feels heavy:
   ```rust
   ResolvedPartitionSpec::new(self.partition_keys.clone(), ...)
   ```
   
   Though it would require changes in other places. 
   
   Perhaps it's better to handle in separate PR if we consider this worth it
   cc @luoyuxia as well.



-- 
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]

Reply via email to