Maksim Zhuravkov created IGNITE-24456:
-----------------------------------------

             Summary: 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


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