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

NPE when we call isSame from an instance of ExprNodeConstantDesc with null value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None

      Description

      Take a look at the code

        @Override
        public boolean isSame(Object o) {
          if (!(o instanceof ExprNodeConstantDesc)) {
            return false;
          }
          ExprNodeConstantDesc dest = (ExprNodeConstantDesc) o;
          if (!typeInfo.equals(dest.getTypeInfo())) {
            return false;
          }
          if (!value.equals(dest.getValue())) {
            return false;
          }
      
          return true;
        }
      

      value is an Object.

        Attachments

          Activity

            People

            • Assignee:
              yhuai Yin Huai
              Reporter:
              yhuai Yin Huai
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: