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  # Hive3 org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableDateObjectInspector#getPrimitiveJavaObject  -- 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]
