FAQ
Author: szehon
Date: Fri Feb 6 01:00:23 2015
New Revision: 1657731

URL: http://svn.apache.org/r1657731
Log:
HIVE-9340 : NullPointerException on ALTER TABLE ADD PARTITION if no value given (Sergio Peña via Szehon)

Modified:
     hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java?rev=1657731&r1=1657730&r2=1657731&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java Fri Feb 6 01:00:23 2015
@@ -3038,7 +3038,8 @@ public class DDLSemanticAnalyzer extends

      for (Entry<String, String> e : partSpec.entrySet()) {
        for (String s : reservedPartitionValues) {
- if (e.getValue().contains(s)) {
+ String value = e.getValue();
+ if (value != null && value.contains(s)) {
            throw new SemanticException(ErrorMsg.RESERVED_PART_VAL.getMsg(
                "(User value: " + e.getValue() + " Reserved substring: " + s + ")"));
          }

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedFeb 6, '15 at 1:00a
activeFeb 6, '15 at 1:00a
posts1
users1
websitehive.apache.org

1 user in discussion

Szehon: 1 post

People

Translate

site design / logo © 2021 Grokbase