2

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
  • 2
    from a -> from t1. Commented Mar 13, 2023 at 18:26
  • 1
    Use from t1 instead of from a and remove a.. Why your are using CTE for a simple select Query? Commented Mar 13, 2023 at 18:42

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.