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

   ## What happened?
   
   Python Table equality compares row iterators with zip but does not compare 
their lengths. Zip stops at the shorter input, so tables with the same prefix 
compare equal even when one contains additional workflow rows. An empty table 
also compares equal to any non-empty table.
   
   Before: one row equals two matching-prefix rows in both directions, and zero 
rows equals two rows.
   
   After: row counts must match before row values are compared. Equal tables 
still compare equal.
   
   ## How to reproduce?
   
   1. Construct one Table containing id 1.
   2. Construct another Table containing id 1 and id 2.
   3. Compare the tables in either direction.
   4. Observe True even though the row counts differ.
   5. Compare an empty Table with the two-row Table and observe True again.
   
   ## Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ## Commit Hash
   
   70c21145887920528d7d5540e3fb790b43e8b759
   
   ## Relevant log output
   
   shorter_rows=1
   longer_rows=2
   shorter_equals_longer=True
   longer_equals_shorter=True
   empty_equals_longer=True


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

Reply via email to