From notifications-return-53086-archive-asf-public=cust-asf.ponee.io@superset.apache.org Tue Sep 29 03:31:03 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id C69A8180642 for ; Tue, 29 Sep 2020 05:31:03 +0200 (CEST) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id 0C14F1220AB for ; Tue, 29 Sep 2020 03:31:03 +0000 (UTC) Received: (qmail 57964 invoked by uid 500); 29 Sep 2020 03:31:02 -0000 Mailing-List: contact notifications-help@superset.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.apache.org Delivered-To: mailing list notifications@superset.apache.org Received: (qmail 57939 invoked by uid 99); 29 Sep 2020 03:31:01 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2020 03:31:01 +0000 From: =?utf-8?q?GitBox?= To: notifications@superset.apache.org Subject: =?utf-8?q?=5BGitHub=5D_=5Bincubator-superset=5D_fan-code_commented_on_issue_?= =?utf-8?q?=238027=3A_hive/impala__can=27t_show_table_schema?= Message-ID: <160135026073.32230.7882923689772242889.asfpy@gitbox.apache.org> Date: Tue, 29 Sep 2020 03:31:00 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-Reply-To: References: fan-code commented on issue #8027: URL: https://github.com/apache/incubator-superset/issues/8027#issuecomment-700404517 > well, it's a matter about sparksql . > it's finally solved by > edit site-packages/impala/sqlalchemy.py > from > > ``` > def get_table_names(self, connection, schema=None, **kw): > query = 'SHOW TABLES' > if schema is not None: > query += ' IN %s' % schema > rreturn [tup[0] for tup in connection.execute(query).fetchall()] > ``` > > to > > ``` > def get_table_names(self, connection, schema=None, **kw): > query = 'SHOW TABLES' > if schema is not None: > query += ' IN %s' % schema > return [t[1] if len(t) >1 else t[0] for t in connection.execute(query).fetchall()] > ``` the path 'site-packages/impala/sqlalchemy.py' doesn't exsit if you just install pyhive,. So how to edit it? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: users@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org For additional commands, e-mail: notifications-help@superset.apache.org