Skip to content
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

For HSQLDB the RelationalFunctionCall should wrap template with TABLE(...) in JOIN clauses #1061

piotrgwiazda opened this issue Nov 28, 2014 · 1 comment


Copy link

@piotrgwiazda piotrgwiazda commented Nov 28, 2014

Please note that for HSQLDB to join with function results the syntax is

FROM TheTable t 
INNER JOIN TABLE(splitMe('1,2,3')) as ids
ON = ids.value

The TABLE(...) syntax seems to be specific to HSQLDB.

Currently when using

RelationalFunctionCall.create(Integer.class, "splitMe", "1,2,3")

I'm getting

FROM TheTable t 
INNER JOIN splitMe('1,2,3') as ids
ON = ids.value

which fails in HSQLDB.
Of course above syntax works in MSSQL for example.

QueryDSL could wrap with TABLE(...) in JOIN statements or there should be an easy way to do that.

As a workaround I extend RelationalFunctionCall class and override getTemplate method to

return new TemplateFactory('\\').create("TABLE(" + super.getTemplate().toString() + ")");

which is ugly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.