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

   ## What happened?
   
   IcebergIterator uses the truthiness of until_index to decide whether a range 
has an upper bound. An explicit upper bound of zero is false, so get_range(0, 
0) is treated as unbounded and can return every available record instead of 
none.
   
   Before: the documented empty half-open range has an infinite record limit 
and returns rows.
   
   After: an explicit zero remains a zero limit, while an omitted upper bound 
remains unbounded.
   
   ## How to reproduce?
   
   1. Construct an Iceberg document containing at least one row.
   2. Call get_range(0, 0).
   3. Observe that the iterator computes total_records_to_return as infinity.
   4. Iterate the result and observe that stored rows are returned even though 
the requested range is empty.
   
   A catalog-free production iterator probe returned an injected row for the 
empty range before the fix.
   
   ## Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ## Commit Hash
   
   70c21145887920528d7d5540e3fb790b43e8b759
   
   ## Relevant log output
   
   requested=[0,0)
   total_records_to_return=inf
   first_result=unexpected row


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