Search in sources :

Example 1 with RowContextReferenceResolver

use of io.crate.operation.reference.sys.RowContextReferenceResolver in project crate by crate.

the class SysNodesTableInfoTest method testRegistered.

/**
     *  Ensures that all columns registered in SysNodesTableInfo can actually be resolved
     */
@Test
public void testRegistered() {
    SysNodesTableInfo info = new SysNodesTableInfo(clusterService);
    RowContextReferenceResolver referenceResolver = RowContextReferenceResolver.INSTANCE;
    Iterator<Reference> iter = info.iterator();
    while (iter.hasNext()) {
        assertNotNull(referenceResolver.getImplementation(iter.next()));
    }
}
Also used : SysNodesTableInfo(io.crate.metadata.sys.SysNodesTableInfo) RowContextReferenceResolver(io.crate.operation.reference.sys.RowContextReferenceResolver) Test(org.junit.Test) CrateUnitTest(io.crate.test.integration.CrateUnitTest)

Aggregations

SysNodesTableInfo (io.crate.metadata.sys.SysNodesTableInfo)1 RowContextReferenceResolver (io.crate.operation.reference.sys.RowContextReferenceResolver)1 CrateUnitTest (io.crate.test.integration.CrateUnitTest)1 Test (org.junit.Test)1