Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As noted by @yjshen in https://github.com/apache/arrow-datafusion/pull/3386/files#r966573456, #3386 switches DataFusion to use a faster comparison method, but does not update the used memory calculation.
Describe the solution you'd like
We need to track the total memory used by all cursors since the cursor now holds Rows.
Describe alternatives you've considered
N/A
Additional context
See above