cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting and aggregating from SAP HANA Model

philippatlur
Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

pfefferf
Active Contributor

Please check upper/lower case characters in your column name in the db table. If you have a mix of upper/lower case characters or just lower case characters you have to enclose your column name in double quotes, so that the name is not automatically adjusted to all upper case.