Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
kyotoYaho committed Jul 14, 2022
1 parent 85aaf4d commit d1569f5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion datafusion/core/src/catalog/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,17 @@ mod tests {
#[tokio::test]
async fn test_schema_register_listing_table() {
let testdata = crate::test_util::parquet_test_data();
let filename = format!("file:///{}/{}", testdata, "alltypes_plain.parquet");
let testdir = if testdata.starts_with('/') {
format!("file://{}", testdata)
} else {
format!("file:///{}", testdata)
};
let filename = if testdir.ends_with('/') {
format!("{}{}", testdir, "alltypes_plain.parquet")
} else {
format!("{}/{}", testdir, "alltypes_plain.parquet")
};

let table_path = ListingTableUrl::parse(filename).unwrap();

let catalog = MemoryCatalogProvider::new();
Expand Down

0 comments on commit d1569f5

Please sign in to comment.