@@ -383,9 +383,9 @@ def process(self, o):
383383class DoOperation (Operation ):
384384 """A Do operation that will execute a custom DoFn for each input element."""
385385
386- def __init__ (self , spec , pipeline_options ):
386+ def __init__ (self , spec ):
387387 super (DoOperation , self ).__init__ (spec )
388- self .state = common .DoFnState (pipeline_options )
388+ self .state = common .DoFnState ()
389389
390390 def _read_side_inputs (self , tags_and_types ):
391391 """Generator reading side inputs in the order prescribed by tags_and_types.
@@ -728,8 +728,7 @@ class MapTaskExecutor(object):
728728 multiple_read_instruction_error_msg = (
729729 'Found more than one \' read instruction\' in a single \' map task\' ' )
730730
731- def __init__ (self , pipeline_options = None ):
732- self .pipeline_options = pipeline_options
731+ def __init__ (self ):
733732 self ._ops = []
734733 self ._read_operation = None
735734
@@ -776,7 +775,7 @@ def execute(self, map_task, test_shuffle_source=None, test_shuffle_sink=None):
776775 elif isinstance (spec , maptask .WorkerPartialGroupByKey ):
777776 op = create_pgbk_op (spec )
778777 elif isinstance (spec , maptask .WorkerDoFn ):
779- op = DoOperation (spec , self . pipeline_options )
778+ op = DoOperation (spec )
780779 elif isinstance (spec , maptask .WorkerGroupingShuffleRead ):
781780 op = GroupedShuffleReadOperation (
782781 spec , shuffle_source = test_shuffle_source )
0 commit comments