@@ -0,0 +1,2007 @@
+/*%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.facebook.presto.tests;%0A%0Aimport com.facebook.presto.Session;%0Aimport com.facebook.presto.testing.LocalQueryRunner;%0Aimport com.facebook.presto.tests.statistics.StatisticsAssertion;%0Aimport com.facebook.presto.tpch.ColumnNaming;%0Aimport com.facebook.presto.tpch.TpchConnectorFactory;%0Aimport com.google.common.collect.ImmutableMap;%0A%0Aimport static com.facebook.presto.SystemSessionProperties.PUSH_PARTIAL_AGGREGATION_THROUGH_JOIN;%0Aimport static com.facebook.presto.SystemSessionProperties.USE_NEW_STATS_CALCULATOR;%0Aimport static com.facebook.presto.testing.TestingSession.testSessionBuilder;%0Aimport static com.facebook.presto.tpch.TpchMetadata.TINY_SCHEMA_NAME;%0A%0Apublic class TestTpchLocalStats%0A%7B%0A    private final StatisticsAssertion statisticsAssertion;%0A%0A    public TestTpchLocalStats()%0A            throws Exception%0A    %7B%0A        Session defaultSession = testSessionBuilder()%0A                .setCatalog(%22tpch%22)%0A                .setSchema(TINY_SCHEMA_NAME)%0A                .setSystemProperty(PUSH_PARTIAL_AGGREGATION_THROUGH_JOIN, %22true%22)%0A                .setSystemProperty(USE_NEW_STATS_CALCULATOR, %22true%22)%0A                .build();%0A%0A        LocalQueryRunner runner = new LocalQueryRunner(defaultSession);%0A        runner.createCatalog(%22tpch%22, new TpchConnectorFactory(1),%0A                ImmutableMap.of(%22tpch.column-naming%22, ColumnNaming.STANDARD.name()%0A        ));%0A        statisticsAssertion = new StatisticsAssertion(runner);%0A    %7D%0A%7D%0A

Add TestTpchLocalStats stub