cloud-fan commented on code in PR #36103:
URL: https://github.com/apache/spark/pull/36103#discussion_r847557624


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -3709,6 +3709,17 @@ object SQLConf {
       .booleanConf
       .createWithDefault(true)
 
+  val LPAD_RPAD_FOR_BINARY_TYPE =
+    buildConf("spark.sql.legacy.lpadRpadForBinaryType.enabled")
+      .internal()
+      .doc("When set to true, the functions `lpad` and `rpad` have been 
overloaded to support " +
+        "byte sequences. When the first argument is a byte sequence, the 
optional padding " +

Review Comment:
   it only returns binary type if both the first and second arguments are 
binary type.



-- 
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