Skip to content

Commit

Permalink
refactor: remove query-dal
Browse files Browse the repository at this point in the history
  • Loading branch information
霄鸿 committed Apr 3, 2024
1 parent 8a8050e commit 3ff41fe
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ public List<Result> queryData(QueryParam queryParam) {

@Override
public List<Result> queryTags(QueryParam queryParam) {
List<Result> results = queryData(queryParam);
return results;
return queryData(queryParam);
}

@Override
Expand Down Expand Up @@ -230,7 +229,7 @@ public List<Result> pqlRangeQuery(PqlParam pqlParam) {
@Override
public DetailResult queryDetail(QueryParam queryParam) {
String sql = queryParam.getQl();
List<String> tables = null;
List<String> tables;
if (StringUtils.isNotBlank(sql)) {
SqlParser parser = SqlParserFactoryProvider.getSqlParserFactory().getParser(sql);
tables = parser.tableNames();
Expand Down Expand Up @@ -321,13 +320,13 @@ private void doBatchInsert(Set<String> metrics, String tenant,
StatUtils.STORAGE_WRITE.add(StringsKey.of("CeresDBx", tenant, "N"),
new long[] {1, oneBatch.size(), System.currentTimeMillis() - start});
if (result != null && null != result.getErr()) {
LOGGER.error("save metrics:{} to CeresDBx error msg:{}", metrics,
LOGGER.error("save metrics:{},[{}] to CeresDBx error msg:{}", metrics, tenant,
result.getErr().getError());
} else if (null != throwable) {
LOGGER.error("save metrics:{} to CeresDBx error msg:{}", metrics,
LOGGER.error("save metrics:{},[{}] to CeresDBx error msg:{}", metrics, tenant,
throwable.getMessage(), throwable);
} else {
LOGGER.error("save metrics:{} to CeresDBx error", metrics);
LOGGER.error("save metrics:{},[{}] to CeresDBx error", metrics, tenant);
}
}
});
Expand Down
23 changes: 0 additions & 23 deletions server/query/query-dal/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions server/query/query-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
<artifactId>query-service</artifactId>

<dependencies>
<dependency>
<groupId>io.holoinsight.server</groupId>
<artifactId>query-dal</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.holoinsight.server</groupId>
<artifactId>extension-storage-ceresdbx</artifactId>
Expand Down
1 change: 0 additions & 1 deletion server/server-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
<module>../query/query-service</module>
<module>../query/query-bootstrap</module>
<module>../query/query-client</module>
<module>../query/query-dal</module>
<module>../query/query-server</module>
<module>../query/query-boot</module>
<module>../query/query-grpc-gen</module>
Expand Down

0 comments on commit 3ff41fe

Please sign in to comment.