You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2024/04/16 16:14:57 UTC

[I] fix Sort Merge Join to pass TPCH tests [arrow-datafusion]

comphead opened a new issue, #10100:
URL: https://github.com/apache/arrow-datafusion/issues/10100

   I was trying to mark the Sort Merge Join as stable and run TPCH tests with SMJ enforced. Got the issue below, we need to fix before returning to discuss SMJ stable status
   
   ```
   thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/joins/sort_merge_join.rs:1357:22:
   index out of bounds: the len is 0 but the index is 1
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/joins/sort_merge_join.rs:1357:22:
   index out of bounds: the len is 0 but the index is 1
   thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/joins/sort_merge_join.rs:1357:22:
   index out of bounds: the len is 0 but the index is 1
   thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/joins/sort_merge_join.rs:1357:22:
   index out of bounds: the len is 0 but the index is 1
   Error: Context("Join Error", External(JoinError::Panic(Id(88693), ...)))
   ```
    
   _Originally posted by @comphead in https://github.com/apache/arrow-datafusion/issues/9846#issuecomment-2057999488_
               


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

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


Re: [I] fix Sort Merge Join to pass TPCH tests [datafusion]

Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #10100:
URL: https://github.com/apache/datafusion/issues/10100#issuecomment-2077487361

   The problem is in LeftSemi/LeftAnti join types with extra join filter.
   So the join side gets built correctly but join filter for notEq case gets crashed


-- 
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: [I] fix Sort Merge Join to pass TPCH tests [arrow-datafusion]

Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #10100:
URL: https://github.com/apache/arrow-datafusion/issues/10100#issuecomment-2062762876

   Narrowed down the problem to query
   ```
   with 
     t as (select 1 a, 1 b), 
     t1 as (select 1 a, 1 b) 
   select * from t, t1 where t.a = t1.a and exists (select * from t1 t2 where t2.a = t1.a and t2.b <> t1.b);
   ```
   
   
   


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

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


Re: [I] fix Sort Merge Join to pass TPCH tests [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #10100: fix Sort Merge Join to pass TPCH tests
URL: https://github.com/apache/datafusion/issues/10100


-- 
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: [I] fix Sort Merge Join to pass TPCH tests [datafusion]

Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #10100:
URL: https://github.com/apache/datafusion/issues/10100#issuecomment-2077561885

   Full test to reproduce
   
   ```
       #[tokio::test]
       async fn test_() -> Result<()> {
           let ctx: SessionContext = SessionContext::new();
   
           let sql = "set datafusion.optimizer.prefer_hash_join = false;";
           let _ = ctx.sql(sql).await?.collect().await?;
       
           let sql = "
           with 
           t1 as (select 1 a, 2 b) 
               select * from t1 where exists (select 1 from t1 t2 where t2.a = t1.a and t2.b != t1.a);
           ";
           let _ = ctx.sql(sql).await?.collect().await?;
       
           Ok(())
       }
   ```


-- 
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: [I] fix Sort Merge Join to pass TPCH tests [arrow-datafusion]

Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #10100:
URL: https://github.com/apache/arrow-datafusion/issues/10100#issuecomment-2059465183

   The TPCH benchmarks for SMJ https://github.com/apache/arrow-datafusion/pull/10092


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

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


Re: [I] fix Sort Merge Join to pass TPCH tests [arrow-datafusion]

Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #10100:
URL: https://github.com/apache/arrow-datafusion/issues/10100#issuecomment-2062647591

   Only Q21 failing


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

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