Rajeev-01 opened a new issue, #19595: URL: https://github.com/apache/hudi/issues/19595
### Bug Description **What happened:** - Job is failing with NPE when trying to compare the avro version and it is failing with NPE as the version returned as null **What you expected:** - No need to fail since we can fetch from pom.properties of the fat jar. **Steps to reproduce:** 1. Build a project with dependency on avro 2. Add the log to see the implementation version of Schema.class 3. Build and run the jar. ### Environment **Hudi version:** 1.2.x **Query engine:** (Spark/Flink/Trino etc) None **Relevant configs:** ### Logs and Stack Trace `at java.base/java.lang.Thread.run(Thread.java:840) Caused by: java.lang.NullPointerException: Cannot invoke "String.toLowerCase(java.util.Locale)" because "version" is null at org.apache.hudi.common.util.ComparableVersion.parseVersion(ComparableVersion.java:317) at org.apache.hudi.common.util.ComparableVersion.<init>(ComparableVersion.java:309) at org.apache.hudi.common.util.StringUtils.compareVersions(StringUtils.java:224) at org.apache.hudi.avro.HoodieAvroUtils.gteqAvro1_12(HoodieAvroUtils.java:1337) at org.apache.hudi.avro.HoodieAvroUtils.convertDefaultValueForAvroCompatibility(HoodieAvroUtils.java:1341) at org.apache.hudi.avro.HoodieAvroUtils.createNewSchemaField(HoodieAvroUtils.java:288) at org.apache.hudi.common.schema.HoodieSchemaField.of(HoodieSchemaField.java:122) at org.apache.hudi.common.schema.HoodieSchemaField.of(HoodieSchemaField.java:98) at org.apache.hudi.common.schema.HoodieSchemaUtils.createNewSchemaField(HoodieSchemaUtils.java:339) at org.apache.hudi.common.schema.HoodieSchemaUtils.initRecordKeySchema(HoodieSchemaUtils.java:654) at org.apache.hudi.common.schema.HoodieSchemaUtils.<clinit>(HoodieSchemaUtils.java:69) ... 35 common frames omitted` -- 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]
