@Test
public void testGetPlanPartitioned() throws Exception {
Plan plan = plan("select name, date from parted where id = 'one' and date = 0");
Iterator<PlanNode> iterator = plan.iterator();
PlanNode node = iterator.next();
assertThat(node, instanceOf(ESGetNode.class));
ESGetNode getNode = (ESGetNode) node;
assertThat(getNode.index(),
is(new PartitionName("parted", Arrays.asList(new BytesRef("0"))).stringValue()));
assertEquals(DataTypes.STRING, getNode.outputTypes().get(0));