Match hive support for type widening in the hive connector#19983
Match hive support for type widening in the hive connector#19983tdcmeehan merged 1 commit intoprestodb:masterfrom
Conversation
|
|
19f9a2c to
bc06c3c
Compare
|
High level seems ok. Please squash commits, and please read the following guidelines for commit message structure and content. I'll follow up with a more detailed review early next week. |
bc06c3c to
993d893
Compare
993d893 to
88f16c5
Compare
88f16c5 to
8f187b9
Compare
presto-hive/src/test/java/com/facebook/presto/hive/TestHiveTypeWidening.java
Outdated
Show resolved
Hide resolved
8f187b9 to
1ae5c09
Compare
|
Codenotify: Notifying subscribers in CODENOTIFY files for diff 7b95c5b...6ae6a33.
|
tdcmeehan
left a comment
There was a problem hiding this comment.
These changes look good logically, but I'm worried about hot path branch mispredictions in the readValue method. Can you run some benchmarks in BenchmarkParquetReader and see if you find a difference in performance?
I executed them in master: and in the branch: The run times appear to be within expectations considering the nature of the tests. Let me know if this should be enough or I should execute each one several times and get an average to be more confident about the changes. |
|
I am satisfied with it. @shangxinli any concerns before I merge? |
|
The added binary files are concerns. They are not easy to maintain to keep test reliable. Can you use parquet writer to generate those files at runtime? |
Add automatic type conversions consuming parquet files from
the hive connector. Conversions are not bidirectional:
- integer -> bigint -> float -> double
- bigint -> float -> double
- float -> double
Add automated testing
Changes in TestHiveFileFormat as now certain tests (double column
reading float value) should not fail
Update doc
Resolves: prestodb#19983
1ae5c09 to
6ae6a33
Compare
|
Changed tests to generate parquet files at runtime as suggested |
|
I'm seeing compilation failures that seem to be caused by this change. |
prestodb#20957 and prestodb#19983 were merged at similar times, and when taken together broke the build (as changes required by prestodb#20957 aren't present in prestodb#19983).
prestodb#20957 and prestodb#19983 were merged at similar times, and when taken together broke the build (as changes required by prestodb#20957 aren't present in prestodb#19983).
Test plan - Added test to hive module. Executed hive and parquet tests locally.