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

[spark] Fix writing null struct col #4787

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

Zouxxyy
Copy link
Contributor

@Zouxxyy Zouxxyy commented Dec 26, 2024

Purpose

CREATE TABLE t (i INT, s STRUCT<f1: INT, f2: INT>);
INSERT INTO t VALUES ((1, null), (2, STRUCT(null, null));
SELECT s FROM t;

before

[null,null], [null,null]

after

-- orc and avro
null, [null,null]

There is still bug with reading parquet, which fix involves core changes, add an issue to track it #4785

Tests

API and Format

Documentation

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@JingsongLi JingsongLi merged commit 0b00f3c into apache:master Dec 26, 2024
12 checks passed
JingsongLi pushed a commit that referenced this pull request Dec 30, 2024
Zouxxyy added a commit to Zouxxyy/incubator-paimon that referenced this pull request Jan 3, 2025
@Zouxxyy Zouxxyy deleted the dev/fix-null branch January 13, 2025 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants