public DremioTestWrapper build() throws Exception { if ( ! ordered && highPerformanceComparison ) { throw new Exception("High performance comparison only available for ordered checks, to enforce this restriction, ordered() must be called first."); } return new DremioTestWrapper(this, allocator, query, queryType, baselineOptionSettingQueries, testOptionSettingQueries, getValidationQueryType(), ordered, highPerformanceComparison, baselineRecords, expectedNumBatches); }