You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
I'm trying to use the JDBC driver to connect a BI Solution we work with (TIBCO JasperSoft).
Some reports have optional parameters, and when not set these parameters are set to null.
A proper way to handle this scenario in RDBMS is creating a query like this:
SELECT
FROM
WHERE ((<optional_param IS NULL) OR ( = <optional_param>))
So, if the parameter is not set, it will not count as a filter, otherwise it will be used against a field.
I found there's no way to achieve this with the driver, because
SELECT *
FROM
WHERE NULL IS NULL
would give me parse error.
Is there any other way to handle optional parameters?
Thank you
The text was updated successfully, but these errors were encountered:
Hi @davide-malagoli , thanks for reporting the issue! I'm not familiar with JasperSoft. I wonder is the WHERE NULL IS NULL generated from JasperSoft? Do you have any control on this?
@dai-chen Thank you, is there already any documentation of the supported features by the new sql engine?
Hi @davide-malagoli , yes, please see https://github.com/opendistro-for-elasticsearch/sql/blob/master/docs/user/index.rst. the docs under Language Structure and Limitations section are new added. SQL functions doc is partially rewritten. Since old and new engine will work together till we finish the migration, the old doc is still relevant. As more features migrated and added to new engine, more docs will be updated. Thanks!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I'm trying to use the JDBC driver to connect a BI Solution we work with (TIBCO JasperSoft).
Some reports have optional parameters, and when not set these parameters are set to null.
A proper way to handle this scenario in RDBMS is creating a query like this:
SELECT
FROM
WHERE ((<optional_param IS NULL) OR ( = <optional_param>))
So, if the parameter is not set, it will not count as a filter, otherwise it will be used against a field.
I found there's no way to achieve this with the driver, because
SELECT *
FROM
WHERE NULL IS NULL
would give me parse error.
Is there any other way to handle optional parameters?
Thank you
The text was updated successfully, but these errors were encountered: