public void testFieldMapWithColumns() throws Exception {
Properties tableProperties = new Properties();
tableProperties.put(HiveConstants.MAPPING_NAMES, "timestamp:@timestamp , foo:123foo");
tableProperties.put(HiveConstants.COLUMNS, "id,name,timestamp,foo");
FieldAlias alias = HiveUtils.alias(new PropertiesSettings(tableProperties));
assertEquals("@timestamp", alias.toES("timestamp"));
assertEquals("123foo", alias.toES("foo"));
assertEquals("bar", alias.toES("BaR"));
}
@Test