Github user davies commented on a diff in the pull request:
https://github.com/apache/spark/pull/8018#discussion_r36581760
--- Diff:
unsafe/src/main/java/org/apache/spark/unsafe/PlatformDependent.java ---
@@ -145,21 +147,27 @@ public static void freeMemory(long address) {
long signumOffset = 0;
long magOffset = 0;
+ long intCompactOffset = 0;
try {
signumOffset =
_UNSAFE.objectFieldOffset(BigInteger.class.getDeclaredField("signum"));
magOffset =
_UNSAFE.objectFieldOffset(BigInteger.class.getDeclaredField("mag"));
+ intCompactOffset = _UNSAFE.objectFieldOffset(
+ BigDecimal.class.getDeclaredField("intCompact"));
--- End diff --
I think we already reply on some internal API, also ignore the exception
that failed to get UNSAFE. We may move to use Decimal128 from Hive in next
release.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]