Fix for Profiler failure ('NoSuchElementException: None.get')
@@ -51,9 +51,10 @@ class StandardProfiler(val sqlContext: SQLContext, val sparkContextService: Spar
Option.empty
}
+ if (result.isDefined) {
// Add histogram statistics to the combined model
-
for ((colIdx,field) <- schemaMap) result.get.addAggregate(colIdx, dataset, field);
+ }
result;
}
