apache / paimon-webui

Web ui for Apache Paimon.
https://paimon.apache.org/
Apache License 2.0
121 stars 58 forks source link

[Improvement] Support query limit #502

Closed s7monk closed 1 month ago

s7monk commented 1 month ago

close: https://github.com/apache/paimon-webui/issues/501

Purpose

Apache Calcite is introduced in the backend to support query limits.

Tests

API and Format

 /**
     * Executes an SQL statement.
     *
     * @param statement The SQL statement to be executed.
     * @param maxRows The maximum number of rows to return in the result set.
     * @return SubmitResult containing information about the execution result.
     * @throws Exception if there is an error executing the SQL statement.
     */
    ExecutionResult executeSql(String statement, int maxRows) throws Exception;