-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"hive"."information_schema"."columns" with 'like' hangs #487
Comments
How many tables you have in your Hive setup? My example setup works fine (no delay): presto> SELECT * FROM "hive"."information_schema"."columns" WHERE table_schema like 'default';
table_catalog | table_schema | table_name | column_name | ordinal_position | column_default | is_nullable | data_type | comment
---------------+--------------+------------+-------------+------------------+----------------+-------------+-----------+---------
hive | default | foo | a | 1 | NULL | YES | bigint | NULL
(1 row) Also, do you use JDBC drivers distributed along with TD release or open source version? |
Our HiveMetaStore is pretty huge
We noticed, whenever we use Presto send a call for each combination of So there are too many calls to Hive Metastore and either it hangs or timeout or sometime we get error like [Teradata]Presto Query failed: outputFormat should not be accessed from a null StorageFormat. [SQL State=HY000, DB Errorcode=100050] we are using Teradata JDBC |
What's your caching policy ( |
Thanks for your reply. We have not set For second part - Actually we found that Presto JDBC is sending |
Default value for
We are looking into the JDBC drivers to make them perform better in your use case. However, the earliest possible patch would be in the next release (after 157t). |
Thanks for your help. Any suggestion how we can resolve this issue for now . |
Seems like queries with "like" schema name is passed as Empty or "*" , so it is processing all the tables from all the schema |
Hi @rschlussel any pointer to solve this issue , Thanks |
@rajitsaha We believe this is a driver issue. We are working with the vendor to resolve the issue. We will update this issue once we have more information. |
Thanks |
We, at LendingClub, using Presto "0.157.1.t.0.5-1.x86_64" and we access Presto with JDBC in SQLWorkBench. while we are trying to list Columns in any database in "Database Explorer" , most of the time it hangs.
We saw in Discovery URI the query its trying is
SELECT * FROM "hive"."information_schema"."columns" WHERE table_schema like '<schema_name>' AND table_name LIKE '<table_name>' AND column_name LIKE '%'
In this scenario, most of the time this hangs .
We also reproduced the issue by smaller query
SELECT * FROM "hive"."information_schema"."columns" WHERE table_schema like '<schema_name>'
hangsBut
SELECT * FROM "hive"."information_schema"."columns" WHERE table_schema = '<schema_name>'
send result immediately
The text was updated successfully, but these errors were encountered: