Title: Build SQLite with SQLITE_ENABLE_PERCENTILE for Windows and CPython-3.15+ · Issue #152023 · python/cpython · GitHub
Open Graph Title: Build SQLite with SQLITE_ENABLE_PERCENTILE for Windows and CPython-3.15+ · Issue #152023 · python/cpython
X Title: Build SQLite with SQLITE_ENABLE_PERCENTILE for Windows and CPython-3.15+ · Issue #152023 · python/cpython
Description: Feature or enhancement Proposal: For Windows, CPython-3.15 requires SQLite-3.53.2. Since 3.51.0, the aggregate functions median and percentile are part of SQLite's amalgamation. I believe that this means that they are found to be mature....
Open Graph Description: Feature or enhancement Proposal: For Windows, CPython-3.15 requires SQLite-3.53.2. Since 3.51.0, the aggregate functions median and percentile are part of SQLite's amalgamation. I believe that this...
X Description: Feature or enhancement Proposal: For Windows, CPython-3.15 requires SQLite-3.53.2. Since 3.51.0, the aggregate functions median and percentile are part of SQLite's amalgamation. I believe that ...
Opengraph URL: https://github.com/python/cpython/issues/152023
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build SQLite with SQLITE_ENABLE_PERCENTILE for Windows and CPython-3.15+","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nFor Windows, CPython-3.15 [requires SQLite-3.53.2](https://github.com/python/cpython/blob/bd39eea0dbb9dc9ec04144f34498eb4e8cc61b32/PCbuild/get_externals.bat#L59). Since 3.51.0, the aggregate functions [median](https://sqlite.org/lang_aggfunc.html#median) and [percentile](https://sqlite.org/lang_aggfunc.html#percentile) are part of SQLite's amalgamation. I believe that this means that they are found to be mature. To have them available at run-time, SQLite needs to be built with `SQLITE_ENABLE_PERCENTILE`. Python's PCBuild activates a few built-in extensions of SQLite, but not this one yet. \nInserting `SQLITE_ENABLE_PERCENTILE` [here](https://github.com/python/cpython/blob/bd39eea0dbb9dc9ec04144f34498eb4e8cc61b32/PCbuild/sqlite3.vcxproj#L101) might be everything needed.\n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\nI have not found previous discussions on this topic. \n\n[This](https://github.com/python/cpython/issues/95656) discussion is about the ability to load SQLite extension modules at run-time, which is somehow related, as it can be used as an (inconvenient) fallback.\n\nAnother fallback is to implement these statistical functions in Python and bind them to a data base connection. This works, but is slower than having them built into SQLite (76s vs. 68s in my non-repesentative query).\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-153867\n* gh-153869\n* gh-155101\n* gh-156048\n* gh-156446\n* gh-156448\n* gh-157863\n* gh-157864\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/WKarel","@type":"Person","name":"WKarel"},"datePublished":"2026-06-23T18:05:55Z","url":"https://github.com/python/cpython/issues/152023"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cf9c7645-c2c0-da0b-e4af-d2c89cd248c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABE0:261C3E:3ABF73:4EB230:6AECCA5D |
| html-safe-nonce | c9f777bc611eea15fc5397d9ac00b13ae756a8660248a2fd6dfc98fa747f3d22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkUwOjI2MUMzRTozQUJGNzM6NEVCMjMwOjZBRUNDQTVEIiwidmlzaXRvcl9pZCI6IjQ5NTE2NTk2NDEyMDk0MDgwOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 08961fe92348885fcf5732044aed1348622f1fd9fc69f64eb94ef73745d0ef0d |
| hovercard-subject-tag | issue:4728346090 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/152023/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a6e9840af4263721fca0fd5d7835e527e5c909169c7f0bd3721fa5be8b073303/python/cpython/issues/152023 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a6e9840af4263721fca0fd5d7835e527e5c909169c7f0bd3721fa5be8b073303/python/cpython/issues/152023 |
| og:image:alt | Feature or enhancement Proposal: For Windows, CPython-3.15 requires SQLite-3.53.2. Since 3.51.0, the aggregate functions median and percentile are part of SQLite's amalgamation. I believe that this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | WKarel |
| hostname | github.com |
| expected-hostname | github.com |
| None | dc0b519c5798dc1150b88dc4c06a8b9634d0069218dc04e469970e76aad74016 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | db139f0bf57b59bf9a8c4abb0849924d6c6ca559 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width