Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-17715

Exception when pushing postaggregates into Druid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.0.0
    • 3.0.0
    • Druid integration
    • None

    Description

      After Calcite is upgraded to 1.14 and the rule to push post-aggregations to Druid is enabled, the following query will fail:

      EXPLAIN
      SELECT language, robot, sum(added) - sum(delta) AS a
      FROM druid_table_1
      WHERE extract (week from `__time`) IN (10,11)
        AND robot='Bird Call'
      GROUP BY language, robot;
      

      The error we get is the following:

      Cannot add expression of different type to set:
      set type is RecordType(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" COLLATE "ISO-8859-1$en_US$primary" language, VARCHAR(2147483647) CHARACTER SET "UTF-16LE" COLLATE "ISO-8859-1$en_US$primary" robot, DOUBLE a) NOT NULL
      expression type is RecordType(VARCHAR(2147483647) CHARACTER SET "UTF-16LE" COLLATE "ISO-8859-1$en_US$primary" language, DOUBLE postagg#0) NOT NULL
      set is rel#1507:HiveProject.HIVE.[](input=HepRelVertex#1514,language=$0,robot=CAST(_UTF-16LE'Bird Call'):VARCHAR(2147483647) CHARACTER SET "UTF-16LE" COLLATE "ISO-8859-1$en_US$primary",a=-($1, $2))
      expression is DruidQuery#1516
      

      Attachments

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: