phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JamesRTaylor <...@git.apache.org>
Subject [GitHub] phoenix pull request #281: PHOENIX-4288 Indexes not used when ordering by pr...
Date Tue, 28 Nov 2017 02:00:10 GMT
Github user JamesRTaylor commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/281#discussion_r153377074
  
    --- Diff: phoenix-core/src/it/java/org/apache/phoenix/end2end/CostBasedDecisionIT.java
---
    @@ -0,0 +1,176 @@
    +package org.apache.phoenix.end2end;
    +
    +import static org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;
    +import static org.junit.Assert.assertTrue;
    +
    +import java.sql.Connection;
    +import java.sql.DriverManager;
    +import java.sql.PreparedStatement;
    +import java.sql.ResultSet;
    +import java.util.Map;
    +import java.util.Properties;
    +
    +import org.apache.phoenix.query.BaseTest;
    +import org.apache.phoenix.query.QueryServices;
    +import org.apache.phoenix.util.PropertiesUtil;
    +import org.apache.phoenix.util.QueryUtil;
    +import org.apache.phoenix.util.ReadOnlyProps;
    +import org.junit.AfterClass;
    +import org.junit.BeforeClass;
    +import org.junit.Test;
    +
    +import com.google.common.collect.Maps;
    +
    +public class CostBasedDecisionIT extends BaseTest {
    +
    +    @BeforeClass
    +    public static void doSetup() throws Exception {
    +        Map<String, String> props = Maps.newHashMapWithExpectedSize(1);
    +        props.put(QueryServices.STATS_GUIDEPOST_WIDTH_BYTES_ATTRIB, Long.toString(20));
    +        props.put(QueryServices.STATS_UPDATE_FREQ_MS_ATTRIB, Long.toString(5));
    +        props.put(QueryServices.USE_STATS_FOR_PARALLELIZATION, Boolean.toString(true));
    +        props.put(QueryServices.COST_BASED_OPTIMIZER_ENABLED, Boolean.toString(true));
    +        setUpTestDriver(new ReadOnlyProps(props.entrySet().iterator()));
    +    }
    +
    +    @AfterClass
    +    public static void tearDownMiniCluster() throws Exception {
    --- End diff --
    
    This method shouldn't be necessary


---

Mime
View raw message