You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "neilconway (via GitHub)" <gi...@apache.org> on 2026/06/11 14:56:00 UTC

[I] `ArrayMap` maps probe keys to buckets incorrectly on 32-bit hosts [datafusion]

neilconway opened a new issue, #22910:
URL: https://github.com/apache/datafusion/issues/22910

   ### Describe the bug
   
   ArrayMap bucket lookups computed `key.wrapping_sub(offset) as usize`, and then bounds-checked the result after the cast. On 64-bit hosts, that is fine, but on 32-bit hosts, the cast will truncate the computed bucket offset to its low 32 bits. Given a large probe key whose low 32 bits are a valid bucket array index, this can produce incorrect results.
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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.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] `ArrayMap` maps probe keys to buckets incorrectly on 32-bit hosts [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #22910: `ArrayMap` maps probe keys to buckets incorrectly on 32-bit hosts
URL: https://github.com/apache/datafusion/issues/22910


-- 
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] `ArrayMap` maps probe keys to buckets incorrectly on 32-bit hosts [datafusion]

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

   take


-- 
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