-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
Codecov ReportAttention:
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. |
There was a problem hiding this 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!
parquet/src/test/scala/magnolify/parquet/ParquetTypeSuite.scala
Outdated
Show resolved
Hide resolved
06f6313
to
17ab320
Compare
.named("map") | ||
} | ||
|
||
override val hasAvroArray: Boolean = pfKey.hasAvroArray || pfValue.hasAvroArray |
There was a problem hiding this comment.
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 😅
Implementing
Map[K, V]
as described by parquet MAP logical type documentation