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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chunhui-shi
Copy link
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")

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
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
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.

None yet

3 participants