Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-25592 Improvement of parser, optimizer and execution for Flink Batch SQL
  3. FLINK-27380

Failed to get Hive result type from org.apache.hadoop.hive.ql.udf.generic.GenericUDAFPercentileApprox

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.13.1, 1.15.0
    • None
    • Connectors / Hive
    • None

    Description

      We can reproduce through a UT

      Add test case in HiveDialectITCase

      @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");
      } 

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tartarus tartarus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: