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

Pavel Pereslegin updated IGNITE-24456:
--------------------------------------
    Fix Version/s: 3.1

> Sql. Unexpected SchemaNotFoundError when query does not access that schema
> --------------------------------------------------------------------------
>
>                 Key: IGNITE-24456
>                 URL: https://issues.apache.org/jira/browse/IGNITE-24456
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Maksim Zhuravkov
>            Assignee: Maksim Zhuravkov
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.1
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Reproducer:
> {code:java}
> @Test
>     public void test() {
>         // Works fine - full name
>         assertQuery("SELECT count(*) FROM system.tables")
>                 .returns(0L)
>                 .check();
>         // Works fine - SYSTEM is the default schema
>         assertQuery("SELECT count(*) FROM tables")
>                 .withDefaultSchema("SYSTEM")
>                 .returns(0L)
>                 .check();
>         // Should work as well because we do not access the MISSING schema,
>         // but we get  Schema not found instead.
>         assertQuery("SELECT count(*) FROM system.tables")
>                 .withDefaultSchema("MISSING")
>                 .returns(0L)
>                 .check();
>     }
> {code}



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

Reply via email to