Hi Nikil,
I copied the code one to one from http://help.sap.com/hana/html/_esql_functions_window.html and it works for me without any error.
As mentioned earlier, I am on revision 52. I am not sure if this is a bug in revision 49. May be, you can raise OSS message for the same.
Regards,
Ravi