Skip to content

Commit

Permalink
log query without partition prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
houqp committed May 28, 2024
1 parent 524670a commit 59c6b0e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion datafusion/core/src/datasource/listing/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use arrow_array::Array;
use arrow_schema::Fields;
use futures::stream::FuturesUnordered;
use futures::{stream::BoxStream, StreamExt, TryStreamExt};
use log::{debug, trace};
use log::{debug, trace, warn};

use crate::{error::Result, scalar::ScalarValue};

Expand Down Expand Up @@ -367,6 +367,12 @@ pub async fn pruned_partition_list<'a>(
_ => {}
}
}
if partitioned_table_path.is_none() {
warn!(
"table ({}) query without partition prefix: {:?}",
table_path, filters
);
}
let partitions = list_partitions(
store,
partitioned_table_path.as_ref().unwrap_or(table_path),
Expand Down

0 comments on commit 59c6b0e

Please sign in to comment.