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

[jira] [Updated] (IGNITE-21094) Sql. Combine query execution methods (single/script) in QueryProcessor.

     [ https://issues.apache.org/jira/browse/IGNITE-21094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Pereslegin updated IGNITE-21094:
--------------------------------------
    Description: 
At the moment we have two methods for executing queries:
{{querySingleAsync}} for executing single-statement query
{{queryScriptAsync}} for executing multi-statement query.

These methods have an identical signature, so they can be easily combined into one.

The simple solution will be to keep, for example, `queryAsync` as a single entry point.
It seems that, internally, we can figure out how to execute this query, depending on the query execution property {{ALLOWED_QUERY_TYPES}}. For example, {{querySingleAsync}} does not allow the TX_CONTROL type.


  was:
At the moment we have two methods for executing queries:
{{querySingleAsync}} for executing single-statement query
{{queryScriptAsync}} for executing multi-statement query.

These methods have an identical signature, so they can be easily combined into one.

The simple solution will be to keep, for example, `queryAsync` as a single entry point.
It seems that, internally, we can figure out how to execute this query, depending on the query execution property {{ALLOWED_QUERY_TYPES}}. {{querySingleAsync}} does not allow the TX_CONTROL type.



> Sql. Combine query execution methods (single/script) in QueryProcessor.
> -----------------------------------------------------------------------
>
>                 Key: IGNITE-21094
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21094
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Pavel Pereslegin
>            Priority: Major
>              Labels: ignite-3
>
> At the moment we have two methods for executing queries:
> {{querySingleAsync}} for executing single-statement query
> {{queryScriptAsync}} for executing multi-statement query.
> These methods have an identical signature, so they can be easily combined into one.
> The simple solution will be to keep, for example, `queryAsync` as a single entry point.
> It seems that, internally, we can figure out how to execute this query, depending on the query execution property {{ALLOWED_QUERY_TYPES}}. For example, {{querySingleAsync}} does not allow the TX_CONTROL type.



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