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

SYSTEM ERROR: IndexOutOfBoundsException: index: 512, length: 4 (expected: range(0, 512))

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • planner.slice_target > 100000
      planner.enable_nljoin_for_scalar_only = false

    Description

      The following query causes IndexOutOfBoundsException:

      SELECT 
        `t1`.`one` `one` 
      FROM 
        (
          SELECT 
            1 `one` 
          FROM 
            dfs.`<path to drill>/drill/exec/java-exec/src/test/resources/join/j1`
            INNER JOIN (
              SELECT 
                314 `c_integer` 
              FROM 
                dfs.`<path to drill>/drill/exec/java-exec/src/test/resources/join/j1`
            ) `t0` ON (
              `<path to drill>/drill/exec/java-exec/src/test/resources/join/j1`.c_integer IS NOT DISTINCT 
              FROM 
                `t0`.`c_integer`
            ) 
          GROUP BY 
            `one`
        ) `t1` 
        INNER JOIN (
          SELECT 
            count(1) `measure` 
          FROM 
            dfs.`<path to drill>/drill/exec/java-exec/src/test/resources/join/j1`
        ) `t5` ON TRUE
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vrozov Vlad Rozov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: