Chararray type casting is now working, udf is working, flatten is working