This is an automated email from the ASF dual-hosted git repository. xushiyan pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/hudi-rs.git
The following commit(s) were added to refs/heads/main by this push: new 82c1dce ci: fix failing check and test case (#10) 82c1dce is described below commit 82c1dce7848b117ec95107e08dfeded6f34e0b37 Author: Shiyan Xu <2701446+xushi...@users.noreply.github.com> AuthorDate: Sat May 4 02:24:54 2024 -0500 ci: fix failing check and test case (#10) fixes #4 --- .licenserc.yaml | 1 + crates/core/src/table/meta_client.rs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 8fb45ba..2ec3964 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -23,6 +23,7 @@ header: paths-ignore: - 'LICENSE' - 'NOTICE' + - '**/fixtures/**' comment: on-failure diff --git a/crates/core/src/table/meta_client.rs b/crates/core/src/table/meta_client.rs index f8c8e41..27f0cf9 100644 --- a/crates/core/src/table/meta_client.rs +++ b/crates/core/src/table/meta_client.rs @@ -120,9 +120,10 @@ fn meta_client_get_partition_paths() { let target_table_path = extract_test_table(fixture_path); let meta_client = MetaClient::new(&target_table_path); let partition_paths = meta_client.get_partition_paths().unwrap(); + let partition_path_set: HashSet<&str> = HashSet::from_iter(partition_paths.iter().map(|p| p.as_str())); assert_eq!( - partition_paths, - vec!["chennai", "sao_paulo", "san_francisco"] + partition_path_set, + HashSet::from_iter(vec!["chennai", "sao_paulo", "san_francisco"]) ) }