Do we ever expect the None code path being triggered? If not, let's just use 

    SparkLoadTask.unionStatsMaps(
      tableStats,
      SharkEnv.memoryMetadataManager.getStats(databaseName, tableName).get)