-
Notifications
You must be signed in to change notification settings - Fork 915
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
[REVIEW] Fix decimal
metadata in parquet writer
#10224
Conversation
@@ -190,6 +190,7 @@ cpdef generate_pandas_metadata(table, index): | |||
col_meta["name"] in table._column_names | |||
and table._data[col_meta["name"]].nullable | |||
and col_meta["numpy_type"] in PARQUET_META_TYPE_MAP | |||
and col_meta["pandas_type"] != "decimal" |
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.
This is actually better
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #10224 +/- ##
================================================
+ Coverage 10.42% 10.47% +0.05%
================================================
Files 119 122 +3
Lines 20603 20487 -116
================================================
- Hits 2148 2147 -1
+ Misses 18455 18340 -115
Continue to review full report at Codecov.
|
@gpucibot merge |
Fixes: #10172
pa.pandas_compat.construct_metadata
constructs the correct metadata but is being overridden by speciallist
&struct
handling logic asstring
, rather than retaining it asobject
. This PR fixes the issue and modifies existing tests to validate the issue.