I am trying to export data to Teradata from HDFS using scaling JDBC and its throwing below error .
Caused by: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC ********] [Error 1063] [SQLState HY000] null is not supported as a data value with this variant of the setObject method; use the setNull method or the setObject method with a targetSqlType parameter
Column defintion i have used is as below .
ColumnDefinition ("Name","CHAR(20) NULL")
and also tried .
ColumnDefinition ("Name","java.sql.Types.CHAR(20) NULL")
Please help!!!
Regards,
Jonz