You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Liang-Chi Hsieh (JIRA)" <ji...@apache.org> on 2016/04/14 08:48:25 UTC

[jira] [Created] (SPARK-14627) In TypedAggregateExpression update method we call encoder.shift many times

Liang-Chi Hsieh created SPARK-14627:
---------------------------------------

             Summary: In TypedAggregateExpression update method we call encoder.shift many times
                 Key: SPARK-14627
                 URL: https://issues.apache.org/jira/browse/SPARK-14627
             Project: Spark
          Issue Type: Improvement
            Reporter: Liang-Chi Hsieh
            Priority: Minor


Every time we call TypedAggregateExpression.update method, we call encoder's shift method. As shift method will copy encoder and underlying BoundReference, we should prepare the shifted encoder in advance, instead of calling shift method every time.

BTW, we can also improve encoder's shift method to return itself when shift delta is zero.



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

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