-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SUPPORT]Compile Error of hudi-0.13.0 "org.apache.hadoop.hive.common.type can not be converted to java.sql.Date" #8216
Comments
@gamblewin Can you share the stacktrace of the error? |
you can try #7173 |
@lokeshj1703 Thx for replying.
|
@gamblewin I am able to reproduce the error . Any specific reason why you updating hive version to 3.1.3. |
thx, this solved my problem. Btw, line 312 also needs to be changed. |
I've solved this problem according to #7173. Actually, it's because someone else has already installed hive 3.1.3 in the environment. |
Hi gamblewin, may I have your modified for line 312? |
case INT:
if (schema.getLogicalType() != null && schema.getLogicalType().getName().equals("date")) {
// - return DateWritable.dateToDays(new WritableDateObjectInspector().getPrimitiveJavaObject(structFieldData));
return new DateWritable((DateWritable)structFieldData).getDays();
} but I don't know if I did the right change, cuz after this alteration, compilation succeeded. But when I want to insert data into a hudi cdc COW table, it will report mistake. |
When compiling source code of hudi-0.13.0, report compile error:
"HiveAvroSerializer.java[302, 93]: org.apache.hadoop.hive.common.type can not be converted to java.sql.Date"
The text was updated successfully, but these errors were encountered: