ArnavBalyan opened a new pull request, #6099:
URL: https://github.com/apache/paimon/pull/6099

    - Fixes a bug where localtablequery throws an error:
    ```
   Caused by: java.lang.IllegalArgumentException: The before file should be 
empty for the initial phase.
   at 
org.apache.paimon.utils.Preconditions.checkArgument(Preconditions.java:127)
   at 
org.apache.paimon.table.query.LocalTableQuery.refreshFiles(LocalTableQuery.java:118)
   ```
    - Beforefiles may be expected in the FILE_MONITOR mode and not populated 
for changelog/compact_delta modes. 
    - Removed the check, ideally this should be only added to the changelog 
log/compact_delta modes, but the LocalTableQuery is not aware of the modes, and 
the check does not add much value. 
    - This fix will unblock querying but in the future, the higher level apis 
can be extended to be more aware of the mode and pass it to LocalTableQuery 
which can enforce the check for the correct conditions.


-- 
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: issues-unsubscr...@paimon.apache.org

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

Reply via email to