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-1845: [Python] Expose Decimal128Type #1348

Closed
wants to merge 2 commits into from

Conversation

xhochy
Copy link
Member

@xhochy xhochy commented Nov 22, 2017

No description provided.

@@ -967,7 +983,25 @@ cpdef DataType decimal(int precision, int scale=0):
decimal_type : DecimalType
"""
cdef shared_ptr[CDataType] decimal_type
decimal_type.reset(new CDecimalType(precision, scale))
decimal_type.reset(new CDecimalType(byte_width, precision, scale))
return pyarrow_wrap_data_type(decimal_type)
Copy link
Member

Choose a reason for hiding this comment

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

arrow::DecimalType is the base type now -- I don't think we should allow users to create instances of it

Copy link
Member Author

Choose a reason for hiding this comment

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

Should I simply remove this function then?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, and the CDecimalType class in libarrow.pxd

Copy link
Member

Choose a reason for hiding this comment

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

Actually, that's OK to leave

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, @cpcloud is this OK with you?

Copy link
Contributor

@cpcloud cpcloud 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

Change-Id: I4ab257d47424c43426776e46fb46a02b5e89d7f0
@wesm
Copy link
Member

wesm commented Nov 22, 2017

Here's appveyor passing: https://ci.appveyor.com/project/xhochy/arrow/build/1.0.520

@wesm wesm closed this in 9b2dc77 Nov 22, 2017
@wesm wesm deleted the ARROW-1845 branch November 22, 2017 22:22
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