Skip to content

Fix capabilities reported by UnnestStorageAdapter.#16551

Merged
gianm merged 1 commit intoapache:masterfrom
gianm:fix-unnest-caps
Jun 5, 2024
Merged

Fix capabilities reported by UnnestStorageAdapter.#16551
gianm merged 1 commit intoapache:masterfrom
gianm:fix-unnest-caps

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
@gianm gianm deleted the fix-unnest-caps branch June 5, 2024 22:19
@clintropolis clintropolis mentioned this pull request Jul 4, 2024
@kfaraz kfaraz added this to the 31.0.0 milestone Oct 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

3 participants