on 02-07-2020 12:09 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.