Skip to content

Conversation

@kszucs
Copy link
Member

@kszucs kszucs commented Sep 2, 2018

No description provided.

CastOptions()
: allow_int_overflow(false),
allow_time_truncate(false),
allow_float_truncate(true) {}
Copy link
Member Author

@kszucs kszucs Sep 2, 2018

Choose a reason for hiding this comment

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

True is required to keep the current behavior in the python tests.
This will be set to False by default via #2504

@kszucs kszucs requested a review from pitrou September 4, 2018 07:29
Copy link
Member

@xhochy xhochy left a comment

Choose a reason for hiding this comment

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

+1, LGTM

@xhochy xhochy closed this in 7483331 Sep 4, 2018
@kszucs
Copy link
Member Author

kszucs commented Sep 4, 2018

Thanks Uwe!

@kszucs kszucs removed the request for review from pitrou September 4, 2018 09:17
allow_time_truncate(false),
allow_float_truncate(true) {}

explicit CastOptions(bool safe)
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps annotate these methods as internal / experimental. I'm not sure what will be the best way longer-term to manage these flags

wesm pushed a commit that referenced this pull request Sep 8, 2018
…safe casts

Depends on both #2497 and #2503

Author: Krisztián Szűcs <[email protected]>

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
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.

3 participants