forked from ontop/ontop
-
Notifications
You must be signed in to change notification settings - Fork 0
JSQLParser
skomlaebri edited this page Oct 20, 2014
·
11 revisions
The parser used is JSQLParser Version 0.9
- Functions and constants are currently not supported by the parser.
- We do not support subqueries. Except for simple subselect as
select * from (select * from tb_books) as CHILD, (select * from tb_authors) as PARENT WHERE CHILD.bk_code = PARENT.bk_code
These subqueries are necessaries to support R2RML mappings. They are simple because do not have joins or where conditions.
- When a query is not supported a view is created.
We remove quotes present in the query, so it is not possible to distinguish between queries of the form
SELECT "column", COLUMN FROM tableif two columns have the same name at least one of them should use a different alias.
We support REGEX in Oracle, MySQL, PostgresSQL and H2. Regex in SQL is not standard. DB2 and MsSQL do not provide an operator for regular expressions, while the other databases handle it differently.
If the query contains an unknown regex operator, our SQL parser will create a view of the query.
The supported operators for regular expressions are:
- in MySQL REGEXP [BINARY]
- in H2 and Postgres ~, ~*, !~, !~*
- in Oracle REGEXP_LIKE
- Quick Start Guide
- Easy-Tutorials
- More Tutorials
- Examples
- FAQ
- Using Ontop
- Learning more
- Troubleshooting
- Developer Guides
- Links