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

Nested structure Projection Push Down in Hive with ORC

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Resolved
    • None
    • None
    • Hive, ORC

    Description

      Reading required columns only in nested structure schema

      Example -

      Current state -

      Schema - struct<a:int, b:bigint,c:struct<d:int,e:struct<f:int>,g:string>>
      Query - select c.e.f from t where c.e.f > 10;
      Current state - read entire c struct from the file and then filter because "hive.io.file.readcolumn.ids" is referred due to which all the children column are select to read from the file.
      Conf -
      _hive.io.file.readcolumn.ids = "2"
      hive.io.file.readNestedColumn.paths = "c.e.f"_

      Result -
      boolean[ ] include = [true,false,false,true,true,true,true,true]

      Expected state -

      Schema - struct<a:int, b:bigint,c:struct<d:int,e:struct<f:int>,g:string>>
      Query - select c.e.f from t where c.e.f > 10;
      Expected state - instead of reading entire c struct from the file just read only the f column by referring the " hive.io.file.readNestedColumn.paths".
      Conf -
      _hive.io.file.readcolumn.ids = "2"
      hive.io.file.readNestedColumn.paths = "c.e.f"_

      Result -
      boolean[ ] include = [true,false,false,true,false,true,true,false]

      Attachments

        1. HIVE-19103.patch
          5 kB
          Ashish Sharma
        2. HIVE-19103.2.patch
          5 kB
          Ashish Sharma
        3. HIVE-19103.3.patch
          14 kB
          Ashish Sharma

        Issue Links

          Activity

            People

              ashish-kumar-sharma Ashish Sharma
              ashish-kumar-sharma Ashish Sharma
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m