Skip to content

UNION ALL does not work with sub query #1146

Closed

Description

@an0sv

I have issues with UNION ALL. I have condensed an example

let d = [{d:1}];

// This works
alasql("create table test");
alasql("select * into test from ?", [d]);
alasql("select d from test where d in (select 1) union all select d from test where d not in (2)");

// This does not work
alasql("create table test");
alasql("select * into test from ?", [d]);
alasql("select d from test where d in (select 1) union all select d from test where d not in (select 2)");

Activity

  1. an0sv commented on Dec 18, 2019

    @an0sv
    Author

    Anyone having a clue on why this does not work?

  2. changed the title [-]UNION ALL does not work[/-] [+]UNION ALL does not work with sub query[/+] on Sep 8, 2023
  3. mathiasrw commented on Jan 8, 2026

    @mathiasrw
    Member

    A fix to this has been released as part of v4.17.0

    @an0sv Can you please confirm if this is working for you now?

  4. added a commit that references this issue on Jan 8, 2026
    2c170d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions