Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12014#discussion_r57667387
  
    --- Diff: python/pyspark/worker.py ---
    @@ -95,10 +107,23 @@ def main(infile, outfile):
                     _broadcastRegistry.pop(bid)
     
             _accumulatorRegistry.clear()
    -        command = pickleSer._read_with_length(infile)
    -        if isinstance(command, Broadcast):
    -            command = pickleSer.loads(command.value)
    -        func, profiler, deserializer, serializer = command
    +        row_based = read_int(infile)
    +        num_commands = read_int(infile)
    +        if row_based:
    +            profiler = None  # profiling is not supported for UDF
    --- End diff --
    
    `profiler` seems need to be defined before this if block. The codes refer 
`profiler` later out of this block.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to