zhuxiangyi commented on code in PR #8943:
URL: https://github.com/apache/paimon/pull/8943#discussion_r3721767922


##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/data/SparkInternalRow.scala:
##########
@@ -33,6 +34,14 @@ abstract class SparkInternalRow extends InternalRow {
 
 object SparkInternalRow {
 
+  private val blobFieldsCache: LoadingCache[RowType, Set[Int]] =

Review Comment:
   Updated. The BLOB field indices are now cached in `RowType` itself via a
   `transient volatile` lazy field, following the same pattern as the existing
   `laziedNameToField` cache. This gives the cache the same lifecycle as the
   `RowType` and removes the global weak-key cache in the Spark module.
   Semantics are unchanged, and the returned set is unmodifiable.



-- 
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]

Reply via email to