yew1eb opened a new issue, #1739:
URL: https://github.com/apache/auron/issues/1739

   Since Apache Spark 3.4 (SPARK-28330), the physical plan fully represents 
`OFFSET`:
   
   - `GlobalLimitExec` and `TakeOrderedAndProjectExec` carries an explicit 
`offset` field
   -  When both `LIMIT` and `OFFSET` are present, Spark stores `limit + offset` 
as the raw limit value
   
   The current auron completely ignores the `offset` field.
   As a result, the query:
   
   ```sql
   SELECT * FROM t LIMIT 10 OFFSET 5
   ```
   return the first 15 rows instead of rows 6–15, producing incorrect results.
   
   We should fully support the LIMIT … OFFSET … semantics.


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