carloea2 opened a new issue, #8229:
URL: https://github.com/apache/texera/issues/8229
### Current behavior
`Table.__eq__` compares rows with `zip`, which stops at the shorter input.
Tables with the same prefix but different row counts therefore compare equal in
both directions.
Before: compare one row with two rows -> zip checks only the shared prefix
-> equality returns true
After: compare row counts first -> different-sized tables return false
### Steps to reproduce
Compare `Table([{"x": 1}])` with `Table([{"x": 1}, {"x": 2}])`.
Observed on `70c21145887920528d7d5540e3fb790b43e8b759`:
```text
short_equals_long=True
long_equals_short=True
short_equals_different=False
lengths=1 2
```
### Expected behavior
Tables with different row counts should not compare equal, even when every
row in the shorter table matches the longer table's prefix.
--
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]