Score:0

BigQuery authorization errors with Java API

th flag

Can I know if I have read permissions on a concrete dataset or table with Java API?

I am developing a tool that discovers all datasets and their tables of a BigQuery project.

My problem is that some tables or datasets are "protected" and they are not readable for this particular user (what is ok), so when I iterate through the dataset my program gets stuck when I make a .getTable() from a dataset or .listTables() so I cannot continue with my discovery. The big problem is that BigQuery API does not return any error or warning and it looks like it has a "silenced" API so I cannot control the program flow.

It looks like BigQuery has a silence API that does not return not authorize errors. Is there any way I can handle this?

I am using BigQuery Java API version 1.131.1

Thanks in advance.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.