Review Board 1.7.22


Sqoop2: NPE when importing NULL value

Review Request #11183 - Created May 15, 2013 and updated

Vasanth kumar RJ
SQOOP-1048
Reviewers
Sqoop
sqoop-sqoop2
Throws NullPointerException when column value is NULL, since result set return null object.
Done
connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcConnectorConstants.java
Revision 23f19b5 New Change
[20] 48 lines
[+20]
49

    
   
49

   
50
  public static final String SQL_PARAMETER_MARKER = "?";
50
  public static final String SQL_PARAMETER_MARKER = "?";
51

    
   
51

   
52
  public static final String SUBQUERY_ALIAS = "SQOOP_SUBQUERY_ALIAS";
52
  public static final String SUBQUERY_ALIAS = "SQOOP_SUBQUERY_ALIAS";
53

    
   
53

   

    
   
54
  public static final String SQL_NULL_VALUE = "null";

    
   
55

   
54
  private GenericJdbcConnectorConstants() {
56
  private GenericJdbcConnectorConstants() {
55
    // Disable explicit object creation
57
    // Disable explicit object creation
56
  }
58
  }
57
}
59
}
connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcImportExtractor.java
Revision d54b430 New Change
 
  1. connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcConnectorConstants.java: Loading...
  2. connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcImportExtractor.java: Loading...