diff --git a/python/pyarrow/plasma.pyx b/python/pyarrow/plasma.pyx index 981cc933c324c..714f4789ff1da 100644 --- a/python/pyarrow/plasma.pyx +++ b/python/pyarrow/plasma.pyx @@ -159,6 +159,12 @@ cdef class ObjectID: """ return self.data.binary() + @staticmethod + def from_random(): + cdef ObjectID result + result.data = CUniqueID.from_random() + return result + cdef class ObjectNotAvailable: """