healchow commented on code in PR #4917:
URL: https://github.com/apache/inlong/pull/4917#discussion_r917203937
##########
inlong-manager/manager-dao/src/main/resources/mappers/InlongClusterEntityMapper.xml:
##########
@@ -198,4 +198,19 @@
from inlong_cluster
where id = #{id,jdbcType=INTEGER}
</delete>
+
+ <select id="selectAllClusters"
+
resultType="org.apache.inlong.manager.common.pojo.sortstandalone.SortSourceClusterInfo">
+ select name,
+ type,
+ cluster_tags as cluster_tag,
+ ext_tag,
+ ext_params
+ from inlong_cluster
+ <where>
+ is_deleted = 0
+ AND
+ type in ('PULSAR','KAFKA','TUBE')
Review Comment:
These types should be passed in from the outside.
##########
inlong-manager/manager-dao/src/main/resources/mappers/InlongGroupEntityMapper.xml:
##########
@@ -304,4 +304,17 @@
from inlong_group
where id = #{id,jdbcType=INTEGER}
</delete>
+
+ <select id="selectAllGroups"
resultType="org.apache.inlong.manager.common.pojo.sortstandalone.SortSourceGroupInfo">
+ select inlong_group_id as groupId,
+ inlong_cluster_tag as clusterTag,
+ mq_resource as topic,
+ ext_params as extParams
+ from inlong_group
+ <where>
+ is_deleted = 0
+ AND
+ mq_type in ('PULSAR','KAFKA','TUBE')
Review Comment:
ditto.
--
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]