mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
fix: is file
This commit is contained in:
@@ -91,6 +91,11 @@ async fn main() {
|
||||
.await
|
||||
.expect("Failed to list parquet files");
|
||||
|
||||
let all_parquets = all_parquets
|
||||
.iter()
|
||||
.filter(|parquet| parquet.name().ends_with(".parquet") && parquet.metadata().is_file())
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let input_files = all_parquets
|
||||
.iter()
|
||||
.map(|parquet| {
|
||||
@@ -120,6 +125,11 @@ async fn main() {
|
||||
.await
|
||||
.expect("Failed to list json files");
|
||||
|
||||
let all_jsons = all_jsons
|
||||
.iter()
|
||||
.filter(|json| json.name().ends_with(".json") && json.metadata().is_file())
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let input_files = all_jsons
|
||||
.iter()
|
||||
.map(|entry| {
|
||||
|
||||
Reference in New Issue
Block a user