You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Prabhu Joseph (Jira)" <ji...@apache.org> on 2022/09/27 11:05:00 UTC
[jira] [Created] (FLINK-29432) Replace GenericUDFNvl with GenericUDFCoalesce
Prabhu Joseph created FLINK-29432:
-------------------------------------
Summary: Replace GenericUDFNvl with GenericUDFCoalesce
Key: FLINK-29432
URL: https://issues.apache.org/jira/browse/FLINK-29432
Project: Flink
Issue Type: Improvement
Reporter: Prabhu Joseph
Hive NVL() function has many issues like [HIVE-25193|https://issues.apache.org/jira/browse/HIVE-25193] and it is retired [HIVE-20961|https://issues.apache.org/jira/browse/HIVE-20961]. Our internal hive distribution has the fix for HIVE-20961. With this fix, Flink Build is failing with below as there is no more GenericUDFNvl in Hive. This needs to be replaced with GenericUDFCoalesce.
```
[INFO] /codebuild/output/src366217558/src/build/flink/rpm/BUILD/flink-1.15.2/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/planner/delegation/hive/copy/HiveParserDefaultGraphWalker.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /codebuild/output/src366217558/src/build/flink/rpm/BUILD/flink-1.15.2/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/planner/delegation/hive/HiveParserTypeCheckProcFactory.java:[75,45] cannot find symbol
symbol: class GenericUDFNvl
location: package org.apache.hadoop.hive.ql.udf.generic
[ERROR] /codebuild/output/src366217558/src/build/flink/rpm/BUILD/flink-1.15.2/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/planner/delegation/hive/HiveParserTypeCheckProcFactory.java:[1216,41] cannot find symbol
symbol: class GenericUDFNvl
location: class org.apache.flink.table.planner.delegation.hive.HiveParserTypeCheckProcFactory.DefaultExprProcessor
[ERROR] /codebuild/output/src366217558/src/build/flink/rpm/BUILD/flink-1.15.2/flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/planner/delegation/hive/copy/HiveParserSemanticAnalyzer.java:[231,26] constructor GlobalLimitCtx in class org.apache.hadoop.hive.ql.parse.GlobalLimitCtx cannot be applied to given types;
required: org.apache.hadoop.hive.conf.HiveConf
found: no arguments
reason: actual and formal argument lists differ in length
[INFO] 3 errors
```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)