We are connecting to hive and running sql thru ODBC driver. Getting the following error
hortonworks error [Hortonworks][SQLEngine] (31340) DATEDIFF is not a valid scalar function or procedure call. we have a sql which has a select and it has a simple datediff which seems to be causing the issue
DATEDIFF('2017-02-02', '2017-02-01') as Exp_curr_dt
Have any of you experienced this issue? please let me know if you have any suggestions to fix this.
Also, the parent query has an alias which has an underscore in the front of the name and it doesn't work if I directly execute this unless I enclose it within tick symbol. But from odbc however the query goes thru except for the datediff part.
We are using the 2.1.5 odbc driver 64 bit version. The application connecting to hive and executing sql is written in .net