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

Parquet map logical type #876

Merged
merged 7 commits into from
Jan 9, 2024
Merged

Parquet map logical type #876

merged 7 commits into from
Jan 9, 2024

Conversation

RustedBones
Copy link
Contributor

Implementing Map[K, V] as described by parquet MAP logical type documentation

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (7af1303) 95.21% compared to head (08b2be6) 95.17%.

Files Patch % Lines
...rc/main/scala/magnolify/parquet/ParquetField.scala 97.56% 1 Missing ⚠️
...ls/src/main/scala/magnolify/tools/AvroParser.scala 95.45% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #876      +/-   ##
==========================================
- Coverage   95.21%   95.17%   -0.04%     
==========================================
  Files          51       51              
  Lines        1777     1825      +48     
  Branches      175      157      -18     
==========================================
+ Hits         1692     1737      +45     
- Misses         85       88       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@clairemcginty clairemcginty left a comment

Choose a reason for hiding this comment

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

awesome! thanks for updating tools as well!

.named("map")
}

override val hasAvroArray: Boolean = pfKey.hasAvroArray || pfValue.hasAvroArray
Copy link
Contributor

Choose a reason for hiding this comment

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

I almost think we should throw an error if there's an hasAvroArray mismatch between key and value (and they both contain repeated types), since that probably points to a user error... that said, an iterable key is enough of an edge case it might not be worth implementing 😅

@RustedBones RustedBones merged commit 43ce752 into main Jan 9, 2024
11 of 12 checks passed
@RustedBones RustedBones deleted the parquet-map branch January 9, 2024 10:03
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

2 participants