drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lisen Mu <imm...@gmail.com>
Subject about mysql se
Date Tue, 07 May 2013 17:02:42 GMT
Hi Jacques,

If you got time, would you like to check the test case at:

git@github.com:immars/incubator-drill.git

branch mysqlse-wip

which forked from your execwork and fixed some protoc problem in pom.

There is a test at MySQLSETest, which only parses physical plans at:

mysql_plan.json
mysql_plan2.json

Am I representing push down correctly, with .json and MySQLScanPOP? It's
all in ops field.

Many thanks...

//mysql_plan2.json
{
  head:{
    type:"APACHE_DRILL_PHYSICAL",
    version:"1",
    generator:{
      type:"manual",
      info:"na"
    }
  },
  graph:[
    {
      @id:1,
      pop:"scan-mysql",
      entries:[
        {id:0, location: "jdbc:mysql://localhost:3306/drilltest", tables:
["employee","department"], parent: 1},
        {id:1, location: "jdbc:mysql://localhost:3306/drilltest2", tables:
["employee","department"], parent: 1}
      ],
      output: [ //todo: map column to outputs?
              {mode: "VECTOR", type: "INT32"}, //field 0
              {mode: "VECTOR", type: "BYTES"}, //field 1
              {mode: "VECTOR", type: "BYTES"} //field 2
      ],
      ops:[

        {
          @id:5,
          child:1,
          pop:"filter",
          expr: "id==16"
        },
        {
          @id: 6,
          pop: "join",
          type: "INNER",
          left: 5,
          right: 1,
          conditions:[{
            relationship: "==",
            left: "employee.deptId",
            right: "department.id"
          }]
        },
        {
          @id: 4,
          child: 1,
          pop:"project",
          exprs: [
            { ref: "output.dept_name", expr: "department.name"},
            { ref: "output.guy_name", expr: "employee.name"},
            { ref: "output.guy_salary", expr: "employee.salary"}
          ]
        }
      ]
    },
    {
      @id:10,
      child:1,
      pop:"log-store"
    }
  ]
}

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message