[
https://issues.apache.org/jira/browse/HIVE-21975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16928441#comment-16928441
]
Zoltan Haindrich commented on HIVE-21975:
-----------------------------------------
I think the problem areises mostly from these "extends Serializable" things...
my opinion is that "extends Serializable" doesn't add any value/restriction or
what so ever - since Task needs a [type argument which is
Serializable|https://github.com/apache/hive/blob/101d4d66bf0ba56502e0e5689a31cb0ce72ea03e/ql/src/java/org/apache/hadoop/hive/ql/exec/Task.java#L55]
{quote}
I just started on the Hive project and hit the same issue. Also hit the issue
in Driver.java.
{quote}
yeah...I usually just delete the ql/target directory when I bump into
this....it would be great to have it fixed...
> Fix incremental compilation
> ---------------------------
>
> Key: HIVE-21975
> URL: https://issues.apache.org/jira/browse/HIVE-21975
> Project: Hive
> Issue Type: Bug
> Reporter: Zoltan Haindrich
> Priority: Major
>
> we have an incremental compilation issue around SA ; mostly because of "?
> extends Serializable"
> it could be reproduced with:
> {code}
> git clean -dfx
> mvn install -pl ql -am -DskipTests
> touch `find . -name Sema*A*java` `find . -name Task*Factory.java`
> mvn install -pl ql -DskipTests
> {code}
> error is:
> {code}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile
> (default-compile) on project hive-exec: Compilation failure: Compilation
> failure:
> [ERROR]
> /mnt/work/hwx/hive/master/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:[12573,60]
> incompatible types: java.util.List<org.apache.hadoop.hive.ql.exec.Task<?
> extends java.io.Serializable>> cannot be converted to
> java.util.List<org.apache.hadoop.hive.ql.exec.Task<?>>
> [ERROR]
> /mnt/work/hwx/hive/master/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:[15187,49]
> incompatible types: java.util.List<org.apache.hadoop.hive.ql.exec.Task<?>>
> cannot be converted to java.util.List<org.apache.hadoop.hive.ql.exec.Task<?
> extends java.io.Serializable>>
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)