This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Parser hdbview
Antoaneta edited this page Apr 6, 2021
·
6 revisions
The information on how to develop the design-time data-persistence model for an XSK application using the HDBView syntax
- SAP Help
- Sample Hana version1 syntax
schema="MYSCHEMA";
query="SELECT T1.\"Column2\" FROM \"MYSCHEMA\".\"acme.com.test.views::MY_VIEW1\" AS T1 LEFT JOIN \"MYSCHEMA\".\"acme.com.test.views::MY_VIEW2\" AS T2 ON T1.\"Column1\" = T2.\"Column1\"";
depends_on=["acme.com.test.views::MY_VIEW1", "acme.com.test.views::MY_VIEW2"];
- Parser Hana version1 behavior (issue)
- Currently the Parser take into account if a given property is mandatory.
- If the property order is misplaced the parser will still parse the values.
- If more than one value of one property is provided then only the last one is taken.
- Sample HANA version2 syntax
VIEW "hdb_view.db::ItemsByOrderHANAv2"
AS SELECT "Id" FROM "hdb_view::Item";
- Which syntax is supported from the parser
hdbview syntax (Hana v1) | hdbview syntax (XSKViewParser) | Comments |
---|---|---|
schema | schema | |
query | query | |
public | public | default=true |
depends_on | depends_on | |
depends_on_table | depends_on_table | |
depends_on_view | depends_on_view |
- Issues
- Sample
- Modules
https://github.com/SAP/xsk/tree/main/modules/parsers/parser-hdbview
- Tests
https://github.com/SAP/xsk/tree/main/modules/parsers/parser-hdbview/com.sap.xsk.parser.hdbview/src/test/java https://github.com/SAP/xsk/tree/main/modules/engines/engine-core/src/test/java/com/sap/xsk/hdb/ds/test/XSKViewParserTest.java