cloud-fan commented on code in PR #40400:
URL: https://github.com/apache/spark/pull/40400#discussion_r1148743201
##########
sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeRow.java:
##########
@@ -70,51 +66,25 @@ public static int calculateBitSetWidthInBytes(int
numFields) {
return ((numFields + 63)/ 64) * 8;
}
- /**
- * Field types that can be updated in place in UnsafeRows (e.g. we support
set() for these types)
- */
- public static final Set<DataType> mutableFieldTypes;
-
- // DecimalType, DayTimeIntervalType and YearMonthIntervalType are also
mutable
- static {
- mutableFieldTypes = Collections.unmodifiableSet(
- new HashSet<>(
- Arrays.asList(
- NullType,
- BooleanType,
- ByteType,
- ShortType,
- IntegerType,
- LongType,
- FloatType,
- DoubleType,
- DateType,
- TimestampType,
- TimestampNTZType
- )));
- }
-
public static boolean isFixedLength(DataType dt) {
Review Comment:
since we are touching the code here, can we add doc for these 2 methods?
It's not easy to tell what the difference between fixed length and mutable.
--
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]