[ 
https://issues.apache.org/jira/browse/SPARK-24570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

t oo updated SPARK-24570:
-------------------------
    Description: 
An end-user SQL client tool (ie in the screenshot) can list tables from 
hiveserver2 and major DBs (Mysql, postgres,oracle, MSSQL..etc). But with 
SparkSQL it does not display any tables. This would be very convenient for 
users.

This is the exception in the client tool (Aqua Data Studio):

{code:java}
Title: An Error Occurred

Summary: Unable to Enumerate Result

==================================== Start Message 
====================================
org.apache.spark.sql.catalyst.parser.ParseException: 
mismatched input '`*`' expecting STRING(line 1, pos 38)

== SQL ==
SHOW TABLE EXTENDED FROM sit1_pb LIKE `*`
--------------------------------------^^^

==================================== End Message 
====================================

==================================== Start Stack Trace 
====================================
java.sql.SQLException: org.apache.spark.sql.catalyst.parser.ParseException: 
mismatched input '`*`' expecting STRING(line 1, pos 38)

== SQL ==
SHOW TABLE EXTENDED FROM sit1_pb LIKE `*`
--------------------------------------^^^

        at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:296)
        at com.aquafold.aquacore.open.rdbms.drivers.hive.Qꐨꈬꈦꁐ.execute(Unknown 
Source)
        at \\.\\.\\हिñçêČάй語简�?한\\.gᚵ᠃᠍ꃰint.execute(Unknown Source)
        at com.common.ui.tree.hꐊᠱꇗꇐ9int.yW(Unknown Source)
        at com.common.ui.tree.hꐊᠱꇗꇐ9int$1.process(Unknown Source)
        at com.common.ui.util.BackgroundThread.run(Unknown Source)


==================================== End Stack Trace 
====================================
{code}


  was:
An end-user SQL client tool (ie in the screenshot) can list tables from 
hiveserver2 and major DBs (Mysql, postgres,oracle, MSSQL..etc). But with 
SparkSQL it does not display any tables. This would be very convenient for 
users.

This is the exception in the client tool (Aqua Data Studio):

org.apache.spark.sql.catalyst.parser.ParseException: mismatched input '`*`' 
expecting STRING(line 1, pos 38) == SQL == SHOW TABLE EXTENDED FROM sit1_pb 
LIKE `*` --------------------------------------^^^


> SparkSQL - show schemas/tables in dropdowns of SQL client tools (ie Squirrel 
> SQL, DBVisualizer.etc)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-24570
>                 URL: https://issues.apache.org/jira/browse/SPARK-24570
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.3.1
>            Reporter: t oo
>            Priority: Major
>         Attachments: connect-to-sql-db-ssms-locate-table.png
>
>
> An end-user SQL client tool (ie in the screenshot) can list tables from 
> hiveserver2 and major DBs (Mysql, postgres,oracle, MSSQL..etc). But with 
> SparkSQL it does not display any tables. This would be very convenient for 
> users.
> This is the exception in the client tool (Aqua Data Studio):
> {code:java}
> Title: An Error Occurred
> Summary: Unable to Enumerate Result
> ==================================== Start Message 
> ====================================
> org.apache.spark.sql.catalyst.parser.ParseException: 
> mismatched input '`*`' expecting STRING(line 1, pos 38)
> == SQL ==
> SHOW TABLE EXTENDED FROM sit1_pb LIKE `*`
> --------------------------------------^^^
> ==================================== End Message 
> ====================================
> ==================================== Start Stack Trace 
> ====================================
> java.sql.SQLException: org.apache.spark.sql.catalyst.parser.ParseException: 
> mismatched input '`*`' expecting STRING(line 1, pos 38)
> == SQL ==
> SHOW TABLE EXTENDED FROM sit1_pb LIKE `*`
> --------------------------------------^^^
>       at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:296)
>       at com.aquafold.aquacore.open.rdbms.drivers.hive.Qꐨꈬꈦꁐ.execute(Unknown 
> Source)
>       at \\.\\.\\हिñçêČάй語简�?한\\.gᚵ᠃᠍ꃰint.execute(Unknown Source)
>       at com.common.ui.tree.hꐊᠱꇗꇐ9int.yW(Unknown Source)
>       at com.common.ui.tree.hꐊᠱꇗꇐ9int$1.process(Unknown Source)
>       at com.common.ui.util.BackgroundThread.run(Unknown Source)
> ==================================== End Stack Trace 
> ====================================
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to