voonhous commented on PR #11577:
URL: https://github.com/apache/hudi/pull/11577#issuecomment-2212920904

   @danny0405 I checked the code and realised that the reason why the tests 
were failing because the `DATE` column is defined with an INT type in 
`org.apache.hudi.common.testutils.HoodieTestDataGenerator#TRIP_HIVE_COLUMN_TYPES`.
   
   
https://github.com/apache/hudi/blob/1f6520b1b26ff02127e1cfdece32b2a68f0c5d51/hudi-common/src/test/java/org/apache/hudi/common/testutils/HoodieTestDataGenerator.java#L157-L158
   
   In our productionised tests environment, the HIVE_TYPES for dates are passed 
by `DATE` instead of `INT` types.
   
   On top of that, if values are indeed passed as INT, we should be seeing the 
same error as what was described in https://github.com/apache/hudi/pull/11576.
   
   The return types for are as such:
   
   # Hive2
   
   
org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableDateObjectInspector#getPrimitiveJavaObject
   
   
![image](https://github.com/apache/hudi/assets/6312314/6b847fa0-3399-4d08-86f6-8fc798be9af4)
   
   
   # Hive3
   
   
org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableDateObjectInspector#getPrimitiveJavaObject
   
   
![image](https://github.com/apache/hudi/assets/6312314/57bf629e-61a1-4430-b246-afa1e7173eb0)
   
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to