try {
ScannerFields fields = getScannerFields(query, shouldMatchAllTags);
Scanner scanner = timeSeriesTable.scan(fields.startRow, fields.endRow, fields.columns, fields.filter);
return new MetricsScanner(query, scanner, entityCodec, resolution);
} catch (Exception e) {
throw new OperationException(StatusCode.INTERNAL_ERROR, e.getMessage(), e);
}
}