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

ExprNodeColumnDesc should be created with isPartitionColOrVirtualCol true for DP column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.3.0, 2.0.0
    • Query Processor
    • None

    Description

      In SymenticAnalyzer method:
      Operator genConversionSelectOperator(String dest, QB qb, Operator input, TableDesc table_desc, DynamicPartitionCtx dpCtx) throws SemanticException
      ==
      The DP column's ExprNodeColumnDesc is created by passing false as the parameter isPartitionColOrVirtualCol value:

            // DP columns starts with tableFields.size()
            for (int i = tableFields.size() + (updating() ? 1 : 0); i < rowFields.size(); ++i) {
              TypeInfo rowFieldTypeInfo = rowFields.get(i).getType();
              ExprNodeDesc column = new ExprNodeColumnDesc(
                  rowFieldTypeInfo, rowFields.get(i).getInternalName(), "", false);
              expressions.add(column);
            }
      

      I think it should be true instead.

      Attachments

        1. HIVE-10587.patch
          0.9 kB
          Chaoyu Tang

        Activity

          People

            ctang Chaoyu Tang
            ctang Chaoyu Tang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: