-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-1949: [Python/C++] Add option to Array.from_pandas and pyarrow.array to perform unsafe casts #2497
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
Conversation
python/pyarrow/array.pxi
Outdated
| DataType type, | ||
| CMemoryPool* pool, c_bool from_pandas): | ||
| DataType type, CMemoryPool* pool, c_bool from_pandas, | ||
| c_bool safe): |
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.
TODO: Implementation is missing from here
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.
ConvertPySequence assumes strict conversion if datatype is explicitly passed.
Codecov Report
@@ Coverage Diff @@
## master #2497 +/- ##
==========================================
+ Coverage 86.17% 87.44% +1.27%
==========================================
Files 308 246 -62
Lines 47102 43433 -3669
==========================================
- Hits 40589 37980 -2609
+ Misses 6439 5453 -986
+ Partials 74 0 -74
Continue to review full report at Codecov.
|
xhochy
left a comment
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.
+1, LGTM
|
Thanks Uwe! |
…safe casts Depends on both #2497 and #2503 Author: Krisztián Szűcs <szucs.krisztian@gmail.com> Closes #2504 from kszucs/ARROW-2799 and squashes the following commits: 7bf9efd <Krisztián Szűcs> unsafe table creation during parquet dataset partitioning 38dfea3 <Krisztián Szűcs> disallow float truncation by default 515a393 <Krisztián Szűcs> Table.from_pandas safe option 2c82074 <Krisztián Szűcs> check-format 80e1478 <Krisztián Szűcs> lint e0838ce <Krisztián Szűcs> wire CastOptions through the API 2961094 <Krisztián Szűcs> set allow_float_truncate true by default 194e476 <Krisztián Szűcs> allow truncate float option and its implementation
No description provided.