You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (JIRA)" <ji...@apache.org> on 2019/06/03 12:53:00 UTC
[jira] [Updated] (ARROW-1450) [Python] Raise proper error if custom
serialization handler fails
[ https://issues.apache.org/jira/browse/ARROW-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Pitrou updated ARROW-1450:
----------------------------------
Component/s: Python
> [Python] Raise proper error if custom serialization handler fails
> -----------------------------------------------------------------
>
> Key: ARROW-1450
> URL: https://issues.apache.org/jira/browse/ARROW-1450
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Philipp Moritz
> Assignee: Philipp Moritz
> Priority: Major
> Fix For: 0.7.0
>
>
> At the moment, the following fails:
> {code:none}
> def test_serializaton_callback_error():
> class TempClass(object):
> pass
> # Have a SerializationContext but TempClass is not
> # registered
> serialization_context = pa.SerializationContext()
> with pytest.raises(pa.SerializationCallbackError):
> serialized_object = pa.serialize(TempClass, serialization_context)
> {code}
> This is because serialize will raise a generic ArrowException instead of a SerializationCallbackError. We do need the latter because it contains the object that couldn't be serialized, which is important to give good error messages; in the case of Ray we sometimes want use the object to register additional serialization callbacks on the fly to make the user experience smoother.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)