Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1418

[Python] Introduce SerializationContext to register custom serialization callbacks

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.7.0
    • Component/s: Python
    • Labels:
      None

      Description

      In the first iteration of the Python serialization code, we used global variables to store the custom serialization and deserialization callback functions. This global state is undesirable because if the user wants to use different serialization callbacks with different types registered, they need to remember resetting the state. As Wes suggested, a good way to address this is by introducing a SerializationContext that has the callbacks and gets passed around.

        Attachments

          Activity

            People

            • Assignee:
              pcmoritz Philipp Moritz
              Reporter:
              pcmoritz Philipp Moritz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: