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

Dataflow interactive runner throws exception when there is BigQuery I/O in the pipeline

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Duplicate
    • 2.35.0, 2.36.0, 2.37.0
    • Not applicable
    • runner-py-interactive
    • None

    Description

      ~/apache-beam-2.37.0/lib/python3.7/site-packages/apache_beam/coders/coders.py in <lambda>(x)
          800     protocol = pickle.HIGHEST_PROTOCOL
          801     return coder_impl.CallbackCoderImpl(
      --> 802         lambda x: dumps(x, protocol), pickle.loads)
          803 
          804   def as_deterministic_coder(self, step_label, error_message=None):
      
      TypeError: can't pickle generator objects [while running '[1]: ReadFromBigQuery/Read/SDFBoundedSourceReader/ParDo(SDFBoundedSourceDoFn)/SplitAndSizeRestriction'] 

      Issue occurred since 2.35.0.

      After debugging, the generator was introduced in https://github.com/apache/beam/pull/15610.

      Attachments

        1. 5wETU34vtmgk2de.png
          75 kB
          Ning

        Issue Links

          Activity

            People

              ningk Ning
              ningk Ning
              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
                  4h