I have a query on a sap hana model that uses the same column (payment_amount) in the where clause and in the select as well and for some reason sap hana is not able to find the column when we do that. It returns with an error -
Error: (dberror) [2048]: column store error: search table error: [34051] Error during plan execution; Failed to find column 'PAYMENT_AMOUNT'
the query im trying to execute is -
select TOP 100 GSL_CATEGORY_1, GSL_CATEGORY_2, '2|$ for GSL payments given' as Metric_dsc ,SUM(PAYMENT_AMOUNT) as FY_amount FROM "eql.edw.source.cherwell_ee.td::CV_CE_GSL_CUST_CLAIMS" (placeholder."$IP_AS_AT_DATE$"=>'2019-01-17') WHERE PAYMENT_AMOUNT > 0 and PAYMENT_SENT_DATETIME between '2018-07-01' and '2019-06-30' GROUP BY GSL_CATEGORY_1, GSL_CATEGORY_2