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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0
    • None
    • 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

        1. HIVE-4798.txt
          0.7 kB
          Yin Huai

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: