You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let table_root = Url::parse("memory:///").unwrap();
214
235
let engine = DefaultEngine::new(storage.clone());
@@ -225,18 +246,16 @@ mod tests {
225
246
let snapshot = crate::snapshot::SnapshotBuilder::new_for(table_root)
226
247
.build(&engine)
227
248
.unwrap();
228
-
// Try to create a transaction with FileSystemCommitter
249
+
// Try to commit a transaction with FileSystemCommitter
229
250
let committer = Box::new(FileSystemCommitter::new());
230
-
let err = snapshot.transaction(committer).unwrap_err();
251
+
let err = snapshot
252
+
.transaction(committer)
253
+
.unwrap()
254
+
.commit(&engine)
255
+
.unwrap_err();
231
256
assert!(matches!(
232
257
err,
233
-
crate::Error::Unsupported(e)if e.contains("Writes are not yet supported for catalog-managed tables")
258
+
crate::Error::Generic(e)if e.contains("The FileSystemCommitter cannot be used to commit to catalog-managed tables. Please provide a committer for your catalog via Transaction::with_committer().")
234
259
));
235
-
// after allowing writes, we will check that this disallows default committer for
236
-
// catalog-managed tables.
237
-
// assert!(matches!(
238
-
// err,
239
-
// crate::Error::Generic(e) if e.contains("Cannot use the default committer for a catalog-managed table")
0 commit comments