Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-8458

BigQueryIO.Read needs permissions to create datasets to be able to run queries

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.21.0
    • io-java-gcp
    • None

    Description

      When using fromQuery, BigQueryIO creates a temp dataset to store the results of the query.

      Therefore, Beam requires permissions to create datasets just to be able to run a query. In practice, this means that Beam requires the role bigQuery.User just to run queries, whereas if you use from (to read from a table), the role bigQuery.jobUser suffices.

      BigQueryIO.Read should have an option to set an existing dataset  to write the temp results of
      a query, so it would be enough with having the role bigQuery.jobUser.

      Attachments

        Issue Links

          Activity

            People

              iht Israel Herraiz
              iht Israel Herraiz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 40m
                  4h 40m