completionQuery.copyRowLimit(query);
completionQuery.copyRowOffset(query);
}
if (query.hasLabels()) {
dataSourceQuery.setLabels(null);
QueryLabels labels = query.getLabels();
QueryLabels newLabels = new QueryLabels();
for (AbstractColumn column : labels.getColumns()) {
newLabels.addLabel(new SimpleColumn(column.getId()), labels.getLabel(column));
}
completionQuery.setLabels(newLabels);
}
if (query.hasUserFormatOptions()) {
dataSourceQuery.setUserFormatOptions(null);