xushiyan commented on code in PR #119:
URL: https://github.com/apache/hudi-rs/pull/119#discussion_r1759799028
##########
crates/core/src/table/mod.rs:
##########
@@ -234,6 +239,23 @@ impl Table {
self.timeline.get_latest_schema().await
}
+ pub async fn get_partition_schema(&self) -> Result<Schema> {
+ let schema = self.get_schema().await;
+ let partition_str_vec = self
+ .configs
+ .get_or_default(PartitionFields)
+ .to::<Vec<String>>();
+ let partition_set: HashSet<String> =
partition_str_vec.into_iter().collect();
+ let partition_fields: Vec<Arc<Field>> = schema
+ .unwrap()
Review Comment:
this was fixed.
##########
crates/core/src/table/mod.rs:
##########
@@ -234,6 +239,23 @@ impl Table {
self.timeline.get_latest_schema().await
}
+ pub async fn get_partition_schema(&self) -> Result<Schema> {
+ let schema = self.get_schema().await;
+ let partition_str_vec = self
Review Comment:
this was fixed.
--
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]