Skip to content

Support create a FixedSizeList Table with NULL Column #9094

Closed

Description

@Weijun-H

Is your feature request related to a problem or challenge?

Failed to create FixedSizeList with NULL column

CREATE TABLE fixed_size_arrays
AS VALUES
	arrow_cast(make_array(',','a','b','c','d'), 'FixedSizeList(5, Utf8)'),
	NULL,
	arrow_cast(make_array(',','a','b','c','d'), 'FixedSizeList(5, Utf8)')
;

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. alamb commented on Feb 1, 2024

    @alamb
    Contributor

    In particlar, this query fails with a panic:

    ❯ CREATE TABLE fixed_size_arrays
    AS VALUES
    	(arrow_cast(make_array(',','a','b','c','d'), 'FixedSizeList(5, Utf8)')),
    	(NULL),
    	(arrow_cast(make_array(',','a','b','c','d'), 'FixedSizeList(5, Utf8)'))
    ;
    thread 'main' panicked at /Users/andrewlamb/.cargo/registry/src/index.crates.io-6f17d22bba15001f/arrow-data-50.0.0/src/transform/mod.rs:358:13:
    assertion `left == right` failed: Arrays with inconsistent types passed to MutableArrayData
      left: FixedSizeList(Field { name: "item", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, 5)
     right: FixedSizeList(Field { name: "item", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, 1)
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  2. Weijun-H commented on Feb 6, 2024

    @Weijun-H
    MemberAuthor

    I will work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions