Skip to content

DRILL-6321: Lateral Join and Unnest - star column prefix#1275

Open
chunhui-shi wants to merge 1 commit intoapache:masterfrom
chunhui-shi:master
Open

DRILL-6321: Lateral Join and Unnest - star column prefix#1275
chunhui-shi wants to merge 1 commit intoapache:masterfrom
chunhui-shi:master

Conversation

@chunhui-shi
Copy link
Copy Markdown
Contributor

  • Add prefix to unnest's star column
  • add tests for output column verification

  * Add prefix to unnest's star column
  * add tests for output column verification
testBuilder()
.unOrdered()
.sqlQuery(Sql)
.baselineColumns("c_name", "c_id", "c_phone", "orders", "c_address", "o_id", "o_shop", "o_amount", "items")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this set of columns is not right. The UNNEST should produce only the top level column since that's what the planner knows about. De-constructing the underlying map in the data means that we will not be able to specify a column alias for the unnest output: e.g UNNEST(t.orders) as t2(o).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The set of columns returned from UNNEST is another issue. And can be changed later if really needed. This fix is mainly about star case.

@vdiravka
Copy link
Copy Markdown
Member

DRILL-6321 is marked as resolved with 1.14 Drill version. But it involves several PRs.
@chunhui-shi What is the purpose of that? Do we need reopen it or to open a new one for this PR?

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.

3 participants