Skip to content

Commit 73baae2

Browse files
Taking care of review comments
1 parent f2c6eaa commit 73baae2

6 files changed

Lines changed: 339 additions & 137 deletions

File tree

src/catalog.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,23 @@ impl CatalogProvider for DuckLakeCatalog {
7171
let data_schemas = self
7272
.provider
7373
.list_schemas(snapshot_id)
74+
.inspect_err(|e| {
75+
tracing::error!(
76+
error = %e,
77+
snapshot_id = %snapshot_id,
78+
"Failed to list schemas from catalog"
79+
)
80+
})
7481
.unwrap_or_default()
7582
.into_iter()
7683
.map(|s| s.schema_name);
7784

7885
names.extend(data_schemas);
86+
87+
// Ensure deterministic order and no duplicates
88+
names.sort();
89+
names.dedup();
90+
7991
names
8092
}
8193

0 commit comments

Comments
 (0)