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

Potential null dereference in DDLSemanticAnalyzer#addInputsOutputsAlterTable()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      Here is related code:

              if (desc == null
                  || !AlterTableDesc.doesAlterTableTypeSupportPartialPartitionSpec(desc.getOp())) {
                throw new SemanticException(
                    ErrorMsg.ALTER_TABLE_TYPE_PARTIAL_PARTITION_SPEC_NO_SUPPORTED, desc.getOp().name());
      

      If desc is null, the construction of SemanticException would trigger NPE due to the call to desc.getOp().

      Attachments

        1. HIVE-8523.2.patch.txt
          11 kB
          Navis Ryu
        2. HIVE-8523.1.patch.txt
          7 kB
          Navis Ryu

        Issue Links

          Activity

            People

              navis Navis Ryu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: