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

airframe-sql: Implement outputAttributes of Unnest #2618

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

takezoe
Copy link
Member

@takezoe takezoe commented Dec 5, 2022

No description provided.

@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Merging #2618 (b35c80e) into master (21bc969) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2618      +/-   ##
==========================================
+ Coverage   82.00%   82.02%   +0.02%     
==========================================
  Files         333      333              
  Lines       13869    13870       +1     
  Branches     2189     2195       +6     
==========================================
+ Hits        11373    11377       +4     
+ Misses       2496     2493       -3     
Impacted Files Coverage Δ
...n/scala/wvlet/airframe/sql/model/LogicalPlan.scala 88.46% <100.00%> (+0.08%) ⬆️
...frame-rx/src/main/scala/wvlet/airframe/rx/Rx.scala 83.95% <0.00%> (-1.24%) ⬇️
...me-log/src/main/scala/wvlet/log/io/StopWatch.scala 80.85% <0.00%> (-0.21%) ⬇️
...in/scala/wvlet/airframe/sql/model/Expression.scala 63.03% <0.00%> (+0.60%) ⬆️
.../scala/wvlet/airframe/sql/model/ResolvedPlan.scala 62.50% <0.00%> (+9.37%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21bc969...b35c80e. Read the comment docs.

override def inputAttributes: Seq[Attribute] = Seq.empty // TODO
override def outputAttributes: Seq[Attribute] = Seq.empty // TODO
override def children: Seq[LogicalPlan] = Seq.empty
override def inputAttributes: Seq[Attribute] = Seq.empty // TODO
Copy link
Member

Choose a reason for hiding this comment

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

ok. Filed #2620

override def inputAttributes: Seq[Attribute] = Seq.empty // TODO
override def outputAttributes: Seq[Attribute] = {
columns.map {
case a: ArrayConstructor => SingleColumn(MultiColumn(a.values, None), None, None, a.nodeLocation)
Copy link
Member

Choose a reason for hiding this comment

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

Not sure whether we should retain all of the input expressions. I think if we can associate the column name for each ArrayConstructor, we can discard Literal values here except the other Attributes (Id, ResolvedAttributes, etc.).

Copy link
Member Author

Choose a reason for hiding this comment

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

That's right. I think the same thing can be applied to SELECT FROM VALUES.

Copy link
Member

Choose a reason for hiding this comment

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

It's ok to merge. We can fix the behavior later.

Copy link
Member Author

Choose a reason for hiding this comment

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

Got it. Thank you.

@takezoe takezoe merged commit 49ed35f into wvlet:master Dec 6, 2022
@takezoe takezoe deleted the sql-resolve-unnest branch December 6, 2022 07:59
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