File tree Expand file tree Collapse file tree
sdks/python/apache_beam/dataframe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ def evaluate_with(input_partitioning):
121121 # is computed trivially with Singleton partitioning and passes.
122122 for input_partitioning in sorted (set ([expr .requires_partition_by (),
123123 partitionings .Arbitrary (),
124+ partitionings .JoinIndex (),
124125 partitionings .Index (),
125126 partitionings .Singleton ()])):
126127 if not expr .requires_partition_by ().is_subpartitioning_of (
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ def expr_to_stages(expr):
375375 expr .requires_partition_by () == stage .partitioning )
376376 if inputs_by_stage :
377377 # Take the stage with the largest count.
378- stage = sorted (inputs_by_stage .items (), key = lambda kv : kv [1 ])[ - 1 ] [0 ]
378+ stage = max (inputs_by_stage .items (), key = lambda kv : kv [1 ])[0 ]
379379 else :
380380 stage = None
381381 else :
You can’t perform that action at this time.
0 commit comments