Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ case class IcebergBucketTransform(numBuckets: Int, child: Expression) extends Ic
@transient lazy val bucketFunc: Any => Int = child.dataType match {
case _: DecimalType =>
val t = Transforms.bucket[Any](icebergInputType, numBuckets)
d: Any => t(d.asInstanceOf[Decimal].toBigDecimal).toInt
d: Any => t(d.asInstanceOf[Decimal].toJavaBigDecimal).toInt
case _: StringType =>
// the spec requires that the hash of a string is equal to the hash of its UTF-8 encoded bytes
// TODO: pass bytes without the copy out of the InternalRow
Expand Down