Skip to content

ORDER BY clause on three or more UNIONS #7

Closed

Description

@agershun

Now parsing algorithm uses ORDER BY function from the second UNION part, but not last one. To fix this issue I need to rewrite some parsing rules. I think the same issue for INTERSECT and other similar operators.

Activity

  1. added this to the milestone on Nov 10, 2014
  2. self-assigned this
    on Nov 10, 2014
  3. agershun commented on Nov 22, 2014

    @agershun
    MemberAuthor

    Now you can see a problem in Alasql console:

    select 10 as a union all select 20 as a union all select 30 as a order by a desc

    [See example in Alasql console](http://alasql.org/console?select 10 as a union all select 20 as a union all select 30 as a order by a desc)

  4. modified the milestones: , on May 21, 2015
  5. mathiasrw commented on Jul 14, 2015

    @mathiasrw
    Member

    Is this problem solved?

  6. mathiasrw commented on Dec 27, 2015

    @mathiasrw
    Member

    I see this is still an issue - so im just keeping it open...

    > alasql -v
    0.2.1
    > alasql "select 10 as a union all select 20 as a union all select 30 as a order by a desc"
    [ { a: 10 }, { a: 30 }, { a: 20 } ]
  7. added a commit that references this issue on Mar 31, 2025
  8. added a commit that references this issue on Nov 20, 2025
    5a2538d
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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions