We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25156b7 commit b31fc9aCopy full SHA for b31fc9a
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/math.scala
@@ -297,7 +297,7 @@ case class Hex(child: Expression) extends UnaryExpression with Serializable {
297
var len = 0
298
do {
299
len += 1
300
- value(value.length - len) = Hex.hexDigits(numBuf & 0xF)
+ value(value.length - len) = Hex.hexDigits((numBuf & 0xF).toInt)
301
numBuf >>>= 4
302
} while (numBuf != 0)
303
UTF8String.fromBytes(Arrays.copyOfRange(value, value.length - len, value.length))
0 commit comments