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

Executing a BQ pipeline without the new BQ read API library results in a TypeError

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Fixed
    • None
    • 2.33.0
    • io-py-gcp
    • None

    Description

      Executing a BQ pipeline without the new BQ read API library results in following error which is not helpful.

      {{if (isinstance(self.table_reference, TableReference) and
      self.table_reference.projectId is None):
      E TypeError: isinstance() arg 2 must be a type or tuple of types}}

      {{}}

      This seems to be due to the new import here: https://github.com/apache/beam/blob/76d0dcb6081b8a8f03e4292a4f99274a8c9a5965/sdks/python/apache_beam/io/gcp/bigquery.py#L335

      added by https://github.com/apache/beam/pull/15185

      {{}}

      Previously BQ client library was a part of Beam so this is a new failure mode. We should provide a better error message here.

      {{}}

      Attachments

        Issue Links

          Activity

            People

              vachan Vachan Shetty
              chamikara Chamikara Madhusanka Jayalath
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 5h 50m
                  5h 50m