You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Zhuravkov (Jira)" <ji...@apache.org> on 2023/01/30 09:48:00 UTC

[jira] [Created] (IGNITE-18653) Sql. The number of dynamic parameters can be checked once.

Maksim Zhuravkov created IGNITE-18653:
-----------------------------------------

             Summary: Sql. The number of dynamic parameters can be checked once.
                 Key: IGNITE-18653
                 URL: https://issues.apache.org/jira/browse/IGNITE-18653
             Project: Ignite
          Issue Type: Improvement
          Components: sql
            Reporter: Maksim Zhuravkov


Since Apache Calcite's SqlParser maintains the number of dynamic parameters internally (as a protected field) it is possible to simplify the check that ensures that the number of dynamic parameters in a query is equal to the number of provided parameters.

See how that check is implemented for an SqlExplain in IgniteSqlValidator::validate - it simply checks the number of dynamic parameters in a query. We can implement that check for all types of queries.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)