uros-db commented on code in PR #46041:
URL: https://github.com/apache/spark/pull/46041#discussion_r1565548686


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala:
##########
@@ -1574,7 +1574,10 @@ case class StringLPad(str: Expression, len: Expression, 
pad: Expression)
   override def third: Expression = pad
 
   override def dataType: DataType = str.dataType
-  override def inputTypes: Seq[AbstractDataType] = Seq(StringType, 
IntegerType, StringType)
+  override def inputTypes: Seq[AbstractDataType] = Seq(
+    StringTypeAnyCollation,
+    IntegerType,
+    StringTypeAnyCollation)

Review Comment:
   ```suggestion
     override def inputTypes: Seq[AbstractDataType] =
       Seq(StringTypeAnyCollation, IntegerType, StringTypeAnyCollation)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to