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

[jira] [Assigned] (IGNITE-26420) Sql. ResultSetMetadata column name look up fails with IllegalArgumentException Malformed identifier

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

Andrey Mashenkov reassigned IGNITE-26420:
-----------------------------------------

    Assignee: Andrey Mashenkov

> Sql. ResultSetMetadata column name look up fails with IllegalArgumentException Malformed identifier
> ---------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-26420
>                 URL: https://issues.apache.org/jira/browse/IGNITE-26420
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql ai3
>    Affects Versions: 3.0
>            Reporter: Maksim Zhuravkov
>            Assignee: Andrey Mashenkov
>            Priority: Major
>              Labels: ignite-3
>
> Reproducer: 
> Result set's column names are col1, Col2, Col 3, resultset indexOf calls IgniteNameUtils parseIdentifier and fails
> {noformat}
>  @Test
>     public void test() {
>         ResultSet<SqlRow> rs = igniteSql().execute(null, "SELECT 1 as col1, 2 as \"Col2\", 3 as \"Col 3\"");
>         ResultSetMetadata metadata = rs.metadata();
>         
>         for (var col : metadata.columns()) {
>             System.err.println(col.name());
>             System.err.println(metadata.indexOf(col.name())); 
>         }
>     }
> {noformat}
> Results:
> {noformat}
>  java.lang.IllegalArgumentException: Malformed identifier [identifier=Col 3, pos=3]
> {noformat}
> Expected results: metadata.indexOf returns a correct index for every column.



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