get schema from SchemaRDD.schema
get NRow throws error if error occur