You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "xudong963 (via GitHub)" <gi...@apache.org> on 2026/07/21 07:26:52 UTC
[PR] feat: add IEJoin for joins with two range predicates [datafusion]
xudong963 opened a new pull request, #23741:
URL: https://github.com/apache/datafusion/pull/23741
## Which issue does this PR close?
None. This draft PR was requested without a tracking issue.
## Rationale for this change
Joins with two inequality predicates, such as interval-overlap joins, currently cannot use the single-predicate Piecewise Merge Join path and may fall back to a nested-loop evaluation. IEJoin evaluates this pattern with two sorted orders, an inverse permutation, and a bitmap, avoiding materializing the candidate cross product.
The implementation is experimental and disabled by default.
## What changes are included in this PR?
- Add `IEJoinExec` for Inner joins with exactly two `<`, `<=`, `>`, or `>=` predicates.
- Support optional equality keys by co-partitioning the inputs and rechecking complete equality keys after hash grouping.
- Preserve additional join predicates as residual filters and exclude volatile expressions from IEJoin driver selection.
- Implement bounded-batch output streaming, hierarchical sparse bitmap scans, memory-pool accounting, and controlled resource-exhaustion errors.
- Add planner selection behind `datafusion.optimizer.enable_ie_join`, which defaults to `false`.
- Add differential, null/NaN/signed-zero, forced-hash-collision, multi-word bitmap, cross-batch cursor, memory-limit, SQLLogicTest, planner integration, and dictionary-buffer reservation coverage.
- Add an IEJoin benchmark and document the new configuration option.
The initial scope is Inner joins only. Outer, semi, and anti joins and spilling are not included.
## Are these changes tested?
Yes. The following checks pass on the current `main` base:
- `cargo fmt --all -- --check`
- `CARGO_INCREMENTAL=0 CARGO_PROFILE_DEV_DEBUG=0 cargo clippy -j 1 --all-targets --all-features -- -D warnings`
- `./ci/scripts/doc_prettier_check.sh --write --allow-dirty`
- Feature-enabled `datafusion-physical-plan` IEJoin unit tests: 10 passed, including all 16 operator pairs, both null-equality modes, forced hash collisions, a 5,000-row bitmap group, and cross-batch cursor retention.
- `physical_planner::tests::ie_join_plans_and_executes_keyed_interval_overlap`
- `datafusion/sqllogictest/test_files/ie_join.slt`
The extended workspace test command was also attempted locally. Compilation reached final test-binary linking, but the shared development disk ran out of space (`errno=28`) before the suite could execute; no test failure or compiler diagnostic was reported. Draft CI can run the complete suite.
## Are there any user-facing changes?
Yes. This adds the experimental `datafusion.optimizer.enable_ie_join` configuration option, disabled by default, and exports `IEJoinExec` and `IEJoinCondition` from `datafusion-physical-plan`. The configuration documentation is updated. There are no breaking changes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: add IEJoin for joins with two range predicates [datafusion]
Posted by "jonathanc-n (via GitHub)" <gi...@apache.org>.
jonathanc-n commented on code in PR #23741:
URL: https://github.com/apache/datafusion/pull/23741#discussion_r3688199160
##########
datafusion/physical-plan/src/joins/ie_join/exec.rs:
##########
@@ -0,0 +1,509 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+use std::fmt::Formatter;
+use std::sync::Arc;
+
+use arrow::compute::concat_batches;
+use arrow::record_batch::RecordBatch;
+use arrow_schema::SchemaRef;
+use datafusion_common::utils::memory::RecordBatchMemoryCounter;
+use datafusion_common::{
+ JoinType, NullEquality, Result, Statistics, internal_err, plan_err,
+};
+use datafusion_execution::TaskContext;
+use datafusion_execution::memory_pool::{MemoryConsumer, MemoryReservation};
+use datafusion_expr::Operator;
+use datafusion_physical_expr::equivalence::join_equivalence_properties;
+use datafusion_physical_expr::{Distribution, PhysicalExprRef};
+use datafusion_physical_expr_common::physical_expr::{fmt_sql, is_volatile};
+use futures::{FutureExt, StreamExt};
+
+use crate::execution_plan::{EmissionType, boundedness_from_children};
+use crate::joins::ie_join::algorithm::IEJoinData;
+use crate::joins::ie_join::stream::{IEJoinMetrics, IEJoinStream};
+use crate::joins::utils::{
+ ColumnIndex, JoinFilter, build_join_schema, check_join_is_valid,
+ estimate_join_statistics, symmetric_join_output_partitioning,
+};
+use crate::joins::{JoinOn, JoinOnRef};
+use crate::spill::get_record_batch_memory_size;
+use crate::statistics::{ChildStats, StatisticsArgs};
+use crate::{
+ DisplayAs, DisplayFormatType, ExecutionPlan, ExecutionPlanProperties,
+ InputDistributionRequirements, Partitioning, PlanProperties,
+ SendableRecordBatchStream, check_if_same_properties,
+};
+
+/// One of the two range predicates that drive [`IEJoinExec`].
+#[derive(Debug, Clone)]
+pub struct IEJoinCondition {
+ left: PhysicalExprRef,
+ right: PhysicalExprRef,
+ operator: Operator,
+}
+
+impl IEJoinCondition {
+ /// Creates a normalized `left OP right` range condition.
+ pub fn new(
+ left: PhysicalExprRef,
+ right: PhysicalExprRef,
+ operator: Operator,
+ ) -> Self {
+ Self {
+ left,
+ right,
+ operator,
+ }
+ }
+
+ /// Expression evaluated against the left input.
+ pub fn left(&self) -> &PhysicalExprRef {
+ &self.left
+ }
+
+ /// Expression evaluated against the right input.
+ pub fn right(&self) -> &PhysicalExprRef {
+ &self.right
+ }
+
+ /// Range comparison operator.
+ pub fn operator(&self) -> Operator {
+ self.operator
+ }
+}
+
+/// An inequality join using two sorted orders, a permutation, and a bitmap.
+///
+/// With equality keys, both inputs are co-partitioned by those keys. Inside
+/// each input partition, rows are grouped by equality-key hash before the two
+/// range predicates are evaluated. Hash collisions are checked with the full
+/// equality expressions, so they cannot affect correctness.
+///
+/// Both input partitions are materialized. Candidate pairs are emitted in
+/// bounded batches and the bitmap scan retains its cursor across polls, so the
+/// output cardinality never determines intermediate memory usage.
+#[derive(Debug)]
+pub struct IEJoinExec {
+ left: Arc<dyn ExecutionPlan>,
+ right: Arc<dyn ExecutionPlan>,
+ on: JoinOn,
+ conditions: [IEJoinCondition; 2],
+ filter: Option<JoinFilter>,
+ join_type: JoinType,
+ null_equality: NullEquality,
+ schema: SchemaRef,
+ column_indices: Vec<ColumnIndex>,
+ metrics: crate::metrics::ExecutionPlanMetricsSet,
+ cache: Arc<PlanProperties>,
+}
+
+impl IEJoinExec {
+ /// Creates an inner IEJoin from optional equality keys and exactly two
+ /// normalized range conditions. Each condition's left and right physical
+ /// expressions must have identical data types. SQL planning inserts any
+ /// required casts; programmatic callers must insert them explicitly.
+ pub fn try_new(
+ left: Arc<dyn ExecutionPlan>,
+ right: Arc<dyn ExecutionPlan>,
+ on: JoinOn,
+ conditions: [IEJoinCondition; 2],
+ filter: Option<JoinFilter>,
+ join_type: JoinType,
+ null_equality: NullEquality,
+ ) -> Result<Self> {
+ if join_type != JoinType::Inner {
+ return plan_err!(
+ "IEJoinExec currently supports Inner joins, got {join_type}"
+ );
+ }
+ for condition in &conditions {
+ if is_volatile(condition.left()) || is_volatile(condition.right()) {
+ return plan_err!(
+ "IEJoinExec range conditions must not contain volatile expressions"
+ );
+ }
+ if !matches!(
+ condition.operator,
+ Operator::Lt | Operator::LtEq | Operator::Gt | Operator::GtEq
+ ) {
+ return plan_err!(
+ "IEJoinExec requires <, <=, >, or >=, got {}",
+ condition.operator
+ );
+ }
+ let left_type = condition.left.data_type(&left.schema())?;
+ let right_type = condition.right.data_type(&right.schema())?;
+ if left_type != right_type {
+ return plan_err!(
+ "IEJoinExec condition types differ: {left_type} and {right_type}; physical expressions must be explicitly coerced to identical types"
+ );
+ }
+ }
+
+ check_join_is_valid(&left.schema(), &right.schema(), &on)?;
+ let (schema, column_indices) =
+ build_join_schema(&left.schema(), &right.schema(), &join_type);
+ let schema = Arc::new(schema);
+ let cache = Arc::new(Self::compute_properties(
+ &left, &right, &schema, join_type, &on,
+ )?);
+
+ Ok(Self {
+ left,
+ right,
+ on,
+ conditions,
+ filter,
+ join_type,
+ null_equality,
+ schema,
+ column_indices,
+ metrics: Default::default(),
+ cache,
+ })
+ }
+
+ pub fn left(&self) -> &Arc<dyn ExecutionPlan> {
+ &self.left
+ }
+
+ pub fn right(&self) -> &Arc<dyn ExecutionPlan> {
+ &self.right
+ }
+
+ pub fn on(&self) -> JoinOnRef<'_> {
+ &self.on
+ }
+
+ pub fn conditions(&self) -> &[IEJoinCondition; 2] {
+ &self.conditions
+ }
+
+ pub fn filter(&self) -> Option<&JoinFilter> {
+ self.filter.as_ref()
+ }
+
+ pub fn join_type(&self) -> JoinType {
+ self.join_type
+ }
+
+ pub fn null_equality(&self) -> NullEquality {
+ self.null_equality
+ }
+
+ fn compute_properties(
+ left: &Arc<dyn ExecutionPlan>,
+ right: &Arc<dyn ExecutionPlan>,
+ schema: &SchemaRef,
+ join_type: JoinType,
+ on: JoinOnRef<'_>,
+ ) -> Result<PlanProperties> {
+ let eq_properties = join_equivalence_properties(
+ left.equivalence_properties().clone(),
+ right.equivalence_properties().clone(),
+ &join_type,
+ Arc::clone(schema),
+ &[false, false],
+ None,
+ on,
+ )?;
+ let output_partitioning = if on.is_empty() {
+ Partitioning::UnknownPartitioning(1)
+ } else {
+ symmetric_join_output_partitioning(left, right, &join_type)?
+ };
+ Ok(PlanProperties::new(
+ eq_properties,
+ output_partitioning,
+ EmissionType::Final,
+ boundedness_from_children([left, right]),
Review Comment:
boundedness_from_children + emissiontype::final means an unbounded input would buffer forever. I think we can consider rejecting unbounded inputs
##########
datafusion/physical-plan/src/joins/ie_join/stream.rs:
##########
@@ -0,0 +1,429 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+use std::cmp::Ordering;
+use std::pin::Pin;
+use std::sync::Arc;
+use std::task::{Context, Poll, ready};
+
+use arrow::array::{UInt32Array, UInt64Array};
+use arrow::record_batch::RecordBatch;
+use arrow_ord::ord::{DynComparator, make_comparator};
+use arrow_schema::{SchemaRef, SortOptions};
+use datafusion_common::{JoinSide, JoinType, NullEquality, Result};
+use datafusion_expr::Operator;
+use futures::future::BoxFuture;
+use futures::{FutureExt, Stream};
+
+use crate::RecordBatchStream;
+use crate::joins::JoinOn;
+use crate::joins::ie_join::algorithm::{ActiveBitmap, IEJoinData, RightGroup};
+use crate::joins::ie_join::exec::IEJoinCondition;
+use crate::joins::utils::{
+ ColumnIndex, JoinFilter, apply_join_filter_to_indices, build_batch_from_indices,
+ equal_rows_arr,
+};
+use crate::metrics::{Count, ExecutionPlanMetricsSet, Gauge, MetricBuilder, Time};
+
+#[derive(Clone)]
+pub(super) struct IEJoinMetrics {
+ pub load_time: Time,
+ pub join_time: Time,
+ pub left_input_batches: Count,
+ pub right_input_batches: Count,
+ pub left_input_rows: Count,
+ pub right_input_rows: Count,
+ pub candidate_rows: Count,
+ pub output_batches: Count,
+ pub output_rows: Count,
+ pub peak_mem_used: Gauge,
+}
+
+impl IEJoinMetrics {
+ pub fn new(partition: usize, metrics: &ExecutionPlanMetricsSet) -> Self {
+ Self {
+ load_time: MetricBuilder::new(metrics).subset_time("load_time", partition),
+ join_time: MetricBuilder::new(metrics).subset_time("join_time", partition),
+ left_input_batches: MetricBuilder::new(metrics)
+ .counter("left_input_batches", partition),
+ right_input_batches: MetricBuilder::new(metrics)
+ .counter("right_input_batches", partition),
+ left_input_rows: MetricBuilder::new(metrics)
+ .counter("left_input_rows", partition),
+ right_input_rows: MetricBuilder::new(metrics)
+ .counter("right_input_rows", partition),
+ candidate_rows: MetricBuilder::new(metrics)
+ .counter("candidate_rows", partition),
+ output_batches: MetricBuilder::new(metrics)
+ .counter("output_batches", partition),
+ output_rows: MetricBuilder::new(metrics).counter("output_rows", partition),
+ peak_mem_used: MetricBuilder::new(metrics)
+ .peak_memory_usage("peak_mem_used", partition),
+ }
+ }
+}
+
+pub(super) struct IEJoinStream {
+ schema: SchemaRef,
+ column_indices: Vec<ColumnIndex>,
+ conditions: [IEJoinCondition; 2],
+ on: JoinOn,
+ filter: Option<JoinFilter>,
+ join_type: JoinType,
+ null_equality: NullEquality,
+ batch_size: usize,
+ state: StreamState,
+ metrics: IEJoinMetrics,
+}
+
+enum StreamState {
+ Loading(BoxFuture<'static, Result<IEJoinData>>),
+ Joining(Box<JoinState>),
+ Done,
+}
+
+struct CurrentLeft {
+ row: u32,
+ boundary: usize,
+ scan_position: usize,
+}
+
+struct JoinState {
+ data: IEJoinData,
+ first_comparator: DynComparator,
+ second_comparator: DynComparator,
+ active: ActiveBitmap,
+ active_memory: usize,
+ current_hash: Option<u64>,
+ current_group: Option<RightGroup>,
+ right_group_index: usize,
+ right_second_cursor: usize,
+ left_position: usize,
+ current_left: Option<CurrentLeft>,
+}
+
+impl IEJoinStream {
+ #[expect(clippy::too_many_arguments)]
+ pub fn new(
+ schema: SchemaRef,
+ column_indices: Vec<ColumnIndex>,
+ conditions: [IEJoinCondition; 2],
+ on: JoinOn,
+ filter: Option<JoinFilter>,
+ join_type: JoinType,
+ null_equality: NullEquality,
+ batch_size: usize,
+ load: BoxFuture<'static, Result<IEJoinData>>,
+ metrics: IEJoinMetrics,
+ ) -> Self {
+ Self {
+ schema,
+ column_indices,
+ conditions,
+ on,
+ filter,
+ join_type,
+ null_equality,
+ batch_size: batch_size.max(1),
+ state: StreamState::Loading(load),
+ metrics,
+ }
+ }
+
+ fn poll_next_impl(
+ &mut self,
+ cx: &mut Context<'_>,
+ ) -> Poll<Option<Result<RecordBatch>>> {
+ loop {
+ match &mut self.state {
+ StreamState::Loading(load) => {
+ let data = match ready!(load.poll_unpin(cx)) {
+ Ok(data) => data,
+ Err(error) => {
+ self.state = StreamState::Done;
+ return Poll::Ready(Some(Err(error)));
+ }
+ };
+ match JoinState::try_new(data, &self.metrics.peak_mem_used) {
+ Ok(state) => self.state = StreamState::Joining(Box::new(state)),
+ Err(error) => {
+ self.state = StreamState::Done;
+ return Poll::Ready(Some(Err(error)));
+ }
+ }
+ }
+ StreamState::Joining(state) => {
+ let timer = self.metrics.join_time.timer();
+ let result = state.next_batch(
+ &self.schema,
+ &self.column_indices,
+ &self.conditions,
+ &self.on,
+ self.filter.as_ref(),
+ self.join_type,
+ self.null_equality,
+ self.batch_size,
+ &self.metrics,
+ );
+ timer.done();
+ match result {
+ Ok(Some(batch)) => return Poll::Ready(Some(Ok(batch))),
+ Ok(None) => {
+ self.state = StreamState::Done;
+ return Poll::Ready(None);
+ }
+ Err(error) => {
+ self.state = StreamState::Done;
+ return Poll::Ready(Some(Err(error)));
+ }
+ }
+ }
+ StreamState::Done => return Poll::Ready(None),
+ }
+ }
+ }
+}
+
+impl Stream for IEJoinStream {
+ type Item = Result<RecordBatch>;
+
+ fn poll_next(
+ mut self: Pin<&mut Self>,
+ cx: &mut Context<'_>,
+ ) -> Poll<Option<Self::Item>> {
+ self.poll_next_impl(cx)
+ }
+}
+
+impl RecordBatchStream for IEJoinStream {
+ fn schema(&self) -> SchemaRef {
+ Arc::clone(&self.schema)
+ }
+}
+
+impl JoinState {
+ fn try_new(data: IEJoinData, peak_mem_used: &Gauge) -> Result<Self> {
+ let first_comparator = make_comparator(
+ data.left_keys[0].as_ref(),
+ data.right_keys[0].as_ref(),
+ SortOptions::default(),
+ )?;
+ let second_comparator = make_comparator(
+ data.left_keys[1].as_ref(),
+ data.right_keys[1].as_ref(),
+ SortOptions::default(),
+ )?;
+ let max_group = data
+ .right_groups
+ .iter()
+ .map(|group| group.first.len())
+ .max()
+ .unwrap_or(0);
+ let active = ActiveBitmap::new(max_group);
+ let active_memory = active.memory_size();
+ data.reservation.try_grow(active_memory)?;
+ peak_mem_used.set_max(data.reservation.size());
+
+ Ok(Self {
+ data,
+ first_comparator,
+ second_comparator,
+ active,
+ active_memory,
+ current_hash: None,
+ current_group: None,
+ right_group_index: 0,
+ right_second_cursor: 0,
+ left_position: 0,
+ current_left: None,
+ })
+ }
+
+ #[expect(clippy::too_many_arguments)]
+ fn next_batch(
+ &mut self,
+ schema: &SchemaRef,
+ column_indices: &[ColumnIndex],
+ conditions: &[IEJoinCondition; 2],
+ on: &JoinOn,
+ filter: Option<&JoinFilter>,
+ join_type: JoinType,
+ null_equality: NullEquality,
+ batch_size: usize,
+ metrics: &IEJoinMetrics,
+ ) -> Result<Option<RecordBatch>> {
+ loop {
+ let mut left_indices = Vec::with_capacity(batch_size);
+ let mut right_indices = Vec::with_capacity(batch_size);
+
+ while left_indices.len() < batch_size {
+ if self.current_left.is_none() && !self.start_next_left(conditions) {
+ break;
+ }
+ let current = self.current_left.as_mut().expect("set above");
+ let Some(position) = self
+ .active
+ .next_set(current.scan_position, current.boundary)
+ else {
+ self.current_left = None;
+ continue;
+ };
+ current.scan_position = position + 1;
+ let group = self
+ .current_group
+ .as_ref()
+ .expect("group set with left row");
+ let right_row = self.data.right_by_first[group.first.start + position];
+ left_indices.push(current.row as u64);
+ right_indices.push(right_row);
+ }
+
+ if left_indices.is_empty() {
+ return Ok(None);
+ }
+ metrics.candidate_rows.add(left_indices.len());
+ let mut left_indices = UInt64Array::from(left_indices);
+ let mut right_indices = UInt32Array::from(right_indices);
+
+ if !on.is_empty() {
+ (left_indices, right_indices) = equal_rows_arr(
+ &left_indices,
+ &right_indices,
+ &self.data.left_equality_keys,
+ &self.data.right_equality_keys,
+ null_equality,
+ )?;
+ }
+ if let Some(filter) = filter {
+ (left_indices, right_indices) = apply_join_filter_to_indices(
+ &self.data.left_batch,
+ &self.data.right_batch,
+ left_indices,
+ right_indices,
+ filter,
+ JoinSide::Left,
+ Some(batch_size),
+ join_type,
+ )?;
+ }
+ if left_indices.is_empty() {
Review Comment:
I think the candidates here satisfy both range predicates, and interval-overlap joins can generate o(n^2) of them. When equal_rows_arr or filter is very selective, this continue re enters the loop and a single poll_next can scan the entire candidate space without yielding
I think it can be fixed by bounding work by candidates examined per poll (not just rows emitted)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: add IEJoin for joins with two range predicates [datafusion]
Posted by "xudong963 (via GitHub)" <gi...@apache.org>.
xudong963 commented on PR #23741:
URL: https://github.com/apache/datafusion/pull/23741#issuecomment-5213126688
@jonathanc-n
Good catch on the candidate scan. I’ll bound candidates examined per poll, preserve the scan cursor, self-wake and return Pending when the budget is exhausted, and add an all-rejected residual-filter regression test.
For unbounded inputs, IEJoin already reports Unbounded + EmissionType::Final, which SanityCheckPlan rejects as pipeline-breaking. I’ll add a regression test demonstrating that behavior; let me know if you still prefer an additional guard for callers that bypass the physical optimizer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: add IEJoin for joins with two range predicates [datafusion]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23741:
URL: https://github.com/apache/datafusion/pull/23741#issuecomment-5031479106
<!-- semver-check-comment -->
Thank you for opening this pull request!
Reviewer note: [cargo-semver-checks](https://github.com/obi1kenobi/cargo-semver-checks) reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch).
<details>
<summary>Details</summary>
```
Cloning apache/main
Building datafusion v54.0.0 (current)
Built [ 110.768s] (current)
Parsing datafusion v54.0.0 (current)
Parsed [ 0.035s] (current)
Building datafusion v54.0.0 (baseline)
Built [ 104.990s] (baseline)
Parsing datafusion v54.0.0 (baseline)
Parsed [ 0.036s] (baseline)
Checking datafusion v54.0.0 -> v54.0.0 (no change; assume patch)
Checked [ 0.589s] 223 checks: 223 pass, 30 skip
Summary no semver update required
Finished [ 219.193s] datafusion
Building datafusion-common v54.0.0 (current)
Built [ 33.624s] (current)
Parsing datafusion-common v54.0.0 (current)
Parsed [ 0.059s] (current)
Building datafusion-common v54.0.0 (baseline)
Built [ 33.820s] (baseline)
Parsing datafusion-common v54.0.0 (baseline)
Parsed [ 0.060s] (baseline)
Checking datafusion-common v54.0.0 -> v54.0.0 (no change; assume patch)
Checked [ 0.655s] 223 checks: 222 pass, 1 fail, 0 warn, 30 skip
--- failure constructible_struct_adds_field: externally-constructible struct adds field ---
Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.48.0/src/lints/constructible_struct_adds_field.ron
Failed in:
field OptimizerOptions.enable_ie_join in /home/runner/work/datafusion/datafusion/datafusion/common/src/config.rs:1360
Summary semver requires new major version: 1 major and 0 minor checks failed
Finished [ 69.431s] datafusion-common
Building datafusion-physical-plan v54.0.0 (current)
Built [ 36.248s] (current)
Parsing datafusion-physical-plan v54.0.0 (current)
Parsed [ 0.146s] (current)
Building datafusion-physical-plan v54.0.0 (baseline)
Built [ 36.173s] (baseline)
Parsing datafusion-physical-plan v54.0.0 (baseline)
Parsed [ 0.142s] (baseline)
Checking datafusion-physical-plan v54.0.0 -> v54.0.0 (no change; assume patch)
Checked [ 0.620s] 223 checks: 223 pass, 30 skip
Summary no semver update required
Finished [ 74.418s] datafusion-physical-plan
Building datafusion-sqllogictest v54.0.0 (current)
Built [ 178.606s] (current)
Parsing datafusion-sqllogictest v54.0.0 (current)
Parsed [ 0.021s] (current)
Building datafusion-sqllogictest v54.0.0 (baseline)
Built [ 178.036s] (baseline)
Parsing datafusion-sqllogictest v54.0.0 (baseline)
Parsed [ 0.022s] (baseline)
Checking datafusion-sqllogictest v54.0.0 -> v54.0.0 (no change; assume patch)
Checked [ 0.081s] 223 checks: 223 pass, 30 skip
Summary no semver update required
Finished [ 359.836s] datafusion-sqllogictest
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: add IEJoin for joins with two range predicates [datafusion]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23741:
URL: https://github.com/apache/datafusion/pull/23741#issuecomment-6257906607
Thank you for your contribution. Unfortunately, this pull request is stale because it has been open 60 days with no activity. Please remove the stale label or comment or this will be closed in 7 days.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] feat: add IEJoin for joins with two range predicates [datafusion]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #23741:
URL: https://github.com/apache/datafusion/pull/23741#issuecomment-5031651522
## [Codecov](https://app.codecov.io/gh/apache/datafusion/pull/23741?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:x: Patch coverage is `84.55350%` with `192 lines` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 80.70%. Comparing base ([`9a50c67`](https://app.codecov.io/gh/apache/datafusion/commit/9a50c67db0c8a1b23d4068419e9fefd0804c1b0d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`5905dd7`](https://app.codecov.io/gh/apache/datafusion/commit/5905dd722c5137bc5de36ad1be2da07fee56d609?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 1 commits behind head on main.
| [Files with missing lines](https://app.codecov.io/gh/apache/datafusion/pull/23741?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [datafusion/physical-plan/src/joins/ie\_join/exec.rs](https://app.codecov.io/gh/apache/datafusion/pull/23741?src=pr&el=tree&filepath=datafusion%2Fphysical-plan%2Fsrc%2Fjoins%2Fie_join%2Fexec.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGF0YWZ1c2lvbi9waHlzaWNhbC1wbGFuL3NyYy9qb2lucy9pZV9qb2luL2V4ZWMucnM=) | 75.15% | [68 Missing and 14 partials :warning: ](https://app.codecov.io/gh/apache/datafusion/pull/23741?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...usion/physical-plan/src/joins/ie\_join/algorithm.rs](https://app.codecov.io/gh/apache/datafusion/pull/23741?src=pr&el=tree&filepath=datafusion%2Fphysical-plan%2Fsrc%2Fjoins%2Fie_join%2Falgorithm.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGF0YWZ1c2lvbi9waHlzaWNhbC1wbGFuL3NyYy9qb2lucy9pZV9qb2luL2FsZ29yaXRobS5ycw==) | 81.31% | [44 Missing and 30 partials :warning: ](https://app.codecov.io/gh/apache/datafusion/pull/23741?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [...tafusion/physical-plan/src/joins/ie\_join/stream.rs](https://app.codecov.io/gh/apache/datafusion/pull/23741?src=pr&el=tree&filepath=datafusion%2Fphysical-plan%2Fsrc%2Fjoins%2Fie_join%2Fstream.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGF0YWZ1c2lvbi9waHlzaWNhbC1wbGFuL3NyYy9qb2lucy9pZV9qb2luL3N0cmVhbS5ycw==) | 93.11% | [17 Missing and 2 partials :warning: ](https://app.codecov.io/gh/apache/datafusion/pull/23741?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [datafusion/core/src/physical\_planner.rs](https://app.codecov.io/gh/apache/datafusion/pull/23741?src=pr&el=tree&filepath=datafusion%2Fcore%2Fsrc%2Fphysical_planner.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGF0YWZ1c2lvbi9jb3JlL3NyYy9waHlzaWNhbF9wbGFubmVyLnJz) | 92.94% | [8 Missing and 9 partials :warning: ](https://app.codecov.io/gh/apache/datafusion/pull/23741?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #23741 +/- ##
=========================================
Coverage 80.69% 80.70%
=========================================
Files 1089 1092 +3
Lines 368424 369595 +1171
Branches 368424 369595 +1171
=========================================
+ Hits 297307 298288 +981
- Misses 53406 53534 +128
- Partials 17711 17773 +62
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion/pull/23741?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org