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

Parquet Complex Data Support for Big Decimals and INT96 #1916

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

gna-phetsarath
Copy link

Motivation

The primitive type support was extended to support:

  • fixed_len_byte_array(L) DECIMAL(p,s) with BigDecimal and BigInteger conversion
  • INT96 Timestamp

Supported Complex Data Type Conversions

Parquet Data Type Converted Scalding Type
fixed_len_byte_array(L) field_name (DECIMAL(p,s)) BigDecimal(p,s) => String
if s == 0, and p <= 10 => Int
if s == 0 and p <= 18 => Long
INT96 Date to String formatted -
Timestamp.toString
"2011-01-01 00:00:00.123456789"
"yyyy-mm-dd hh:mm:ss.SSSSSSSSS"

Changes

  • Modified
    • ParquetTupleConverter
  • Added
    • Conversion Utils for Decimal and ParquetTimestamps
    • Unit Tests

Tests

  • Added new unit tests
  • imports org.apache.hive | hive-exec for test utils for Timestamp to NanoTime conversions

Tested

sbt clean test

@CLAassistant
Copy link

CLAassistant commented May 9, 2019

CLA assistant check
All committers have signed the CLA.

@gna-phetsarath
Copy link
Author

@johnynek and @non: Would it be possible for you to review?
Thank you.

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