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

Evgeny Stanilovsky updated IGNITE-22360:
----------------------------------------
    Description: 
The following queries should be rejected by the validator, because numeric 
arguments other than INTs do not make any sense for this function:
{noformat}
SELECT SUBSTRING('aaa', 1.0);
SELECT SUBSTRING('aaa', 1.0, 2.3)
{noformat}
For now there is no implementation for SUBSTRING function which support 
fractional types as arguments and as a result it will fail with runtime 
exception, seems it need to be fixed and work with such operands too.

  was:
The following queries should be rejected by the validator, because numeric 
arguments other than INTs do not make any sense for this function:
{noformat}
SELECT SUBSTRING('aaa', 1.0);
SELECT SUBSTRING('aaa', 1.0, 2.3)
{noformat}



> Sql. SUBSTRING function should correctly process fractional values in its 
> numeric arguments.
> --------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-22360
>                 URL: https://issues.apache.org/jira/browse/IGNITE-22360
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Maksim Zhuravkov
>            Priority: Major
>              Labels: ignite-3
>
> The following queries should be rejected by the validator, because numeric 
> arguments other than INTs do not make any sense for this function:
> {noformat}
> SELECT SUBSTRING('aaa', 1.0);
> SELECT SUBSTRING('aaa', 1.0, 2.3)
> {noformat}
> For now there is no implementation for SUBSTRING function which support 
> fractional types as arguments and as a result it will fail with runtime 
> exception, seems it need to be fixed and work with such operands too.



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

Reply via email to