public void testRefreshPartitionsParameter() throws Exception {
PartitionName partition = new PartitionName("parted", Arrays.asList(new BytesRef("1395874800000")));
RefreshTableAnalysis analysis = (RefreshTableAnalysis) analyze(
"refresh table parted PARTITION (date=?)", new Object[] {"1395874800000"});
assertThat(analysis.table().ident().name(), is("parted"));
assertThat(analysis.partitionName().stringValue(), is(partition.stringValue()));
}
@Test(expected = IllegalArgumentException.class)
public void testRefreshInvalidPartitioned() throws Exception {
analyze("refresh table parted partition (invalid_column='hddsGNJHSGFEFZÜ')");