Syntax error as following when there is LAST_DAY function in your query:
column store errorsearch table error:  syntax error (parsing query)
However when you checked the SQL, the symtax is correct.
SAP HANA database up to SPS12.
KBA , HAN-DB , SAP HANA Database , Problem
About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.