Skip to content

Avoid closing/freeing struct-like object instances on import #765

Closed
@pepijnve

Description

@pepijnve

Describe the enhancement requested

Currently the various import methods in org.apache.arrow.c.Data call close on the BaseStruct arguments they receive as parameter. This prevents callers from reusing these objects multiple times. Since the caller needs to allocate these objects themselves, it seems like it would be more consistent to also expect the caller to free them. This works well in combination with try-with-resources.

See related discussion #763.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions