File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 2525
2626import static io .airlift .slice .SizeOf .estimatedSizeOf ;
2727import static io .airlift .slice .SizeOf .instanceSize ;
28+ import static io .airlift .slice .SizeOf .sizeOf ;
2829import static io .trino .plugin .deltalake .DeltaHiveTypeTranslator .toHiveType ;
2930import static io .trino .plugin .deltalake .DeltaLakeColumnType .SYNTHESIZED ;
3031import static io .trino .spi .type .BigintType .BIGINT ;
@@ -142,7 +143,10 @@ public boolean equals(Object obj)
142143 public long getRetainedSizeInBytes ()
143144 {
144145 // type is not accounted for as the instances are cached (by TypeRegistry) and shared
145- return INSTANCE_SIZE + estimatedSizeOf (name );
146+ return INSTANCE_SIZE
147+ + estimatedSizeOf (name )
148+ + sizeOf (fieldId )
149+ + estimatedSizeOf (physicalName );
146150 }
147151
148152 @ Override
You can’t perform that action at this time.
0 commit comments