Unable to query PostgreSQL with Apache Drill 1.11, VALIDATION ERROR

时光怂恿深爱的人放手 提交于 2020-06-29 03:58:47

问题


I managed to connect Drill and PostgreSQL but even for a simple command like show tables I am receiving:

org.apache.drill.common.exceptions.UserException: VALIDATION ERROR: Multiple entries with same key: campaign_items=JdbcTable {campaign_items} and campaign_items=JdbcTable {campaign_items}

I have two schemas public and fdw which contains the same table name campaign_items. How can I force Drill to use the fully qualified name to avoid confusion? Any other suggestions?


回答1:


To use show tables, you need to select the schema first:

First issue the USE command to identify the schema for which you want to view tables or views. For example, the following USE statement tells Drill that you only want information from the dfs.myviews schema:

USE dfs.myviews;

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



来源:https://stackoverflow.com/questions/47149236/unable-to-query-postgresql-with-apache-drill-1-11-validation-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!