You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is suggested to add
1.ROW_NUMBER() OVER (PARTITION BY COL1 ORDER BY COL2)
2.Upsert https://www.postgresqltutorial.com/postgresql-upsert/
3.other window function: count|max|min|lead|lag|first_value|last_value over(PARTITION BY COL1 ORDER BY COL2)
4.CONCAT_WS() GROUP BY
alasql` select entries.* , watched.id IS NOT NULL as watched from entries outer join watched on watched.id = entries.id and watched.ie_key = entries.ie_key join playlists on playlists.original_url = entries.original_url where entries.id not in (select distinct id from watched) and entries.original_url = "https://www.youtube.com/playlist?list=PLQhhRxYCuOXX4Ru03gUXURslatUNxk7Pm" order by random() limit 100UNION ALLselect entries.* , watched.id IS NOT NULL as watched from entries outer join watched on watched.id = entries.id and watched.ie_key = entries.ie_key join playlists on playlists.original_url = entries.original_url where entries.id not in (select distinct id from watched) and entries.original_url = "https://www.youtube.com/watch?v=qopNCLDbD1M" order by random() limit 100`
The queries work fine individually but with the union all I get:
Hi, if no one is currently working on this issue, I’d love to give it a try. Could you please assign it to me? I’m curious and excited to work on this.
Happy to add you, however, please note that depending on the volume of the added code we might not include it until we have the setup for modular inclusion of functionality
Activity
chapmanjacobd commentedon May 31, 2022
Is there an alternative to
ROW_NUMBER() OVER (PARTITION BY COL1 ORDER BY COL2)currently supported in alasql?I would like to limit the number of results by a specific group while keeping the order by
chapmanjacobd commentedon Jun 1, 2022
hmm... even UNION does not seem to work
The queries work fine individually but with the union all I get:
mathiasrw commentedon Sep 25, 2022
queriesfn is undefinedSeems to be a theme for UNION (also relevant to #1264)I have a feeling its a small fix, but hard to find where.
mathiasrw commentedon Dec 22, 2025
Findings
Fully Implemented:
ROW_NUMBER() OVER (PARTITION BY col1 ORDER BY col2)- Tested intest/test1126.jsCONCAT_WS(separator, col1, col2, ...)- Tested intest/test413.jsNot Implemented yet:
src/75merge.js) but execution not implementedimsanupm commentedon Feb 28, 2026
Hi, if no one is currently working on this issue, I’d love to give it a try. Could you please assign it to me? I’m curious and excited to work on this.
mathiasrw commentedon Apr 1, 2026
Happy to add you, however, please note that depending on the volume of the added code we might not include it until we have the setup for modular inclusion of functionality