Alasql: UNION (ALL) only gives data from table 1

Created on 9 Dec 2015  路  5Comments  路  Source: agershun/alasql

UNION and UNION ALL only gives data from first table when source are HTML tables while rows from the second table are empty.

Please see the issue in action at: http://jsfiddle.net/yp83t1p9/

The problem is illustrated here where the last "rows" are empty:

[
    {
        "ID": "ID",
        "Name": "Name",
        "Month": "Month",
        "Savings": "Savings"
    },
    {
        "ID": "111",
        "Name": "John",
        "Month": "January",
        "Savings": "$100"
    },
    {
        "ID": "122",
        "Name": "Rianna",
        "Month": "Feb",
        "Savings": "$200"
    },
    {
        "ID": "133",
        "Name": "Michael",
        "Month": "Mar",
        "Savings": "$300"
    },
    {},
    {},
    {},
    {}
]
! Bug Code provided to reproduced Help wanted SQL compliance

Most helpful comment

+1

All 5 comments

Sorry to hear you spend a lot of time because of this bug.

Thanks for adding material to the case.

+1

+1

Hi!

It seems that the issue is still present. The query provided on the stackoverflow by @agershun below does not unite the results and we get only partial result.

https://stackoverflow.com/questions/34527959/parse-a-jsonwith-array-and-objects-and-export-the-data-into-excel-file-in-node/34771859#34771859

Could you please shed the light to the issue?maybe the SEARCH query approach has been changed or something else?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AmyBlankenship picture AmyBlankenship  路  6Comments

SamanthaAdrichem picture SamanthaAdrichem  路  4Comments

karubimania picture karubimania  路  6Comments

DickSwart picture DickSwart  路  6Comments

morrme picture morrme  路  5Comments