Skip to content
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

Failing to communicate with Presto after "Failed getting schema" #1799

Open
1 task done
gppeixoto opened this issue May 31, 2017 · 2 comments
Open
1 task done

Failing to communicate with Presto after "Failed getting schema" #1799

gppeixoto opened this issue May 31, 2017 · 2 comments

Comments

@gppeixoto
Copy link

Issue Summary

I believe this is likely to be a front-end issue, but its root is caused by an external Presto issue. Redash is not able to issue a new query on /queries/new after a "Failed getting schema" error, even though the connection is OK and queries run normally on the backend.

  • Search for existing issues first

Steps to Reproduce

  1. Connect a presto datasource to redash;
  2. Confirm test connection is OK (it should issue a SHOW TABLES query to Presto)
  3. Enter /queries/new, it will issue the following query to presto:
SELECT table_schema, table_name, column_name
FROM information_schema.columns
WHERE table_schema NOT IN ('pg_catalog', 'information_schema')
  1. If presto query return INTERNAL ERROR and you try any query (e.g.: select * from some_table limit 1) , front-end shows a box "Query in queue… 00:00:00" that runs forever and the query is never issued by the server

The internal error that I get on Presto is tracked on: prestodb/presto#6972, and it is still an open issue. However, any query that I run directly on any presto table runs normally, including any "describe some_table".

Technical details:

  • Docker image redash/redash:2.0.0.b2905 running on Kubernetes v1.5.4
  • OS X Yosemite 10.10.5
  • Chrome 58.0.3029.110 (64-bit)
  • Presto 0.157.1
@arikfr
Copy link
Member

arikfr commented Sep 13, 2017

It happens that fetching the schema fails for various reasons, I never saw it impact the ability to run queries. Are you sure you had the Celery workers running at the time? If you open the query window the second time, does it run the query?

@dulh
Copy link

dulh commented Apr 19, 2018

I have the same issue above, the query get error when execution, maybe the command invalid !
I'm using Presto v0.197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants