Skip to content

[CALCITE-7791] UNNEST of a single-field ROW array loses the field nam… - #5271

Open
sbroeder wants to merge 1 commit into
apache:mainfrom
sbroeder:7791
Open

sbroeder wants to merge 1 commit into
apache:mainfrom
sbroeder:7791

Conversation

@sbroeder

Copy link
Copy Markdown
Contributor

…e when aliased

Extend AliasNamespace's CALCITE-5779 COLLECTION_TABLE check to also cover UNNEST when the array's component type is a struct

Jira Link

CALCITE-7791

…e when aliased

Extend AliasNamespace's CALCITE-5779 COLLECTION_TABLE check to also
cover UNNEST when the array's component type is a struct
}

/**
* Returns whether an UNNEST call's array operand has a struct element type.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

beware that unnest has two semantics, depending on conformance: the Trino semantics does not create a column for each ROW column, and the standard semantics does.

@sonarqubecloud

Copy link
Copy Markdown

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