Fixed failing test due to null resultFormat

This commit is contained in:
Justin Borromeo 2019-02-20 00:16:48 -08:00
parent 7baeade832
commit cd489a0208
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ public class ScanQuery extends BaseQuery<ScanResultValue>
{
super(dataSource, querySegmentSpec, false, context);
this.virtualColumns = VirtualColumns.nullToEmpty(virtualColumns);
this.resultFormat = resultFormat;
this.resultFormat = resultFormat == null ? ResultFormat.RESULT_FORMAT_LIST : resultFormat;
this.batchSize = (batchSize == 0) ? 4096 * 5 : batchSize;
this.limit = (limit == 0) ? Long.MAX_VALUE : limit;
Preconditions.checkArgument(this.batchSize > 0, "batchSize must be greater than 0");