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

Evgeny Stanilovsky updated IGNITE-18361:
----------------------------------------
    Description: 
Some queries can`t be correctly processed:
SELECT MIN(NULL) will throw :

{code:java}
Caused by: java.lang.AssertionError: Unexpected type of result: NULL
        at 
org.apache.ignite.internal.sql.engine.util.TypeUtils.columnType(TypeUtils.java:343)
{code}

Seems fix is trivial : we need to append additional type into *SqlColumnType*

{code:java}
            case NULL:
                return Void.class;
{code}

and support it into :

{code:java}
TypeUtils#columnType
{code}


  was:
Some queries can`t be correctly processed:
SELECT MIN(NULL) will throw :

{code:java}
Caused by: java.lang.AssertionError: Unexpected type of result: NULL
        at 
org.apache.ignite.internal.sql.engine.util.TypeUtils.columnType(TypeUtils.java:343)
{code}

Seems fix is trivial : we need to append additional type into *SqlColumnType*
            case NULL:
                return Void.class;
and support it into :
TypeUtils#columnType


> Sql. Unexpected type of result: NULL
> ------------------------------------
>
>                 Key: IGNITE-18361
>                 URL: https://issues.apache.org/jira/browse/IGNITE-18361
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>    Affects Versions: 3.0.0-beta1
>            Reporter: Evgeny Stanilovsky
>            Priority: Major
>              Labels: ignite-3
>
> Some queries can`t be correctly processed:
> SELECT MIN(NULL) will throw :
> {code:java}
> Caused by: java.lang.AssertionError: Unexpected type of result: NULL
>       at 
> org.apache.ignite.internal.sql.engine.util.TypeUtils.columnType(TypeUtils.java:343)
> {code}
> Seems fix is trivial : we need to append additional type into *SqlColumnType*
> {code:java}
>             case NULL:
>                 return Void.class;
> {code}
> and support it into :
> {code:java}
> TypeUtils#columnType
> {code}



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

Reply via email to