From 7b2bb1300dfaa71a9cd97db587b56590356c8810 Mon Sep 17 00:00:00 2001 From: Rahul Sharma Date: Mon, 28 Aug 2023 10:49:14 +0530 Subject: [PATCH] Small refactor --- .../java/io/cdap/plugin/common/db/AbstractDBConnector.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hydrator-common/src/main/java/io/cdap/plugin/common/db/AbstractDBConnector.java b/hydrator-common/src/main/java/io/cdap/plugin/common/db/AbstractDBConnector.java index 7276c288c..e641957f8 100644 --- a/hydrator-common/src/main/java/io/cdap/plugin/common/db/AbstractDBConnector.java +++ b/hydrator-common/src/main/java/io/cdap/plugin/common/db/AbstractDBConnector.java @@ -106,6 +106,10 @@ public void test(ConnectorContext context) throws ValidationException { @Override public BrowseDetail browse(ConnectorContext connectorContext, BrowseRequest request) throws IOException { + return this.browse(request); + } + + public BrowseDetail browse(BrowseRequest request) throws IOException { DBConnectorPath dbConnectorPath = getDBConnectorPath(request.getPath()); try (Connection connection = getConnection(dbConnectorPath)) { int limit = request.getLimit() == null || request.getLimit() <= 0 ? Integer.MAX_VALUE : request.getLimit();