Hi all, I am trying to run a BigQueryTask and load the output to a pd.DataFrame. I followed the example code and have the following output defined:
Dataset = Annotated[StructuredDataset, SCHEMA]
Where schema is using
kwtypes()
to define columns. I’ve set
Dataset
as the
output_structured_dataset_type
for the
BigQueryTask
, when I try to run a task to convert the output to a pd.DataFrame I get an error:
403 Access Denied: Dataset my-flyte-project:<job_ib>: User does not have permission to access results of another user's job.
The task is defined as shown below:
@task
def convert_bq_table_to_pandas_dataframe(sd: Dataset) -> pd.DataFrame:
return sd.open(pd.DataFrame).all()
I’ve given the service-accounts for
flyteworker
and
flytepropeller
the roles
BigQuery Admin
and
Owner
but still get this Error…
Has anyone had this error before? Or know how to resolve it? Alternatively does anyone know the required permissions to get this to work?
Thanks