You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/08/01 10:02:50 UTC

[GitHub] [hudi] cdmikechen opened a new pull request #3378: [HUDI-83] Fix Timestamp type read by Hive

cdmikechen opened a new pull request #3378:
URL: https://github.com/apache/hudi/pull/3378


   ## What is the purpose of the pull request
   
   This pull request let hive can read timestamp type column datas correctly.
   
   The problem was initially related to JIRA [HUDI-83](https://issues.apache.org/jira/browse/HUDI-83) and related issues on issue https://github.com/apache/hudi/issues/2544
   
   ## Brief change log
    
   -  Change `HoodieParquetInputFormat` to use a custom `ParquetInputFormat` named `HudiAvroParquetInputFormat`
   - In `HudiAvroParquetInputFormat` we use a custom `RecordReader` named `HudiAvroParquetReader`. In this class we use `AvroReadSupport` so that Hive can get parquet data with an avro GenericRecord.
   - Use `org.apache.hudi.hadoop.utils.HoodieRealtimeRecordReaderUtils.avroToArrayWritable` to transform GenericRecord to ArrayWriteable. At the same time, timestamp processing for different situations of hive2 and hive3 is added to this method.
   
   ## Verify this pull request
   
   This change added tests and can be verified as follows:
   `org.apache.hudi.hadoop.TestHoodieParquetInputFormat.testHoodieParquetInputFormatReadTimestamp`
   
   
   ## Committer checklist
   
    - [x] Has a corresponding JIRA in PR title & commit
    
    - [ ] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hudi] hudi-bot edited a comment on pull request #3378: [HUDI-83] Fix Timestamp type read by Hive

Posted by GitBox <gi...@apache.org>.
hudi-bot edited a comment on pull request #3378:
URL: https://github.com/apache/hudi/pull/3378#issuecomment-890488457


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e5686c25f71a8fa0568639270ba710e0fe9bbdd2",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=1293",
       "triggerID" : "e5686c25f71a8fa0568639270ba710e0fe9bbdd2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e5686c25f71a8fa0568639270ba710e0fe9bbdd2 Azure: [FAILURE](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=1293) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run travis` re-run the last Travis build
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hudi] cdmikechen closed pull request #3378: [HUDI-83] Fix Timestamp type read by Hive

Posted by GitBox <gi...@apache.org>.
cdmikechen closed pull request #3378:
URL: https://github.com/apache/hudi/pull/3378


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hudi] hudi-bot edited a comment on pull request #3378: [HUDI-83] Fix Timestamp type read by Hive

Posted by GitBox <gi...@apache.org>.
hudi-bot edited a comment on pull request #3378:
URL: https://github.com/apache/hudi/pull/3378#issuecomment-890488457


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e5686c25f71a8fa0568639270ba710e0fe9bbdd2",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=1293",
       "triggerID" : "e5686c25f71a8fa0568639270ba710e0fe9bbdd2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e5686c25f71a8fa0568639270ba710e0fe9bbdd2 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=1293) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run travis` re-run the last Travis build
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hudi] hudi-bot commented on pull request #3378: [HUDI-83] Fix Timestamp type read by Hive

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #3378:
URL: https://github.com/apache/hudi/pull/3378#issuecomment-890488457


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "e5686c25f71a8fa0568639270ba710e0fe9bbdd2",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e5686c25f71a8fa0568639270ba710e0fe9bbdd2",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e5686c25f71a8fa0568639270ba710e0fe9bbdd2 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run travis` re-run the last Travis build
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org