[ https://issues.apache.org/jira/browse/DRILL-4728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410184#comment-15410184 ]
ASF GitHub Bot commented on DRILL-4728: --------------------------------------- Github user sudheeshkatkam commented on a diff in the pull request: https://github.com/apache/drill/pull/527#discussion_r73767794 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/client/DrillClient.java --- @@ -411,6 +420,98 @@ public void runQuery(QueryType type, List<PlanFragment> planFragments, UserResul } /** + * Get the list of catalogs in <code>INFORMATION_SCHEMA.CATALOGS</code> table satisfying the given filters. + * + * @param catalogNameFilter Filter on <code>catalog name</code>. Pass null to apply no filter. + * @return + */ + public DrillRpcFuture<GetCatalogsResp> getCatalogs(LikeFilter catalogNameFilter) { --- End diff -- `DrillRpcFuture` allows for cancellation (through `cancel(boolean mayInterruptIfRunning)`). Do we ignore the cancellation? > Add support for new metadata fetch APIs > --------------------------------------- > > Key: DRILL-4728 > URL: https://issues.apache.org/jira/browse/DRILL-4728 > Project: Apache Drill > Issue Type: Sub-task > Components: Metadata > Reporter: Venki Korukanti > Assignee: Venki Korukanti > Fix For: 1.8.0 > > > Please see the doc attached to the parent JIRA DRILL-4714 for details on APIs. > Add support for following APIs (including {{protobuf}} messages, server > handling code and Java client APIs) > {code} > List<Catalog> getCatalogs(Filter catalogNameFilter) > List<Schema> getSchemas( > Filter catalogNameFilter, > Filter schemaNameFilter > ) > List<Table> getTables( > Filter catalogNameFilter, > Filter schemaNameFilter, > Filter tableNameFilter > ) > List<Column> getColumns( > Filter catalogNameFilter, > Filter schemaNameFilter, > Filter tableNameFilter, > Filter columnNameFilter > ) > {code} > Note: native client changes are not going to be included in this patch. Will > file a separate JIRA. -- This message was sent by Atlassian JIRA (v6.3.4#6332)