@Override
  public List<TypeInfo> getColumnTypes(Configuration conf) throws HiveJdbcDatabaseAccessException {
    return getColumnMetadata(conf, typeInfoTranslator);
  }
@Test
  public void testGetColumnTypes_fieldListQuery() throws HiveJdbcDatabaseAccessException {
    Configuration conf = buildConfiguration();
    conf.set(JdbcStorageConfig.QUERY.getPropertyName(), "select name,referrer from test_strategy");
    DatabaseAccessor accessor = DatabaseAccessorFactory.getAccessor(conf);

    List<TypeInfo> expectedTypes = new ArrayList<>(2);
    expectedTypes.add(TypeInfoFactory.getVarcharTypeInfo(50));
    expectedTypes.add(TypeInfoFactory.getVarcharTypeInfo(1024));
    Assert.assertEquals(expectedTypes, accessor.getColumnTypes(conf));
  }