2

Is there a way to query/search all of my bigQuery views definition? Not via API but on the BigQuery query UI?

Thanks

2
  • 2
    I don't think so. BigQuery doesn't expose metadata through views, which is how most other databases handle this. Commented Nov 11, 2018 at 13:04
  • 1
    Submit the form linked in issuetracker.google.com/issues/35906063#comment9 to get (alpha) access to INFORMATION_SCHEMA views. Commented Nov 11, 2018 at 13:59

1 Answer 1

2

I've just managed to do this from the BigQuery UI using the following SELECT statement:

select table_name,view_definition
from myDataset.INFORMATION_SCHEMA.VIEWS

The key to getting it to work was the case sensitivity of 'INFORMATION_SCHEMA.VIEWS'.

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

1 Comment

The case-sensitivity in BigQuery's information schema objects is a bizarre design choice IMO 🫠

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.