From 0bb73554a96088adca9dcd62a5a37b13772b02d8 Mon Sep 17 00:00:00 2001
From: Julien Baley <julien.baley@gmail.com>
Date: Fri, 15 Jan 2016 13:53:20 -0800
Subject: [PATCH] Fix typo

disvoered => discovered

Author: Julien Baley <julien.baley@gmail.com>

Closes #10773 from julienbaley/patch-1.
---
 .../spark/sql/execution/datasources/PartitioningUtils.scala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningUtils.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningUtils.scala
index 81962f8d63..65a715caf1 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningUtils.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningUtils.scala
@@ -102,11 +102,11 @@ private[sql] object PartitioningUtils {
       // It will be recognised as conflicting directory structure:
       //   "hdfs://host:9000/invalidPath"
       //   "hdfs://host:9000/path"
-      val disvoeredBasePaths = optDiscoveredBasePaths.flatMap(x => x)
+      val discoveredBasePaths = optDiscoveredBasePaths.flatMap(x => x)
       assert(
-        disvoeredBasePaths.distinct.size == 1,
+        discoveredBasePaths.distinct.size == 1,
         "Conflicting directory structures detected. Suspicious paths:\b" +
-          disvoeredBasePaths.distinct.mkString("\n\t", "\n\t", "\n\n") +
+          discoveredBasePaths.distinct.mkString("\n\t", "\n\t", "\n\n") +
           "If provided paths are partition directories, please set " +
           "\"basePath\" in the options of the data source to specify the " +
           "root directory of the table. If there are multiple root directories, " +
-- 
GitLab