Davies Liu created SPARK-12283:
----------------------------------

             Summary: Use UnsafeRow as the buffer in SortBasedAggregation to 
avoid Unsafe/Safe conversion
                 Key: SPARK-12283
                 URL: https://issues.apache.org/jira/browse/SPARK-12283
             Project: Spark
          Issue Type: Improvement
          Components: SQL
            Reporter: Davies Liu


SortBasedAggregation use GenericMutableRow as aggregation buffer, also requires 
that the input can't be UnsafeRow, because the we can't compare/evaluate 
UnsafeRow and GenericInternalRow  in the same time. The TungstenSort output 
UnsafeRow, so multiple Safe/Unsafe projections will be inserted between them.

If we can make sure that all the mutating happens in ascending order, the 
buffer of UnsafeRow could be used to update var-length object (String, Binary, 
Struct etc.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to