Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support create a FixedSizeList Table with NULL Column #9094

Closed
Weijun-H opened this issue Feb 1, 2024 · 2 comments · Fixed by #9141
Closed

Support create a FixedSizeList Table with NULL Column #9094

Weijun-H opened this issue Feb 1, 2024 · 2 comments · Fixed by #9141
Labels
enhancement New feature or request

Comments

@Weijun-H
Copy link
Member

Weijun-H commented Feb 1, 2024

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

@Weijun-H Weijun-H added the enhancement New feature or request label Feb 1, 2024
@alamb
Copy link
Contributor

alamb commented Feb 1, 2024

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

@Weijun-H
Copy link
Member Author

Weijun-H commented Feb 6, 2024

I will work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants