Skip to content

Relax validation for null validity buffer when null_count is -1 #855

@paleolimbot

Description

@paleolimbot

This can happen in the wild ( firelab/gdalraster#918 (comment) ) and the current validation is tighter than what Arrow C++ accepts on import (I checked arrow-rs and it also does not mind).

We error if null_count != 0 but it is probably sufficient to check that the null count is not > 0 for all practical purposes. The use case in the issue is that GDAL has been producing arrays like this for several years and there's no real reason we shouldn't accept these arrays.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions