I am trying to use a STRING_AGG function in my SAP HANA CDS file, but the system does not seem to recognize this function. Standard aggregation functions like sum or count seems to work but this one - doesn't:
view MY_VIEW as
select from A_TABLE A
left join B_TABLE as B on
A.ID = B.REF_ID
{
count( * ) as DATA,
STRING_AGG(B.CODE,', ') CODES
}
group by OTHER_ID;
Is there a way to use this function within SAP HANA CDS files? Or is there a workaround?