xiangfu0 commented on code in PR #17167:
URL: https://github.com/apache/pinot/pull/17167#discussion_r3041164939
##########
pinot-controller/src/test/java/org/apache/pinot/controller/api/TableViewsTest.java:
##########
@@ -166,15 +188,22 @@ public void testHybridTableState(String state)
private TableViews.TableView getTableView(String tableName, String view,
String tableType)
throws Exception {
- return JsonUtils.stringToObject(
-
sendGetRequest(DEFAULT_INSTANCE.getControllerRequestURLBuilder().forTableView(tableName,
view, tableType)),
- TableViews.TableView.class);
+ PinotAdminClient adminClient = getOrCreateAdminClient();
+ return adminClient.getTableClient().getTableView(tableName, view,
tableType, TableViews.TableView.class);
Review Comment:
getTableView should return TableView class directly
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]