Skip to content
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

ARROW-4457: [Python] Allow creating Decimal array from Python ints #3612

Closed
wants to merge 1 commit into from

Conversation

pitrou
Copy link
Member

@pitrou pitrou commented Feb 11, 2019

This is a regression apparently introduced in 0.11.0

This is a regression apparently introduced in 0.11.0
@pitrou
Copy link
Member Author

pitrou commented Feb 11, 2019

As for the explanation, it seems at some point we were doing no type checking and blindly converted the Python input to a string. That was supposed to work for Python decimals but incidentally also did the right thing for Python integers (though untested). Then I or someone else must have added type checking :-)

@wesm
Copy link
Member

wesm commented Feb 11, 2019

Yeah, I figured this was working before "by accident" =)

Copy link
Member

@wesm wesm left a comment

Choose a reason for hiding this comment

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

+1

@wesm wesm closed this in 1d72a89 Feb 11, 2019
@pitrou pitrou deleted the ARROW-4457-decimal-from-pyint branch February 11, 2019 22:23
trxcllnt pushed a commit to trxcllnt/arrow that referenced this pull request Feb 12, 2019
This is a regression apparently introduced in 0.11.0

Author: Antoine Pitrou <antoine@python.org>

Closes apache#3612 from pitrou/ARROW-4457-decimal-from-pyint and squashes the following commits:

5d0e767 <Antoine Pitrou> ARROW-4457:  Allow creating Decimal array from Python ints
trxcllnt pushed a commit to trxcllnt/arrow that referenced this pull request Feb 12, 2019
This is a regression apparently introduced in 0.11.0

Author: Antoine Pitrou <antoine@python.org>

Closes apache#3612 from pitrou/ARROW-4457-decimal-from-pyint and squashes the following commits:

5d0e767 <Antoine Pitrou> ARROW-4457:  Allow creating Decimal array from Python ints
tanyaschlusser pushed a commit to tanyaschlusser/arrow that referenced this pull request Feb 21, 2019
This is a regression apparently introduced in 0.11.0

Author: Antoine Pitrou <antoine@python.org>

Closes apache#3612 from pitrou/ARROW-4457-decimal-from-pyint and squashes the following commits:

5d0e767 <Antoine Pitrou> ARROW-4457:  Allow creating Decimal array from Python ints
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.

None yet

2 participants