Skip to content

Json functions #1263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 16, 2021
Merged

Json functions #1263

merged 10 commits into from
Jul 16, 2021

Conversation

manticore-projects
Copy link
Contributor

Implement JSON_ARRAY, JSON_OBJECT, JSON_ARRAYAGG and JSON_OBJECTAGG
Fixes #1260 and dbeaver/dbeaver#13141

Both JSON_ARRAY(NULL ON NULL) and JSON_ARRAY() are supported.

There are comprehensive tests, please feel free to add more when anything was missing.

@coveralls
Copy link

coveralls commented Jul 11, 2021

Coverage Status

Coverage increased (+0.1%) to 88.686% when pulling a470fe2 on manticore-projects:JsonFunctions into e630354 on JSQLParser:master.

@manticore-projects
Copy link
Contributor Author

select json_array();
select json_array(null on null);
select json_array(null null on null);
select json_array(null, null null on null);
select json_array(null absent on null);

All supported (although I want to burn the inventor of this syntax on a stake).

@wumpz wumpz merged commit 59bf07f into JSQLParser:master Jul 16, 2021
@manticore-projects manticore-projects deleted the JsonFunctions branch May 31, 2022 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance issue with some H2 queries containing COALESCE clause
3 participants