Package org.voltdb.plannodes

Examples of org.voltdb.plannodes.AbstractPlanNode.toJSONString()


    public void testGroupByA1() {
        AbstractPlanNode pn = null;
        pn = compile("SELECT A1 from T1 group by A1", 0);
        if (pn != null)
            System.out.println(pn.toJSONString());
    }

    public void testCountA1GroupByA1() {
        AbstractPlanNode pn = null;
        pn = compile("SELECT count(A1) from T1 group by A1", 0);
View Full Code Here


    public void testCountA1GroupByA1() {
        AbstractPlanNode pn = null;
        pn = compile("SELECT count(A1) from T1 group by A1", 0);
        if (pn != null) {
            System.out.println(pn.toJSONString());
        }
   }

    public void testCountA1() {
        AbstractPlanNode pn = null;
View Full Code Here

    public void testCountA1() {
        AbstractPlanNode pn = null;
        pn = compile("SELECT count(A1) from T1", 0);
        if (pn != null)
            System.out.println(pn.toJSONString());
    }

    public void testCountStar()
    {
        AbstractPlanNode pn = null;
View Full Code Here

    {
        AbstractPlanNode pn = null;
        pn = compile("SELECT count(*) from T1", 0);
        if (pn != null)
        {
            System.out.println(pn.toJSONString());
        }
    }

   public void testCountDistinctA1() {
       AbstractPlanNode pn = null;
View Full Code Here

   public void testCountDistinctA1() {
       AbstractPlanNode pn = null;
       pn = compile("SELECT count(distinct A1) from T1", 0);
       if (pn != null)
           System.out.println(pn.toJSONString());
   }

    public void testDistinctA1() {
        AbstractPlanNode pn = null;
        pn = compile("SELECT DISTINCT A1 FROM T1", 0);
View Full Code Here

    public void testDistinctA1() {
        AbstractPlanNode pn = null;
        pn = compile("SELECT DISTINCT A1 FROM T1", 0);
        if (pn != null)
                System.out.println(pn.toJSONString());
    }

    // This plan won't compile right until ENG-490 is fixed...
    /*public void testGroupSingleJoin() {
        AbstractPlanNode pn = null;
View Full Code Here

    {
        AbstractPlanNode pn = null;
        pn = compile("select max(s.int2) as foo from s, t where s.s_pk = t.s_pk and t.t_pk1 = ?;");
        // TODO: To actually detect ENG-585 regression, we'd have to program a check that the join is
        // materializing narrow rows of fewer than 5 columns. Yeah.
        System.out.println(pn.toJSONString());
    }
}
View Full Code Here

        System.out.println( pnList.size() );

        assert( pnList.get(1) instanceof SendPlanNode );
        pnList.get(0).reattachFragment( (SendPlanNode) pnList.get(1) );
        pn = pnList.get(0);
        System.out.println( pn.toJSONString() );
        System.out.println( pn.toExplainPlanString() );
        plannerTester.writePlanToFile( pn, path, "prettyJson.txt", "");

        ArrayList<String> getsql = new ArrayList<String>();
        PlanNodeTree pnt = plannerTester.loadPlanFromFile(path+"prettyJson.txt", getsql);
View Full Code Here

        String path = m_homeDir+"/";
        plannerTester.setUpForTest(m_currentDir+"/tests/frontend/org/voltdb/planner/testplans-plannerTester-ddl.sql",
                "testplans-plannerTester-ddl");
        System.out.println( pn.toExplainPlanString() );
        System.out.println( pn.toJSONString() );
        plannerTester.writePlanToFile( pn, path, "prettyJson.txt", "");

        ArrayList<String> getsql = new ArrayList<String>();
        PlanNodeTree pnt = plannerTester.loadPlanFromFile(path+"prettyJson.txt", getsql);
        System.out.println( pnt.toJSONString() );
View Full Code Here

        assertTrue(indexScan.toJSONString().contains("\"TARGET_INDEX_NAME\":\"" +
                HSQLInterface.AUTO_GEN_CONSTRAINT_WRAPPER_PREFIX + "ID"));
        pn = pn.getChild(0);
        assertTrue(pn instanceof SeqScanPlanNode);
//        System.out.println("DEBUG: " + pn.toJSONString());
        assertTrue(pn.toJSONString().contains("\"TARGET_TABLE_NAME\":\"T\""));
    }

    // This tests recognition of covering parameters to prefer a hash index that would use a
    // greater number of key components than a competing tree index.
    // Not sure how this relates to ENG-931?
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.