Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2200

CompileException on UNION ALL query when result only contains one column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v1.5.4.1
    • v2.5.1
    • Query Engine
    • None

    Description

      select count(*) from kylin_sales
      union all
      select count(*) from kylin_sales
      

      got following exception

      Caused by: org.codehaus.commons.compiler.CompileException: Line 82, Column 32: Cannot determine simple type name "Record11_1"
              at org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:10092)
              at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:5375)
              at org.codehaus.janino.UnitCompiler.getReferenceType(UnitCompiler.java:5184)
              at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:5165)
              at org.codehaus.janino.UnitCompiler.access$12600(UnitCompiler.java:183)
              at org.codehaus.janino.UnitCompiler$16.visitReferenceType(UnitCompiler.java:5096)
              at org.codehaus.janino.Java$ReferenceType.accept(Java.java:2880)
              at org.codehaus.janino.UnitCompiler.getType(UnitCompiler.java:5136)
              at org.codehaus.janino.UnitCompiler.getType2(UnitCompiler.java:5598)
              at org.codehaus.janino.UnitCompiler.access$13300(UnitCompiler.java:183)
              at org.codehaus.janino.UnitCompiler$16.visitCast(UnitCompiler.java:5104)
      

      Attachments

        1. KYLIN-2200.patch
          8 kB
          Dayue Gao

        Issue Links

          Activity

            People

              gaodayue Dayue Gao
              gaodayue Dayue Gao
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: