[ 
https://issues.apache.org/jira/browse/IGNITE-24456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17926752#comment-17926752
 ] 

Pavel Pereslegin edited comment on IGNITE-24456 at 2/13/25 11:34 AM:
---------------------------------------------------------------------

[~mzhuravkov], thanks for the contribution!
Merged to the main branch 
([#4916310|https://github.com/apache/ignite-3/commit/4916310f1b23a0b96bf9815ebb74be9fb5ac1937]).


was (Author: xtern):
[~mzhuravkov], thanks for the contribution!
Merged to the main branch 
([4916310|https://github.com/apache/ignite-3/commit/4916310f1b23a0b96bf9815ebb74be9fb5ac1937]).

> 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