GitHub user brkyvz opened a pull request:
https://github.com/apache/spark/pull/18676
[SPARK-21463] Allow userSpecifiedSchema to override partition inference
performed by MetadataLogFileIndex
## What changes were proposed in this pull request?
When using the MetadataLogFileIndex to read back a table, we don't respect
the user provided schema as the proper column types. This can lead to issues
when trying to read strings that look like dates that get truncated to
DateType, or longs being truncated to IntegerType, just because a long value
doesn't exist.
## How was this patch tested?
Unit tests and manual tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/brkyvz/spark stream-partitioning
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18676.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 #18676
----
commit 8e4b94ffc4222464d3aa0a33e794edf946f926c0
Author: Burak Yavuz <[email protected]>
Date: 2017-07-18T20:37:56Z
Allow userSpecifiedSchema to override partition inference performed by
MetadataLogFileIndex
----
---
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]