GitHub user sameeragarwal opened a pull request:
https://github.com/apache/spark/pull/11882
[SPARK-14015][SQL] Support TimestampType in vectorized parquet reader
## What changes were proposed in this pull request?
This PR adds support for TimestampType in the vectorized parquet reader
## How was this patch tested?
1. `VectorizedColumnReader` initially had a gating condition on
`primitiveType.getPrimitiveTypeName() ==
PrimitiveType.PrimitiveTypeName.INT96)` that made us fall back on parquet-mr
for handling timestamps. This condition is now removed.
2. The `ParquetHadoopFsRelationSuite` (that tests for all supported hive
types -- including `TimestampType`) fails when the gating condition is removed
(https://github.com/apache/spark/pull/11808) and should now pass with this
change. Similarly, the `ParquetHiveCompatibilitySuite.SPARK-10177 timestamp`
test that fails when the gating condition is removed, should now pass as well.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sameeragarwal/spark timestamp-parquet
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11882.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11882
----
commit a612f8b9c0d51771f3811cdb8f968fe0470221c9
Author: Sameer Agarwal <[email protected]>
Date: 2016-03-22T07:38:55Z
Support TimestampType in vectorized parquet reader
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]