手动编译 Flink 1

[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 11:58 min[INFO] Finished at: 2019-07-24T16:37:45+08:00
摘要由CSDN通过智能技术生成

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 11:58 min

[INFO] Finished at: 2019-07-24T16:37:45+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project flink-table-api-java: Compilation failure

[ERROR] /E:/devlop/sourcespace/flink/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java:[560,85] 未报告的异常错误X; 必须对其进行捕获或声明以便抛出

[ERROR]

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :flink-table-api-java

这个问题 未报告的异常错误X; 必须对其进行捕获或声明以便抛出 问题卡了我好久,查看源码

private CalculatedQueryOperation<?> unwrapFromAlias(CallExpression call) {

List children = call.getChildren();

List aliases = children.subList(1, children.size())

.stream()

.map(alias -> ExpressionUtils.extractValue(alias, String.class)

.orElseThrow(() -> new ValidationException("Unexpected alias: " + alias))) <= 这里是异常提示

.collect(toList());

if (!isFunctionOfKind(children.get(0), TABLE)) {

throw fail();

}

CallExpression tableCall = (CallExpression) children.get(0);

TableFunctionDefinition tableFunctionDefinition =

(TableFunctionDefinition) tableCall.getFunctionDefinition();

return createFunctionCall(tableFunctionDefinition, aliases, tableCall.getResolvedChildren());

}

再看一下ValidationException的代码

@PublicEvolving

public class ValidationException extends RuntimeException {

public ValidationException(String message, Throwable cause) {

super(message, cause);

}

public ValidationException(String message) {

super(message);

}

}

似乎也没啥问题,然后翻了半天,终于在stackoverflow上找到问题所在了https://stackoverflow.com/questions/2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值