Skip to content

Commit 56391bd

Browse files
author
Devdutt Shenoi
committed
fix: consider current time
1 parent 523ecc7 commit 56391bd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/query/stream_schema_provider.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -739,14 +739,12 @@ pub fn include_now(filters: &[Expr], time_partition: &Option<String>) -> bool {
739739

740740
let time_filters = extract_primary_filter(filters, time_partition);
741741

742-
let upper_bound_matches = time_filters.iter().any(|filter| match filter {
742+
if time_filters.iter().any(|filter| match filter {
743743
PartialTimeFilter::High(Bound::Excluded(time))
744744
| PartialTimeFilter::High(Bound::Included(time))
745-
| PartialTimeFilter::Eq(time) => time > &current_minute,
745+
| PartialTimeFilter::Eq(time) => time >= &current_minute,
746746
_ => false,
747-
});
748-
749-
if upper_bound_matches {
747+
}) {
750748
return true;
751749
}
752750

0 commit comments

Comments
 (0)