无法使用Apache Drill 1.11,VALIDATION ERROR查询PostgreSQL

时间:2017-11-07 02:52:23

标签: apache-drill validationerror

我设法连接了Drill和PostgreSQL,但即使是像 return selectedEmployee.getJobs(); 这样的简单命令,我也收到了:

df <- merge(df1, df2, all = TRUE)
df$InDf1 <- ifelse(is.na(match(df$ID, df1$ID)),0,1)
df$InDf2 <- ifelse(is.na(match(df$ID, df$ID)),0,1)

> df
  ID   V1   V2   X5  X16 X23 InDf1 InDf2
1  1    K    q   N1  q16  56     1     1
2  3    L    r <NA> <NA>  NA     1     0
3  4    M    s   P3  s38  58     1     1
4  5    N    t <NA> <NA>  NA     1     0
5  9 <NA> <NA>   Q4  t49  59     0     1
6 10 <NA> <NA>   O2  r27  57     0     1
7 13 <NA> <NA>   N5 q510  60     0     1

我有两个架构public class Tab1Fragment extends Fragment { WebView webView; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.tab1_fragment, container, false); webView = (WebView) view.findViewById(R.id.webview); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); webView.loadUrl("https://www.facebook.com/"); webView.setWebViewClient(new WebViewClient()); return view; } } show tables,其中包含相同的表名org.apache.drill.common.exceptions.UserException: VALIDATION ERROR: Multiple entries with same key: campaign_items=JdbcTable {campaign_items} and campaign_items=JdbcTable {campaign_items} 。如何强制Drill使用完全限定名称以避免混淆?还有其他建议吗?

1 个答案:

答案 0 :(得分:0)

要使用show tables,您需要先选择架构:

  

首先发出USE命令以标识要查看表或视图的架构。例如,以下USE语句告诉Drill您只需要来自dfs.myviews模式的信息:

USE dfs.myviews;

https://drill.apache.org/docs/show-tables/