Unable to Do "With" Statement: "Sql Error [57]: .. . Schema Must Be Specified When Session Schema Is Not Set"

I'm trying to use a WITH statement in DBeaver built on Presto (I may have a gap in knowledge of the underlying tools and structure).

Simple query:

with t1 as (select run_id from john.link_budget limit 10)
select a.run_id
from a

Error:

SQL Error [57]: Query failed (#20230313_181242_00253_h9j4c): line 6:6: Schema must be specified when session schema is not set

What does Schema must be specified when session schema is not set mean and how could I fix it?

2

1 Answer

This is just a typo. Change from a to from t1, query runs successfully.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest