Use functions in PPL

Hi, could you provide the query that is giving you the error?

I also posted an example of cast here that you can take a look CAST function not working on PPL - #2 by joshli