diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala index 6ab633f067647..8c8a3fde9cb8e 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala @@ -90,6 +90,8 @@ abstract class Expression extends TreeNode[Expression] { /** * Check the input data types, returns `TypeCheckResult.success` if it's valid, * or return a `TypeCheckResult` with an error message if invalid. + * TODO: we should remove the default implementation and implement it for all + * expressions with proper error message. */ def checkInputDataTypes(): TypeCheckResult = TypeCheckResult.success }