[SPARK-4108][sql] 

Fixed usage of deprecated in sql/catalyst/types/datatypes to have versio...n parameter