dbis-uibk / relax

RelaX - a relational algebra calculator
http://dbis-uibk.github.io/relax/
MIT License
285 stars 98 forks source link

Allow whitespaces in functions of value expressions #202

Closed rlaiola closed 4 months ago

rlaiola commented 7 months ago

Reference issue

None.

What does this implement/fix?

This PR aims at providing a more flexible way to write queries based on the SQL standard and RDBMS implementations such as MySQL, PostgreSQL and MS SQL Server. In summary, it is possible to have whitespaces between a function name and its opening parenthesis "(".

Note: To run the tests refer to http://dbis-uibk.github.io/relax/calc/local/uibk/local/0

Test 1: concat expression (could be any function in a value expression)

pi concat (a, b, c)->k (R)

or

SELECT concat (a, b, c) AS k
FROM R
Screen Shot 2024-04-11 at 07 59 57 Screen Shot 2024-04-11 at 08 00 39 Screen Shot 2024-04-11 at 08 20 12 Screen Shot 2024-04-11 at 08 18 54 Screen Shot 2024-04-11 at 08 01 16 Screen Shot 2024-04-11 at 08 30 34

How to test this PR?

Test it live at https://rlaiola.github.io/relax/calc/local/uibk/local/0. For automated tests visit https://rlaiola.github.io/relax/test.html

References