comphead commented on PR #12082:
URL: https://github.com/apache/datafusion/pull/12082#issuecomment-2319361185

   ```
   #[tokio::test]
   async fn test_ranges() {
       let left: Vec<RecordBatch> = make_staggered_batches(1);
   
       let left = vec![
           RecordBatch::try_new(
               left[0].schema().clone(),
               vec![
                   Arc::new(Int32Array::from(vec![1])),
                   Arc::new(Int32Array::from(vec![10])),
                   Arc::new(Int32Array::from(vec![10])),
                   Arc::new(Int32Array::from(vec![1000])),
               ],
           ).unwrap()
       ];
   
       let right = vec![
           RecordBatch::try_new(
               left[0].schema().clone(),
               vec![
                   Arc::new(Int32Array::from(vec![0, 1, 2])),
                   Arc::new(Int32Array::from(vec![0, 10, 20])),
                   Arc::new(Int32Array::from(vec![0, 1100, 2100])),
                   Arc::new(Int32Array::from(vec![0, 11000, 21000])),
               ],
           ).unwrap(),
           RecordBatch::try_new(
               left[0].schema().clone(),
               vec![
                   Arc::new(Int32Array::from(vec![2, 2])),
                   Arc::new(Int32Array::from(vec![20, 21])),
                   Arc::new(Int32Array::from(vec![2101, 0])),
                   Arc::new(Int32Array::from(vec![21001, 0])),
               ],
           ).unwrap(),
   
       ];
   
       JoinFuzzTestCase::new(
           left,
           right,
           JoinType::LeftAnti,
           Some(Box::new(col_lt_col_filter)),
       )
           .run_test(&[JoinTestType::HjSmj], false)
           .await;
   }
   ```
   
   if you debug `freeze_streamed` you can see of the buffered data batches has 
range but for another join key. Do you think it is correct? 


-- 
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-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to