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

USE fails when in an invalid catalog when a role for that catalog is set #2767

Closed
dain opened this issue Feb 8, 2020 · 0 comments · Fixed by #2768
Closed

USE fails when in an invalid catalog when a role for that catalog is set #2767

dain opened this issue Feb 8, 2020 · 0 comments · Fixed by #2768
Labels
bug

Comments

@dain
Copy link
Member

@dain dain commented Feb 8, 2020

$ presto --debug --catalog test
presto> set role admin;
SET ROLE
presto> use tpch.tiny;
Query 20200208_184255_00004_a53s9 failed: Catalog does not exist: test
io.prestosql.spi.PrestoException: Catalog does not exist: test
        at io.prestosql.Session.lambda$beginTransactionId$3(Session.java:332)
        at java.util.Optional.orElseThrow(Optional.java:290)
        at io.prestosql.Session.beginTransactionId(Session.java:332)
        at io.prestosql.execution.QueryStateMachine.beginWithTicker(QueryStateMachine.java:231)
        at io.prestosql.execution.QueryStateMachine.begin(QueryStateMachine.java:198)
        at io.prestosql.dispatcher.LocalDispatchQueryFactory.createDispatchQuery(LocalDispatchQueryFactory.java:98)
        at io.prestosql.dispatcher.DispatchManager.createQueryInternal(DispatchManager.java:192)
        at io.prestosql.dispatcher.DispatchManager.lambda$createQuery$0(DispatchManager.java:146)
        at io.prestosql.$gen.Presto_null__testversion____20200208_184148_3.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
@dain dain changed the title USE fails when in an invalid catalog. USE fails when in an invalid catalog Feb 8, 2020
@electrum electrum changed the title USE fails when in an invalid catalog USE fails when in an invalid catalog when a role for that catalog is set Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.