oracle中数据类型和java/scala中对应关系:
date <=> java.sql.Timestampchar, varchar <=> java.sql.String number <=> java.math.BigDecimal
对应org.apache.spark.sql.Row
中的相应get方法:
//获取Date类型的列值:row.getTimestamp(index)getAs[java.sql.Timestamp](index)getAs[java.sql.Timestamp]("col_name")