Github user julienledem commented on a diff in the pull request:
https://github.com/apache/drill/pull/246#discussion_r44204830
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java
---
@@ -221,9 +603,46 @@ public void dropView(String viewName) throws
IOException {
return viewSet;
}
+ private Set<String> rawTableNames() {
+ return newHashSet(
+ transform(tables.keySet(), new
com.google.common.base.Function<TableInstance, String>() {
+ @Override
+ public String apply(TableInstance input) {
+ return input.sig.name;
+ }
+ }));
+ }
+
@Override
public Set<String> getTableNames() {
- return Sets.union(tables.keySet(), getViews());
+ System.out.println("getTableNames");
+ return Sets.union(rawTableNames(), getViews());
+ }
+
+ @Override
+ public Set<String> getFunctionNames() {
+ System.out.println("getFunctionNames");
+ return rawTableNames();
+ }
+
+ @Override
+ public List<Function> getFunctions(String name) {
+ System.out.println("getFunctions(" + name + ")");
--- End diff --
todo: cleanup
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---