You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by xx...@apache.org on 2021/11/15 09:45:59 UTC
[kylin] branch main updated: Avoid redundant error information
This is an automated email from the ASF dual-hosted git repository.
xxyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/main by this push:
new 93b8295 Avoid redundant error information
93b8295 is described below
commit 93b82957e855b9e2545b7722dd1379e218f495cb
Author: yaqian.zhang <59...@qq.com>
AuthorDate: Mon Nov 15 16:17:37 2021 +0800
Avoid redundant error information
---
.../main/java/org/apache/kylin/rest/controller/TableController.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/server-base/src/main/java/org/apache/kylin/rest/controller/TableController.java b/server-base/src/main/java/org/apache/kylin/rest/controller/TableController.java
index 9d92304..9facfe9 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/controller/TableController.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/controller/TableController.java
@@ -34,7 +34,6 @@ import org.apache.kylin.metadata.model.TableExtDesc;
import org.apache.kylin.rest.exception.InternalErrorException;
import org.apache.kylin.rest.exception.NotFoundException;
import org.apache.kylin.rest.request.HiveTableRequest;
-import org.apache.kylin.rest.response.TableSnapshotResponse;
import org.apache.kylin.rest.service.TableACLService;
import org.apache.kylin.rest.service.TableService;
import org.slf4j.Logger;
@@ -222,9 +221,9 @@ public class TableController extends BasicController {
@RequestMapping(value = "/{project}/{tableName}/snapshots", method = { RequestMethod.GET })
@ResponseBody
- public List<TableSnapshotResponse> getTableSnapshots(@PathVariable final String project,
+ public void getTableSnapshots(@PathVariable final String project,
@PathVariable final String tableName) throws IOException {
- throw new UnsupportedOperationException("API getTableSnapshots is not supported in Kylin 4.0 .");
+ logger.warn("API getTableSnapshots is not supported in Kylin 4.0 .");
}
@RequestMapping(value = "/supported_datetime_patterns", method = { RequestMethod.GET })