Skip to content

disambiguate missing policy tags from explicitly unset policy tags #981

Closed
@tswast

Description

@tswast

As seen in internal bug 182204971, #557, if the policyTags key is included in a load job, the user can get 403 POST ... User does not have permission to get taxonomy ... errors when uploading data, even if they have write access to the table.

Based on the behavior seen in googleapis/python-bigquery-pandas#387, I believe this fix has accidentally been reverted in #703 (comment).

TODO:

  • Manually test to see if the error from 182204971 is reproduced
  • Add a system test to avoid future regressions
  • Update SchemaField to allow disambiguating unset vs explicitly set to empty list / none.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions