This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit 1f86d0fd0674a92f7fcb17e5800255c7f7935dcc
Author: s7monk <[email protected]>
AuthorDate: Tue Jul 9 19:52:05 2024 +0800

    [Improvement] Enhance cluster query fields with deploymentMode (#478)
---
 paimon-web-server/src/main/resources/mapper/ClusterMapper.xml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/paimon-web-server/src/main/resources/mapper/ClusterMapper.xml 
b/paimon-web-server/src/main/resources/mapper/ClusterMapper.xml
index 65f5c21a..36526245 100644
--- a/paimon-web-server/src/main/resources/mapper/ClusterMapper.xml
+++ b/paimon-web-server/src/main/resources/mapper/ClusterMapper.xml
@@ -34,7 +34,7 @@ under the License.
     </resultMap>
 
     <sql id="selectClusterVo">
-        select id, cluster_name, host, port, `type`, enabled, create_time, 
update_time from cluster
+        select id, cluster_name, host, port, `type`, deployment_mode, enabled, 
heartbeat_status, create_time, update_time from cluster
     </sql>
 
     <select id="listClusters" 
parameterType="org.apache.paimon.web.server.data.model.ClusterInfo" 
resultMap="SysClusterResult">
@@ -55,6 +55,9 @@ under the License.
             <if test="cluster.type != null and cluster.type != ''">
                 AND `type` = #{cluster.type}
             </if>
+            <if test="cluster.deploymentMode != null and 
cluster.deploymentMode != ''">
+                AND deployment_mode = #{cluster.deploymentMode}
+            </if>
             <if test="cluster.enabled != null">
                 AND enabled = #{cluster.enabled}
             </if>

Reply via email to