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

Fix capabilities reported by UnnestStorageAdapter. #16551

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

gianm
Copy link
Contributor

@gianm gianm commented Jun 5, 2024

UnnestStorageAdapter and its cursors did not return capabilities correctly for the output column. This patch fixes two problems:

  1. UnnestStorageAdapter returned the capabilities of the unnest virtual
    column prior to unnesting. It should return the post-unnest capabilities.

  2. UnnestColumnValueSelectorCursor passed through isDictionaryEncoded from
    the unnest virtual column. This is incorrect, because the dimension selector
    created by this class never has a dictionary.

Fixes #16543.

UnnestStorageAdapter and its cursors did not return capabilities correctly
for the output column. This patch fixes two problems:

1) UnnestStorageAdapter returned the capabilities of the unnest virtual
   column prior to unnesting. It should return the post-unnest capabilities.

2) UnnestColumnValueSelectorCursor passed through isDictionaryEncoded from
   the unnest virtual column. This is incorrect, because the dimension selector
   created by this class never has a dictionary. This is the cause of apache#16543.
Copy link
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

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

beat me to it, thanks for fixing 👍

@gianm gianm merged commit 1040a29 into apache:master Jun 5, 2024
87 checks passed
@gianm gianm deleted the fix-unnest-caps branch June 5, 2024 22:19
@clintropolis clintropolis mentioned this pull request Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem with array, UNNEST and JSON_PARSE
2 participants