SOLR-10270: Stop exporting _version_ during GROUP BY aggregations in map_reduce mode

This commit is contained in:
Joel Bernstein 2017-03-13 12:50:17 -04:00
parent 2bce98b0c1
commit 22f91ba0ca
1 changed files with 0 additions and 8 deletions

View File

@ -330,24 +330,16 @@ class SolrTable extends AbstractQueryableTable implements TranslatableTable {
private String getFields(Set<String> fieldSet) {
StringBuilder buf = new StringBuilder();
boolean appendVersion = true;
for(String field : fieldSet) {
if(buf.length() > 0) {
buf.append(",");
}
if(field.equals("_version_")) {
appendVersion = false;
}
buf.append(field);
}
if(appendVersion){
buf.append(",_version_");
}
return buf.toString();
}