c21 commented on a change in pull request #35324:
URL: https://github.com/apache/spark/pull/35324#discussion_r792131082
##########
File path:
sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ConstantColumnVector.java
##########
@@ -70,10 +70,15 @@ public ConstantColumnVector(int numRows, DataType type) {
@Override
public void close() {
+ stringData = null;
Review comment:
This change is not related to the NPE fix, but it's good to have. We
should release the memory for `UTF8String` as well.
--
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]