Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3786

Query with window function fails with IllegalFormatConversionException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.2.0
    • 1.4.0
    • None
    • 10 Performance Nodes
      DRILL_MAX_DIRECT_MEMORY=100g
      DRILL_INIT_HEAP="8g"
      DRILL_MAX_HEAP="8g"
      planner.memory.query_max_memory_per_node bumped up to 20 GB
      TPC-DS SF 1000 dataset (Parquet)

    Description

      Query fails with Runtime exception:

      SELECT sum(s.ss_quantity) OVER (PARTITION BY s.ss_store_sk, s.ss_customer_sk ORDER BY s.ss_store_sk) FROM store_sales s LIMIT 20;
      java.lang.RuntimeException: java.sql.SQLException: SYSTEM ERROR: IllegalFormatConversionException: d != java.lang.Character
      
      Fragment 1:0
      
      [Error Id: 12b51c0c-4992-4ceb-89c4-c99307529c7e on ucs-node8.perf.lab:31010]
      	at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73)
      	at sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:87)
      	at sqlline.TableOutputFormat.print(TableOutputFormat.java:118)
      	at sqlline.SqlLine.print(SqlLine.java:1583)
      	at sqlline.Commands.execute(Commands.java:852)
      	at sqlline.Commands.sql(Commands.java:751)
      	at sqlline.SqlLine.dispatch(SqlLine.java:738)
      	at sqlline.SqlLine.begin(SqlLine.java:612)
      	at sqlline.SqlLine.start(SqlLine.java:366)
      	at sqlline.SqlLine.main(SqlLine.java:259)
      

      Query logs and profile attached.

      Attachments

        1. query_profile.json
          649 kB
          Abhishek Girish
        2. drillbit.log.txt
          6 kB
          Abhishek Girish

        Activity

          People

            adeneche Abdel Hakim Deneche
            agirish Abhishek Girish
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: