Skip to content

ARROW-1839/ARROW-1871: [C++/Python] Add Decimal Parquet Read/Write Tests#1335

Closed
cpcloud wants to merge 41 commits intoapache:masterfrom
cpcloud:ARROW-1839
Closed

ARROW-1839/ARROW-1871: [C++/Python] Add Decimal Parquet Read/Write Tests#1335
cpcloud wants to merge 41 commits intoapache:masterfrom
cpcloud:ARROW-1839

Conversation

@cpcloud
Copy link
Contributor

@cpcloud cpcloud commented Nov 20, 2017

No description provided.

@cpcloud cpcloud changed the title ARROW-1839: [C++/Python] Add Decimal Parquet Read/Write Tests WIP: ARROW-1839: [C++/Python] Add Decimal Parquet Read/Write Tests Nov 20, 2017
@wesm
Copy link
Member

wesm commented Nov 27, 2017

Rebased

@cpcloud
Copy link
Contributor Author

cpcloud commented Nov 27, 2017

This isn't quite ready to go I have a few more things to add.

@cpcloud cpcloud changed the title WIP: ARROW-1839: [C++/Python] Add Decimal Parquet Read/Write Tests ARROW-1839: [C++/Python] Add Decimal Parquet Read/Write Tests Dec 3, 2017
@cpcloud cpcloud changed the title ARROW-1839: [C++/Python] Add Decimal Parquet Read/Write Tests ARROW-1839/ARROW-1871: [C++/Python] Add Decimal Parquet Read/Write Tests Dec 3, 2017
@cpcloud
Copy link
Contributor Author

cpcloud commented Dec 3, 2017

@wesm This is no longer a WIP and is ready for review.

I have a test (test_decimal_roundtrip_negative_scale) that depends on https://issues.apache.org/jira/browse/PARQUET-1167. I can remove that here and add in a later PR if necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is generating a ton of tests, I will move the scale inside the function.

@wesm
Copy link
Member

wesm commented Dec 3, 2017

I force-pushed this after PARQUET-1167 was merged so we can get a passing build

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, OK to merge once the build is passing

Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure why these were ever virtual. Making them non-virtual because we're already using CRTP here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, sounds good to me

Copy link
Member

Choose a reason for hiding this comment

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

I'm renaming this to RescaleDecimal since it might be ambiguous in the arrow namespace otherwise

@wesm
Copy link
Member

wesm commented Dec 4, 2017

There's an odd Python 2.7 failure here

@cpcloud
Copy link
Contributor Author

cpcloud commented Dec 4, 2017

Yep I know what it is. Putting up a fix in a bit. Pylong_check is for actual long typed values. Py3 only has int checking

cpcloud and others added 2 commits December 4, 2017 15:12
Change-Id: I41816f4644620ea92696858a9ca96843c80d2e0c
@wesm
Copy link
Member

wesm commented Dec 4, 2017

@cpcloud RescaleDecimal wasn't exported, so instead I made it an instance method of Decimal128 if that's cool with you

@cpcloud
Copy link
Contributor Author

cpcloud commented Dec 4, 2017

@wesm Yep that's fine with me. We will need this for decimal kernels pretty soon.

@wesm
Copy link
Member

wesm commented Dec 4, 2017

Unrelated Travis CI failure. I'll merge as soon as we have a green Appveyor build

@wesm
Copy link
Member

wesm commented Dec 5, 2017

Appveyor finally passing: https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/build/1.0.4623. Merging! thanks @cpcloud for your herculean efforts on this!

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