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

Fix/hof structs combined error and improve resolution of unresolved columns #227

Merged
merged 13 commits into from
Jun 21, 2022

Conversation

alfonsorr
Copy link
Member

@alfonsorr alfonsorr commented Jun 9, 2022

HOF functions for arrays and maps couldn't be used combined with Row children due to problems with lambda column references.

Added also flatten for collections of collections
Added currentDate alternative that allows setting the Return type other than Date

Fixes #225

  • This pull request contain appropriate tests?

@alfonsorr alfonsorr requested a review from a team as a code owner June 9, 2022 12:50
@github-actions github-actions bot added spark_2.4 PR changes to spark 2.4 spark_3.0 PR changes to spark 3.0 spark_3.1 PR changes to spark 3.1 spark_3.2 PR changes to spark 3.2 labels Jun 9, 2022
@alfonsorr alfonsorr added the bug 🐛 Something isn't working label Jun 9, 2022
@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #227 (6d7ea4d) into main (468f69b) will increase coverage by 0.44%.
The diff coverage is 98.39%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
+ Coverage   96.39%   96.83%   +0.44%     
==========================================
  Files          53       53              
  Lines         831      946     +115     
  Branches        9       11       +2     
==========================================
+ Hits          801      916     +115     
  Misses         30       30              
Flag Coverage Δ
spark-2.4.x 93.19% <84.51%> (-0.44%) ⬇️
spark-3.0.x 95.80% <98.39%> (+0.49%) ⬆️
spark-3.1.x 96.76% <98.39%> (+0.34%) ⬆️
spark-3.2.x 96.76% <98.39%> (+0.34%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
core/src/main/scala/doric/sem/Errors.scala 96.15% <ø> (+1.71%) ⬆️
core/src/main/scala/doric/DoricColumn.scala 72.97% <76.92%> (-4.17%) ⬇️
core/src/main/scala/doric/doric.scala 94.44% <100.00%> (+1.59%) ⬆️
...ore/src/main/scala/doric/syntax/ArrayColumns.scala 100.00% <100.00%> (ø)
core/src/main/scala/doric/syntax/DStructs.scala 100.00% <100.00%> (ø)
core/src/main/scala/doric/syntax/DateColumns.scala 100.00% <100.00%> (ø)
...src/main/scala/doric/syntax/TimestampColumns.scala 81.25% <100.00%> (+1.25%) ⬆️
core/src/main/scala/doric/syntax/package.scala 100.00% <100.00%> (ø)
....0_3.1_3.2/scala/doric/syntax/ArrayColumns3x.scala 100.00% <100.00%> (ø)
..._3.0_3.1_3.2/scala/doric/syntax/MapColumns3x.scala 100.00% <100.00%> (ø)
... and 3 more

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 468f69b...6d7ea4d. Read the comment docs.

@alfonsorr alfonsorr marked this pull request as draft June 15, 2022 15:48
@alfonsorr
Copy link
Member Author

Still pending some optimizations in creating the lambdas

@alfonsorr alfonsorr marked this pull request as ready for review June 18, 2022 15:04
@alfonsorr
Copy link
Member Author

@eruizalo Ready for your review 😄

@alfonsorr alfonsorr changed the title Fix/hof structs combined error Fix/hof structs combined error and improve resolution of unresolved columns Jun 18, 2022
@alfonsorr alfonsorr requested a review from eruizalo June 20, 2022 14:23
alfonsorr and others added 4 commits June 21, 2022 11:36
Co-authored-by: Eduardo Ruiz Alonso <edu.r26@gmail.com>
Co-authored-by: Eduardo Ruiz Alonso <edu.r26@gmail.com>
Co-authored-by: Eduardo Ruiz Alonso <edu.r26@gmail.com>
Added zipper to improve zipWith syntax
@alfonsorr alfonsorr requested a review from eruizalo June 21, 2022 10:06
@alfonsorr alfonsorr merged commit e91ba9c into hablapps:main Jun 21, 2022
@eruizalo eruizalo mentioned this pull request Oct 7, 2022
74 tasks
@alfonsorr alfonsorr deleted the fix/hof_structs branch December 19, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working spark_2.4 PR changes to spark 2.4 spark_3.0 PR changes to spark 3.0 spark_3.1 PR changes to spark 3.1 spark_3.2 PR changes to spark 3.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug report]: use of arrays HOF with structs doesnt work
2 participants