Skip to content

ARROW-3329: [Python] Python tests for decimal to int and decimal to decimal casts#6846

Closed
JacekPliszka wants to merge 2 commits intoapache:masterfrom
JacekPliszka:ARROW-3329
Closed

ARROW-3329: [Python] Python tests for decimal to int and decimal to decimal casts#6846
JacekPliszka wants to merge 2 commits intoapache:masterfrom
JacekPliszka:ARROW-3329

Conversation

@JacekPliszka
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Apr 6, 2020

@JacekPliszka
Copy link
Contributor Author

I need help with the failure above - on my machine the test passes as pa.ArrowInvalid is returned.
In the test OverflowError is returned.

I added workaround for that - not sure if correct one.

Added Python tests for decimal to integer and decimal to decimal casts.

Minor problem remaining:

* python cast does not distinguish between truncation and overflow -
only safe option is present
* no overflow implemented for decimal to decimal cast
* cast while constructing is still failing
@pitrou
Copy link
Member

pitrou commented Apr 23, 2020

I rebased and improved the tests slightly. Also opened some issues for some oddities.

@pitrou
Copy link
Member

pitrou commented Apr 23, 2020

The CI failure looks unrelated, will merge.

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.

2 participants