From c3fe3c69d1db825ceaf9be3a1b3b3ef6280114a6 Mon Sep 17 00:00:00 2001 From: Gengliang Wang Date: Thu, 28 Jul 2022 22:02:54 -0700 Subject: [PATCH] uncomparable => iincomparable --- .../sql/catalyst/expressions/codegen/CodeGenerator.scala | 4 ++-- .../org/apache/spark/sql/errors/QueryExecutionErrors.scala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala index 3f3e9f75cfa9d..175f4561f3cc7 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/CodeGenerator.scala @@ -628,7 +628,7 @@ class CodegenContext extends Logging { case udt: UserDefinedType[_] => genEqual(udt.sqlType, c1, c2) case NullType => "false" case _ => - throw QueryExecutionErrors.cannotGenerateCodeForUncomparableTypeError( + throw QueryExecutionErrors.cannotGenerateCodeForIncomparableTypeError( "equality", dataType) } @@ -719,7 +719,7 @@ class CodegenContext extends Logging { case other if other.isInstanceOf[AtomicType] => s"$c1.compare($c2)" case udt: UserDefinedType[_] => genComp(udt.sqlType, c1, c2) case _ => - throw QueryExecutionErrors.cannotGenerateCodeForUncomparableTypeError("compare", dataType) + throw QueryExecutionErrors.cannotGenerateCodeForIncomparableTypeError("compare", dataType) } /** diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala index 35a40ce684f35..bad95afa139d5 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala @@ -369,10 +369,10 @@ private[sql] object QueryExecutionErrors extends QueryErrorsBase { new IllegalArgumentException(s"$funcName is not matched at addNewFunction") } - def cannotGenerateCodeForUncomparableTypeError( + def cannotGenerateCodeForIncomparableTypeError( codeType: String, dataType: DataType): Throwable = { new IllegalArgumentException( - s"cannot generate $codeType code for un-comparable type: ${dataType.catalogString}") + s"Cannot generate $codeType code for incomparable type: ${dataType.catalogString}") } def cannotGenerateCodeForUnsupportedTypeError(dataType: DataType): Throwable = {