Package io.crate.planner.symbol

Examples of io.crate.planner.symbol.DataTypeSymbol


    private void assertCompatibleColumns(InsertFromSubQueryAnalysis analysis) {
        assertThat(analysis.columns().size(), is(analysis.getSubQueryColumns().size()));

        for (int i = 0; i < analysis.columns().size(); i++) {
            assertThat(analysis.getSubQueryColumns().get(i), instanceOf(DataTypeSymbol.class));
            DataTypeSymbol subQueryColumn = (DataTypeSymbol)analysis.getSubQueryColumns().get(i);
            Reference insertColumn = analysis.columns().get(i);
            assertThat(
                    subQueryColumn.valueType().isConvertableTo(insertColumn.valueType()),
                    is(true)
            );
        }

    }
View Full Code Here

TOP

Related Classes of io.crate.planner.symbol.DataTypeSymbol

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.