Hello.
Your command is definitely not valid. Where did you find it? We don't have such syntax in the documentation. It was accepted due to bug.
Use
ALTER TABLE tableName ALTER COLUMN columnName SET NOT NULL
instead.
The SET DATA TYPE clause may be used only to change the data type of the column, it is officially supported since 1.4.198.