Please redefine mytransform as below,
def mytransform(mutable t){
t[`MyDate]=date(t[`col1])
t[`Time]=time(t[`col1])
return t
}
It is recommended to convert the data type of “Time“ from STRING to TIME, and that of “Code“ from STRING to SYMBOL.