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

HIVE-26892: Backport HIVE-25243 to 3.2.0: Handle nested values in null struct. #3898

Merged
merged 1 commit into from Jan 10, 2023

Conversation

cnauroth
Copy link
Contributor

What changes were proposed in this pull request?

HIVE-26892: Backport HIVE-25243 to 3.2.0: Handle nested values in null struct.

This differs from the original patch as follows:

  • There are no changes in TestJdbcWithMiniLlapVectorArrow. This file does not exist in branch-3. The original patch was only a whitespace change though.
  • I have not included the new test suite TestMiniLlapVectorArrowWithLlapIODisabled. This test suite depends on an additional feature that is only present in master: HIVE-20300 / a8ef214. This is a fairly large patch that I have not chosen to try backporting at this time.

Why are the changes needed?

On branch-3, we've seen a failure in TestArrowColumnarBatchSerDe while trying to serialize a row of null values. It fails while trying to serialize the fields of a null struct. This was fixed in 4.0 by HIVE-25243. This issue tracks a backport to branch-3.

Does this PR introduce any user-facing change?

Null structs are now serialized to Arrow format correctly without error.

How was this patch tested?

Unfortunately, we are left with no specific new tests as part of this backport. However, I applied this patch locally in combination with HIVE-26840 / #3859. After that, all tests in TestArrowColumnarBatchSerDe are passing.

@amanraj2520
Copy link
Contributor

@abstractdog Can you please review and merge this.

@abstractdog abstractdog self-requested a review January 10, 2023 08:58
@abstractdog abstractdog merged commit 3e31a07 into apache:branch-3 Jan 10, 2023
@cnauroth cnauroth deleted the HIVE-26892 branch January 10, 2023 17:30
amanraj2520 pushed a commit to amanraj2520/hive that referenced this pull request Jan 15, 2023
…l struct. (apache#3898) (branch-3 backport by Aman Raj reviewed by Laszlo Bodor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants