Skip to content

New null with view types are not supported #5893

@XiangpengHao

Description

@XiangpengHao

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

The following test case should pass, but failed because view types are not handled in ArrayData::new_null (https://github.com/XiangpengHao/arrow-rs/blob/master/arrow-data/src/data.rs#L564)

    #[test]
    fn test_null_view_types() {
        let array_len = 32;
        let array = ArrayData::new_null(&DataType::BinaryView, array_len);
        assert_eq!(array.len(), array_len);
        for i in 0..array.len() {
            assert!(array.is_null(i));
        }
    }

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions