Title: Parse SQL properly to determine from tables (for the SQL console completer) · Issue #298 · larray-project/larray-editor · GitHub
Open Graph Title: Parse SQL properly to determine from tables (for the SQL console completer) · Issue #298 · larray-project/larray-editor
X Title: Parse SQL properly to determine from tables (for the SQL console completer) · Issue #298 · larray-project/larray-editor
Description: Our current code at larray-editor/larray_editor/sql.py Line 90 in 3a9e7cc m = re.search(r'\s+FROM\s+(\S+)', query_text, re.IGNORECASE) uses a simple regular expression and has a lot of false positives, possibly false negatives too. We sh...
Open Graph Description: Our current code at larray-editor/larray_editor/sql.py Line 90 in 3a9e7cc m = re.search(r'\s+FROM\s+(\S+)', query_text, re.IGNORECASE) uses a simple regular expression and has a lot of false positi...
X Description: Our current code at larray-editor/larray_editor/sql.py Line 90 in 3a9e7cc m = re.search(r'\s+FROM\s+(\S+)', query_text, re.IGNORECASE) uses a simple regular expression and has a lot of fals...
Opengraph URL: https://github.com/larray-project/larray-editor/issues/298
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parse SQL properly to determine from tables (for the SQL console completer)","articleBody":"Our current code at https://github.com/larray-project/larray-editor/blob/3a9e7cc7ee7ea2d94068164c1c144a10c6f94cc8/larray_editor/sql.py#L90 uses a simple regular expression and has a lot of false positives, possibly false negatives too.\n\nWe should use Polars own SQL parser to do so instead:\n\nhttps://github.com/pola-rs/polars/pull/25749/files#diff-e47976e4d2bcb9bc8182e1343108de959b3f216e480be3daaa64d416e88f386c","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2025-12-12T10:57:40Z","url":"https://github.com/larray-project/larray-editor/issues/298"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b1a759aa-062a-101f-e57f-0c0da326925d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF98:1AC37C:23B9E:30476:6B0019E3 |
| html-safe-nonce | 8cf11920476f8d52b2e35b9e9af3b795400022fee9474164fb725715429447e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjk4OjFBQzM3QzoyM0I5RTozMDQ3Njo2QjAwMTlFMyIsInZpc2l0b3JfaWQiOiI0ODE3OTExNTI5MjI5Nzg1NTcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 42f930cd6116c360885dff5b0942fdd4564ca0d9413a6ce0385163401d78d743 |
| hovercard-subject-tag | issue:3722984788 |
| 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/larray-project/larray-editor/298/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b193883d5fb95f6956c87e61e0511355d1e5d87dee3814c992d5bdc74b5a3fd/larray-project/larray-editor/issues/298 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b193883d5fb95f6956c87e61e0511355d1e5d87dee3814c992d5bdc74b5a3fd/larray-project/larray-editor/issues/298 |
| og:image:alt | Our current code at larray-editor/larray_editor/sql.py Line 90 in 3a9e7cc m = re.search(r'\s+FROM\s+(\S+)', query_text, re.IGNORECASE) uses a simple regular expression and has a lot of false positi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gdementen |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/larray-project/larray-editor git https://github.com/larray-project/larray-editor.git |
| octolytics-dimension-user_id | 26460981 |
| octolytics-dimension-user_login | larray-project |
| octolytics-dimension-repository_id | 95664837 |
| octolytics-dimension-repository_nwo | larray-project/larray-editor |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 95664837 |
| octolytics-dimension-repository_network_root_nwo | larray-project/larray-editor |
| 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 | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width