Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Support unsigned types and timestamp millis in record reader #181

Merged
merged 1 commit into from
Nov 3, 2018

Conversation

sadikovi
Copy link
Collaborator

@sadikovi sadikovi commented Nov 2, 2018

This PR adds support for the following logical types for the record reader API:

  • INT32 physical type
    • UINT_8
    • UINT_16
    • UINT_32
  • INT64
    • TIMESTAMP_MILLIS
    • UINT_64

I named the new fields as UByte, UShort, UInt and ULong. I know, these names are not the best, but I can't change the existing API to make them all conform to either INT_XY or UINT_XY.

I also updated accessors' methods and updated unit tests.

Relates to #178.

@sadikovi sadikovi requested a review from sunchao November 2, 2018 20:14
@coveralls
Copy link

Pull Request Test Coverage Report for Build 645

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 20 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 95.536%

Files with Coverage Reduction New Missed Lines %
record/api.rs 20 97.24%
Totals Coverage Status
Change from base Build 640: 0.02%
Covered Lines: 12477
Relevant Lines: 13060

💛 - Coveralls

Copy link
Owner

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

@sunchao sunchao merged commit b3c6cfc into sunchao:master Nov 3, 2018
@sunchao
Copy link
Owner

sunchao commented Nov 3, 2018

Merged. Thanks @sadikovi !

@sadikovi
Copy link
Collaborator Author

sadikovi commented Nov 3, 2018

Thanks! It is not the best change, but I could not find better names for the new types.

@sadikovi sadikovi deleted the support-more-types branch November 3, 2018 10:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants