GitHub user viirya opened a pull request:

    https://github.com/apache/spark/pull/13439

    [SPARK-15701][SQL] Constant ColumnVector only needs to prepare one capacity

    ## What changes were proposed in this pull request?
    
    `ColumnVector` has a variable to mark it is a constant `ColumnVector` or 
not. However, we still let constant `ColumnVector` prepare the space needed for 
all its capacity. Actually because constant `ColumnVector` only has one 
distinct value. It only needs to prepare one capacity. This can reduce its 
memory usage and speed up data access.
    
    ## How was this patch tested?
    Existing tests.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/viirya/spark-1 constant-column-vector

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13439.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13439
    
----
commit 721d53ace9354b70e8b9c6decca0fb3b13c12426
Author: Liang-Chi Hsieh <[email protected]>
Date:   2016-06-01T14:39:56Z

    Support constant column vector.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to