From 60db65c260eecdd4e8d48ed3a83827703c64341c Mon Sep 17 00:00:00 2001 From: Nicholas Chammas Date: Wed, 1 May 2024 11:47:15 -0400 Subject: [PATCH] typo --- .../main/scala/org/apache/spark/SparkThrowableHelper.scala | 2 +- .../scala/org/apache/spark/sql/kafka010/KafkaExceptions.scala | 4 ++-- .../src/test/scala/org/apache/spark/SparkThrowableSuite.scala | 2 +- python/pyspark/errors/error_classes.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/utils/src/main/scala/org/apache/spark/SparkThrowableHelper.scala b/common/utils/src/main/scala/org/apache/spark/SparkThrowableHelper.scala index 6bdafb11e4bd..db5eff72e124 100644 --- a/common/utils/src/main/scala/org/apache/spark/SparkThrowableHelper.scala +++ b/common/utils/src/main/scala/org/apache/spark/SparkThrowableHelper.scala @@ -33,7 +33,7 @@ private[spark] object ErrorMessageFormat extends Enumeration { private[spark] object SparkThrowableHelper { val errorReader = new ErrorClassesJsonReader( // Note that though we call them "error classes" here, the proper name is "error conditions", - // hence why the name of the JSON file different. We will address this inconsistency as part + // hence why the name of the JSON file is different. We will address this inconsistency as part // of this ticket: https://issues.apache.org/jira/browse/SPARK-47429 Seq(SparkClassUtils.getSparkClassLoader.getResource("error/error-conditions.json"))) diff --git a/connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaExceptions.scala b/connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaExceptions.scala index 65688f7db352..8dc4e543060d 100644 --- a/connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaExceptions.scala +++ b/connector/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaExceptions.scala @@ -27,8 +27,8 @@ private object KafkaExceptionsHelper { val errorClassesJsonReader: ErrorClassesJsonReader = new ErrorClassesJsonReader( // Note that though we call them "error classes" here, the proper name is "error conditions", - // hence why the name of the JSON file different. We will address this inconsistency as part - // of this ticket: https://issues.apache.org/jira/browse/SPARK-47429 + // hence why the name of the JSON file is different. We will address this inconsistency as + // part of this ticket: https://issues.apache.org/jira/browse/SPARK-47429 Seq(getClass.getClassLoader.getResource("error/kafka-error-conditions.json"))) } diff --git a/core/src/test/scala/org/apache/spark/SparkThrowableSuite.scala b/core/src/test/scala/org/apache/spark/SparkThrowableSuite.scala index 9e795c3e32ec..231cfdc3f32f 100644 --- a/core/src/test/scala/org/apache/spark/SparkThrowableSuite.scala +++ b/core/src/test/scala/org/apache/spark/SparkThrowableSuite.scala @@ -51,7 +51,7 @@ class SparkThrowableSuite extends SparkFunSuite { private val errorJsonFilePath = getWorkspaceFilePath( // Note that though we call them "error classes" here, the proper name is "error conditions", - // hence why the name of the JSON file different. We will address this inconsistency as part + // hence why the name of the JSON file is different. We will address this inconsistency as part // of this ticket: https://issues.apache.org/jira/browse/SPARK-47429 "common", "utils", "src", "main", "resources", "error", "error-conditions.json") diff --git a/python/pyspark/errors/error_classes.py b/python/pyspark/errors/error_classes.py index c6b60c79b34d..30869a3fbb2d 100644 --- a/python/pyspark/errors/error_classes.py +++ b/python/pyspark/errors/error_classes.py @@ -19,7 +19,7 @@ import importlib.resources # Note: Though we call them "error classes" here, the proper name is "error conditions", -# hence why the name of the JSON file different. +# hence why the name of the JSON file is different. # For more information, please see: https://issues.apache.org/jira/browse/SPARK-46810 # This discrepancy will be resolved as part of: https://issues.apache.org/jira/browse/SPARK-47429 ERROR_CLASSES_JSON = (