rangareddy commented on issue #17257: URL: https://github.com/apache/hudi/issues/17257#issuecomment-4999123330
This issue was reviewed as part of the JIRA-migrated backlog triage. The NoSuchMethodError on WritableTimestampObjectInspector.getPrimitiveJavaObject was caused by Hive 3.1 changing that method's return type from java.sql.Timestamp to org.apache.hadoop.hive.common.type.Timestamp while Hudi compiled against Hive 2.3. This was fixed by PR #11576 ([HUDI-7955], commit b0e0efcc5, merged 2024-07-08) with follow-up PR #11612, which introduced a Hive shim layer (HiveShim / Hive2Shim / Hive3Shim). On master, HiveAvroSerializer.serializePrimitive handles the TIMESTAMP case via HoodieHiveUtils.getMills(...), and Hive3Shim.getMills (Hive3Shim.java:127) uses reflection to convert the Hive3 timestamp to a java.sql.Timestamp, avoiding the compile-time-bound call that broke. Closing as already fixed. -- 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]
