-
Notifications
You must be signed in to change notification settings - Fork 18
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 error when we have multiple different map types #96
Conversation
6c12050
to
0fd5c99
Compare
f69bd74
to
71da48c
Compare
0fd5c99
to
e37d709
Compare
71da48c
to
30de679
Compare
e37d709
to
1af44ab
Compare
src/arrow_parquet/pg_to_arrow.rs
Outdated
@@ -60,10 +60,10 @@ pub(crate) struct PgToArrowAttributeContext { | |||
attnum: i16, | |||
typoid: Oid, | |||
typmod: i32, | |||
map_typoid: Option<Oid>, |
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.
what's the difference with typeoid?
also, should this be some kind of enum?
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 was lazy to refactor pg-to-arrow and arrow-to-pg context structs. But, this seems a nice time to do it :)
f4264d4
to
54d4787
Compare
1af44ab
to
a9ffb66
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #96 +/- ##
==========================================
- Coverage 92.65% 91.79% -0.86%
==========================================
Files 75 77 +2
Lines 9797 9981 +184
==========================================
+ Hits 9077 9162 +85
- Misses 720 819 +99 ☔ View full report in Codecov by Sentry. |
a9ffb66
to
bf97833
Compare
We need to reset map context per each type since each map type has different type oid.