Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support window functions from SQLite 3.25.0 #3471

Closed
pawelsalawa opened this issue Dec 7, 2018 · 5 comments
Closed

Support window functions from SQLite 3.25.0 #3471

pawelsalawa opened this issue Dec 7, 2018 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@pawelsalawa
Copy link
Owner

pawelsalawa commented Dec 7, 2018

Details

https://sqlite.org/windowfunctions.html

Implementation notes

  • Need to update:
    • syntax grammar file,
    • AST classes,
    • formatter classes,
    • add built-in window functions to list of known functions, so that the syntax assistant is aware of them,
  • Result column of window function cannot be linked to a table/rowid, as it is a function (an aggregate function even), so it should be treated as an aggregated function result. Obviously it's not editable either.
  • "Window functions may only appear in the result set and in the ORDER BY clause of a SELECT statement" - a quote from SQLite documentation.
  • Defining custom window functions will be covered in User-Defined Aggregate Window Functions #3930 as it can be done independently & later (lower priority).
@pawelsalawa pawelsalawa added the enhancement New feature or request label Dec 7, 2018
@pawelsalawa pawelsalawa added this to the 3.3.0 milestone Dec 7, 2018
@thomasnield
Copy link

What's the status in getting this released? Anything I can do to help? Would love to use this for an O'Reilly Media video I'm shooting in June...

@pawelsalawa
Copy link
Owner Author

Unfortunately I don't have time to work on SQLiteStudio nowadays, due to personal reasons.
I'm not abandoning the project, I still develop it and I do small tasks from time to time. I will code more as soon as I have more time.

@pcava
Copy link

pcava commented Apr 10, 2019

What a pity, I would be interested in using window functions in SQLiteStudio too...

@thomasnield
Copy link

@pawelsalawa totally understand and have done that with my own projects too....

@helix2001
Copy link

helix2001 commented Dec 30, 2019

I've used LAG and LEAD function sucessfully with SQLiteStudio 3.2.1. Replaced the bundled sqlite3.dll with version 3.30 32bits and it works like a charm. The SQL syntax after the OVER clause will appear underlined, as if it were an error, but the results are correct.

@pawelsalawa pawelsalawa modified the milestones: 3.4.0, 3.3.0 Feb 1, 2021
pawelsalawa added a commit that referenced this issue Feb 4, 2021
…on for unit-test workflow to 5.9, so that it's tested to compile on Ubuntu 18.04 too. Extended unit-test workflow to use matrix of 2 Qt versions, to compile & test on both 5.9 and most recent Qt versions. Packaging workflows continue to use most recent version of Qt.
pawelsalawa added a commit that referenced this issue Feb 4, 2021
pawelsalawa added a commit that referenced this issue Feb 4, 2021
…lier to #3471 by mistake. With this commit the ChangeLog contains proper github issue reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants