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

Field #1: values VARCHAR(2147483647) ARRAY does not exist for expression index($0, 0)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • 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 testArrayDoesNotExistForExpression() {
          tableEnv.loadModule("hive", new HiveModule(hiveCatalog.getHiveVersion()));
          tableEnv.executeSql("CREATE EXTERNAL TABLE t1(" +
                  "  `record` array<struct<name:string,`values`:array<string>,value_type:string>>)" +
                  "PARTITIONED BY (" +
                  "  `p_date` string)");
      
          tableEnv.executeSql("SELECT" +
                  "n as dpInfo" +
                  "FROM t1" +
                  "LATERAL VIEW explode(record[0].`values`) nnn as n" +
                  "WHERE p_date = \"20220320\"");
      } 

      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: