Skip to content

Support multi-column ORDER BY with per-key ASC/DESC #2

Description

@Maniarasan-zuper

Support multi-column ORDER BY with per-key ASC/DESC.

ORDER BY currently sorts by a single key. Support ORDER BY a DESC, b ASC.

Where

  • ORDER BY parsing in v2/src/sql.cpp.
  • The sort in v2/src/exec.cpp — make the comparator iterate a list of (col, dir).

Acceptance criteria

  • Multi-key ordering (including mixed ASC/DESC) matches SQLite on a bench2 check.
  • Existing single-key behavior is unchanged.

See CONTRIBUTING.md and comment here to claim it.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions