You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compose a view for a select that should aggregate values using group by and sum. I'm able to create the view executing cds deploy but when running npx cds2types --cds file.cds --output output.ts -f to create the types I get the following error:
view ViewA as
select from TableA as ta
inner join Tableb as tb
on tb.id = ta.tableBId
{
ta.field1 as field1,
+ sum(tb.field2) as field2
}
where
<conditions>
group by
ta.field1;
Hi!
I'm trying to compose a view for a select that should aggregate values using group by and sum. I'm able to create the view executing
cds deploy
but when runningnpx cds2types --cds file.cds --output output.ts -f
to create the types I get the following error:view ViewA as select from TableA as ta inner join Tableb as tb on tb.id = ta.tableBId { ta.field1 as field1, + sum(tb.field2) as field2 } where <conditions> group by ta.field1;
if I don't use sum, it works well,
Does anyone ever faced this issue or has any clue on how to fix it? Thank you!
The text was updated successfully, but these errors were encountered: