Skip to content

[HUDI-6309] Fix bug when hive queries Array type#8873

Merged
danny0405 merged 1 commit intoapache:masterfrom
xicm:HUDI-6309
Jun 3, 2023
Merged

[HUDI-6309] Fix bug when hive queries Array type#8873
danny0405 merged 1 commit intoapache:masterfrom
xicm:HUDI-6309

Conversation

@xicm
Copy link
Contributor

@xicm xicm commented Jun 2, 2023

Change Logs

#8844

Impact

none

Risk level (write none, low medium or high below)

low

Documentation Update

none

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

if (listElementObjectInspector.getCategory() == ObjectInspector.Category.PRIMITIVE) {
elementType = arrayNestedType;
} else {
elementType = arrayNestedType.getField("element") == null ? arrayNestedType : arrayNestedType.getField("element").schema();
Copy link
Contributor Author

@xicm xicm Jun 2, 2023

Choose a reason for hiding this comment

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

Hi @xiarixiaoyao , Can you help explain when the element will be available?

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for your fix.
I remember there is a slight difference in the array types used by hive2 and hive3 to handle AVRO,
Actually, I have encountered your issue before and I want to handle it in this way. At present, it seems that this method is incorrect.

@hudi-bot
Copy link
Collaborator

hudi-bot commented Jun 2, 2023

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@danny0405 danny0405 closed this Jun 2, 2023
@danny0405 danny0405 reopened this Jun 2, 2023
@danny0405
Copy link
Contributor

Close and re-open to re-trigger the travis CI.

@danny0405 danny0405 merged commit 43e025a into apache:master Jun 3, 2023
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.

4 participants