refine schema's type from "Datatype" to DataType