-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Add create_window_function() to sqlite3.Connection #79097
Comments
sqlite-3.25 now includes window functions, something very important in modern SQL. https://www.sqlite.org/windowfunctions.html Could it be included in next Python maintenance release ? |
To completely do this requires two things:
The latter is definitely something that cannot be done in a maintenance release. The former is up to the release managers. |
hum. On Windows at least, just drop-in replace the sqlite3.dll per the new sqlite-3.25 dll and the window functions just works. checked with sqlite_bro on Python-3.6.7rc1 with example: |
My latter points makes it possible to define custom windowing functions in Python, similar to how it is already possible to define other SQLite functions in Python. |
Due to the SQLite "Magellan" bug, I'd suggest this be 3.26+. Details: https://blade.tencent.com/magellan/index_en.html |
bpo-35360 will cover updating our Windows and macOS installers. I'm retargeting this issue to add a create_window_function() method to the Connection object. I already have a WIP branch and am going to submit a PR later this weekend. |
I've implemented this in a fork / standalone packaging of the Python 3.x sqlite3 module. You can find the relevant portions (and a couple unrelated changes) in this commit: |
Berker, are you still working on this? If not, I've got a proof-of-concept version of this w/unit tests ready for review. If you'd like to have a look at it, I can create a draft PR. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: