Skip to content

[C++][Compute] Fix null sorting of multiple sort keys #38558

Description

@Light-City

Describe the bug, including details regarding any error messages, version, and platform.

Currently, NullPlacement is a global control, and this parameter is used for all sortkeys. However, for databases like pg, it should be one for each sortkey, for example:

order by i nulls first, j, k nulls first;

code is

 /// Column key(s) to order by and how to order by these sort keys.
std::vector<SortKey> sort_keys;
/// Whether nulls and NaNs are placed at the start or at the end
NullPlacement null_placement;

Component(s)

C++

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions