Package com.facebook.presto.testing

Examples of com.facebook.presto.testing.MaterializedResult


                ImmutableList.of(DESC_NULLS_LAST, DESC_NULLS_LAST),
                false);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = MaterializedResult.resultBuilder(driverContext.getSession(), VARCHAR, BIGINT)
                .row("f", 3)
                .row("e", 6)
                .row("d", 7)
                .build();
View Full Code Here


                ImmutableList.of(ASC_NULLS_LAST),
                false);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), BIGINT, DOUBLE)
                .row(-1, -0.1)
                .row(1, 0.1)
                .build();

        assertOperatorEquals(operator, input, expected);
View Full Code Here

                ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
                10);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), DOUBLE, BIGINT, BIGINT)
                .row(-0.1, -1, 1)
                .row(0.3, 2, 2)
                .row(0.2, 4, 3)
                .row(0.4, 5, 4)
                .row(0.1, 6, 5)
View Full Code Here

                ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
                10);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), VARCHAR, BIGINT, DOUBLE, BOOLEAN, BIGINT)
                .row("a", 2, 0.3, false, 1)
                .row("a", 4, 0.2, true, 2)
                .row("a", 6, 0.1, true, 3)
                .row("b", -1, -0.1, true, 1)
                .row("b", 5, 0.4, false, 2)
View Full Code Here

                Ints.asList(),
                ImmutableList.copyOf(new SortOrder[] {}),
                10);
        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), BIGINT, BIGINT)
                .row(1, 1)
                .row(3, 2)
                .row(5, 3)
                .row(7, 4)
                .row(2, 5)
View Full Code Here

                ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
                100);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), VARCHAR, VARCHAR, BIGINT, BOOLEAN, VARCHAR)
                .row("a", "A2", 1, false, "A2")
                .row("a", "B1", 2, true, "A2")
                .row("a", "C2", 3, true, "A2")
                .row("b", "A1", 1, true, "A1")
                .row("b", "C1", 2, false, "A1")
View Full Code Here

                ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
                100);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), VARCHAR, VARCHAR, BIGINT, BOOLEAN, VARCHAR)
                .row("a", "A2", 1, false, "C2")
                .row("a", "B1", 2, true, "C2")
                .row("a", "C2", 3, true, "C2")
                .row("b", "A1", 1, true, "C1")
                .row("b", "C1", 2, false, "C1")
View Full Code Here

                ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
                100);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), VARCHAR, VARCHAR, BIGINT, BOOLEAN, VARCHAR)
                .row("a", "A2", 1, false, "C2")
                .row("a", "B1", 2, true, "B1")
                .row("a", "C2", 3, true, "A2")
                .row("b", "A1", 1, true, "C1")
                .row("b", "C1", 2, false, null)
View Full Code Here

                ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
                100);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), VARCHAR, VARCHAR, BIGINT, BOOLEAN, VARCHAR)
                .row("a", "A2", 1, false, "D")
                .row("a", "B1", 2, true, "D")
                .row("a", "C2", 3, true, "A2")
                .row("b", "A1", 1, true, "D")
                .row("b", "C1", 2, false, "A1")
View Full Code Here

                ImmutableList.copyOf(new SortOrder[] {SortOrder.ASC_NULLS_LAST}),
                100);

        Operator operator = operatorFactory.createOperator(driverContext);

        MaterializedResult expected = resultBuilder(driverContext.getSession(), VARCHAR, VARCHAR, BIGINT, BOOLEAN, VARCHAR)
                .row("a", "A2", 1, false, "C2")
                .row("a", "B1", 2, true, "D")
                .row("a", "C2", 3, true, "D")
                .row("b", "A1", 1, true, "C1")
                .row("b", "C1", 2, false, "D")
View Full Code Here

TOP

Related Classes of com.facebook.presto.testing.MaterializedResult

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.