Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-491

PPD: Column name lookups need to look a struct deeper for ACID

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.5.6, 1.6.0
    • Component/s: None
    • Labels:
      None

      Description

        public static int[] mapSargColumnsToOrcInternalColIdx(
                                  List<PredicateLeaf> sargLeaves,
                                  SchemaEvolution evolution) {
          int[] result = new int[sargLeaves.size()];
          Arrays.fill(result, -1);
          for(int i=0; i < result.length; ++i) {
            String colName = sargLeaves.get(i).getColumnName();
            result[i] = findColumns(evolution, colName);
          }
          return result;
        }
      

      returns -1 for all data column names, because it was one level deeper.

      sarg = [(IS_NULL date_time_date)]
      colName = date_time_date
      struct<operation:int,originalTransaction:bigint,bucket:int,rowId:bigint,currentTransaction:bigint,row:struct<date_time_date:date,term:string>>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vgarg Vineet Garg
                Reporter:
                gopalv Gopal Vijayaraghavan
              • Votes:
                0 Vote for this issue
                Watchers:
                5 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 - 1h
                  1h