LuciferYang opened a new issue, #13829:
URL: https://github.com/apache/gluten/issues/13829

   With 
`spark.gluten.sql.columnar.backend.velox.driverSideBroadcastHashTableBuild=true`
 (off by default), the driver builds one hash table per broadcast exchange, for 
the first join context whose build output matches the exchange (`contexts.find` 
in `VeloxSparkPlanExecApi`), and caches it in `driverSerializedCache` under the 
exchange's broadcast ID. Every join that reads the exchange, including through 
`ReusedExchangeExec`, gets that `SerializedHashTableBroadcastRelation`, and 
`VeloxSerializedBroadcastRDD` deserializes it as it is. A join whose 
`hashTableBuildKey` differs from the one the table was built for gets the wrong 
table. This is #13709 again: #13710 fixed it for the executor-side build only.
   
   The serialized table already carries the raw build relation 
(`SerializedBroadcastHashTable.buildSideRelation`). One way to fix it is to 
store the driver's build key with the serialized table, and have a join whose 
key differs build its own table on the executor from that relation. The test 
added in #13710 could also run with the config on.
   
   @wecharyu offered to take this in #13710.
   
   This issue was written with the assistance of AI (Claude Opus).
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to