This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 389c636 [MINOR][SQL] Remove unused
`calculateSizeOfUnderlyingByteArray` from `UnsafeArrayData`
389c636 is described below
commit 389c636b2ffea23e5095f5637d7c208579206064
Author: xuyu <[email protected]>
AuthorDate: Tue Dec 28 14:00:33 2021 -0800
[MINOR][SQL] Remove unused `calculateSizeOfUnderlyingByteArray` from
`UnsafeArrayData`
### What changes were proposed in this pull request?
### Why are the changes needed?
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
Closes #35039 from xuzifu666/unusedmethod_in_UnSafeArrayData.
Authored-by: xuyu <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../org/apache/spark/sql/catalyst/expressions/UnsafeArrayData.java | 6 ------
1 file changed, 6 deletions(-)
diff --git
a/sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeArrayData.java
b/sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeArrayData.java
index 9e68698..ca75b4c 100644
---
a/sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeArrayData.java
+++
b/sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeArrayData.java
@@ -72,12 +72,6 @@ public final class UnsafeArrayData extends ArrayData
implements Externalizable,
return 8 + ((numFields + 63)/ 64) * 8;
}
- public static long calculateSizeOfUnderlyingByteArray(long numFields, int
elementSize) {
- long size = UnsafeArrayData.calculateHeaderPortionInBytes(numFields) +
- ByteArrayMethods.roundNumberOfBytesToNearestWord(numFields *
elementSize);
- return size;
- }
-
private Object baseObject;
private long baseOffset;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]