You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "carloea2 (via GitHub)" <gi...@apache.org> on 2026/08/31 01:23:01 UTC

[I] Python tuples ignore schema during equality checks [texera]

carloea2 opened a new issue, #8183:
URL: https://github.com/apache/texera/issues/8183

   ### Root cause
   
   Python `Tuple.__eq__` compares field names and values but ignores the schema, while `Tuple.__hash__` uses schema types. Equal-looking values under different schemas can therefore compare equal and produce different hashes, violating the Python equality and hash contract.
   
   ### Reproduction
   
   Compare an `INTEGER` tuple containing 1 with a `DOUBLE` tuple containing 1.0.
   
   Before: equality is true, hashes are 32 and 1072693279, and an equal dictionary key cannot be found
   After: different schemas compare unequal, while same-schema tuples remain equal and hash-compatible
   
   ### Expected behavior
   
   Tuple equality includes schema identity, matching the values used to calculate its hash.
   
   ### Version
   
   Current `main` at 70c21145887920528d7d5540e3fb790b43e8b759.


-- 
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: notifications-unsubscribe@texera.apache.org.apache.org

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


Re: [I] Python tuples ignore schema during equality checks [texera]

Posted by "carloea2 (via GitHub)" <gi...@apache.org>.
carloea2 commented on issue #8183:
URL: https://github.com/apache/texera/issues/8183#issuecomment-5548205788

   /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: notifications-unsubscribe@texera.apache.org

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


Re: [I] Python tuples ignore schema during equality checks [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8183:
URL: https://github.com/apache/texera/issues/8183#issuecomment-5472554068

   <!-- texera:template-compliance -->
   👋 Thanks for opening this issue, @carloea2!
   
   It looks like the issue description doesn't quite follow our template yet:
   
   - This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
   
   Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
   
   You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
   


-- 
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: notifications-unsubscribe@texera.apache.org

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


Re: [I] Python tuples ignore schema during equality checks [texera]

Posted by "carloea2 (via GitHub) via notifications" <no...@texera.apache.org>.
carloea2 closed issue #8183: Python tuples ignore schema during equality checks
URL: https://github.com/apache/texera/issues/8183


-- 
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: notifications-unsubscribe@texera.apache.org

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