Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colexec: implement vectorized ntile window function #64977

Merged
merged 1 commit into from
May 18, 2021

Commits on May 18, 2021

  1. colexec: implement vectorized ntile window function

    This patch implements the `ntile` window function in the vectorized
    engine. `ntile` takes in an integer argument `num_buckets` and then
    distributes all rows in a partition equally between the buckets,
    outputting the bucket number for each row.
    
    In the vectorized implementation, batches are buffered until the end
    of a partition is reached, at which point the `ntile` bucket values can
    be calculated. The batches are emitted in a streaming fashion; as soon
    as a batch is fully processed, it is returned and work is paused until
    the next call to `Next()`.
    
    See cockroachdb#37035
    
    Release note (sql change): the vectorized engine now supports the ntile
    window function.
    Drew Kimball authored and DrewKimball committed May 18, 2021
    Configuration menu
    Copy the full SHA
    4ee8ca0 View commit details
    Browse the repository at this point in the history