on 01-13-2022 8:26 PM
Hi!
Recently in CAP window functions have been introduced. However when I try to compile such a view I have a message like this:
[ERROR] db/models/payops_tooling/timeline.cds:177:9: Window functions are not supported by SAP HANA CDS (in entity:"timeline_views.payout_balance_1"/select/column:"withdraw_partition")
Debugging the code I have found that hdbcds is causing this message. So i have added following line into cdsrc.json
"hana": {
"deploy-format": "hdbtable"
}
After this view compiled but like this:
Could you please review what goes wrong? Thank you!
It would be great to have it fixed. Right now we are creating hdbviews manually and declaring those views in cds with @cds.persistence.exists which is additional work.
Hi,
Thank you for reporting this.
I have identified and fixed the bug in the cds-compiler. The fix will be shipped in the beginning of February with the new @sap/cds version.Would that be sufficient for you?
Best Regards,
Patrice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's fantastic, thank you so much for such a fast troubleshooting patricetao . As I have mentioned is not critical because we already use window functions using native hdbview artifacts. In any way we will need to perform refactoring and careful testing. So it's great that we are one step closer towards a coherent CDS solution.
Hi pepl.booking,
The fix has been shipped with sap/cds-compiler@2.12.0.
Could you please check if this resolves the issues as expected?
Thanks and Best Regards,
Patrice
Yes, it's working! This change - is a game changer. Now the code will have much fewer artifacts. No more blind hdbview creations without any intellisense and other nice features. No need in synonyms manipulation as well.
If you manage somehow to solve currency conversion issue within CAP ( SAP-relevant issue with handling currencies like IDR,JPY with 0 decimals or like JOD, OMR, BHR with 3 decimals ) - then we can also get rid of calculation views in our model.
Thank you so much for delivering this!
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.