You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "luoyuxia (Jira)" <ji...@apache.org> on 2022/04/25 10:30:00 UTC

[jira] [Commented] (FLINK-27380) Failed to get Hive result type from org.apache.hadoop.hive.ql.udf.generic.GenericUDAFPercentileApprox

    [ https://issues.apache.org/jira/browse/FLINK-27380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17527408#comment-17527408 ] 

luoyuxia commented on FLINK-27380:
----------------------------------

[~tartarus] Thanks for reporting it. Similar issue to [Flink-16568|https://issues.apache.org/jira/browse/FLINK-16568].

Should be fix after finish [Flink-15855|https://issues.apache.org/jira/browse/FLINK-15855].

The pr is also available. 

> Failed to get Hive result type from org.apache.hadoop.hive.ql.udf.generic.GenericUDAFPercentileApprox
> -----------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-27380
>                 URL: https://issues.apache.org/jira/browse/FLINK-27380
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Connectors / Hive
>    Affects Versions: 1.13.1, 1.15.0
>            Reporter: tartarus
>            Priority: Major
>
> We can reproduce through a UT
> Add test case in HiveDialectITCase
> {code:java}
> @Test
> public void testPercentileApprox() {
>     CoreModule coreModule = CoreModule.INSTANCE;
>     for (String moduleName : tableEnv.listModules()) {
>         tableEnv.unloadModule(moduleName);
>     }
>     tableEnv.loadModule("hive", new HiveModule(hiveCatalog.getHiveVersion()));
>     tableEnv.loadModule("core", coreModule);
>     tableEnv.executeSql("create table t1 (id bigint, name string)");
>     tableEnv.executeSql("select percentile_approx(id, 0.98) from t1");
> } {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)