Title: SLQC doesn't support vectors for MYSQL · Issue #3732 · sqlc-dev/sqlc · GitHub
Open Graph Title: SLQC doesn't support vectors for MYSQL · Issue #3732 · sqlc-dev/sqlc
X Title: SLQC doesn't support vectors for MYSQL · Issue #3732 · sqlc-dev/sqlc
Description: Version 1.27.0 What happened? Mysql added vector columns in MySQL 9.0. When trying to use SQLC with a vector column in the parser doesn't recognize it and throws a syntax error. Relevant log output No response Database schema CREATE TABL...
Open Graph Description: Version 1.27.0 What happened? Mysql added vector columns in MySQL 9.0. When trying to use SQLC with a vector column in the parser doesn't recognize it and throws a syntax error. Relevant log output...
X Description: Version 1.27.0 What happened? Mysql added vector columns in MySQL 9.0. When trying to use SQLC with a vector column in the parser doesn't recognize it and throws a syntax error. Relevant log ou...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3732
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SLQC doesn't support vectors for MYSQL","articleBody":"### Version\r\n\r\n1.27.0\r\n\r\n### What happened?\r\n\r\nMysql added vector columns in MySQL 9.0. When trying to use SQLC with a vector column in the parser doesn't recognize it and throws a syntax error.\r\n\r\n### Relevant log output\r\n\r\n_No response_\r\n\r\n### Database schema\r\n\r\n```sql\r\nCREATE TABLE t1(\r\n id INT PRIMARY KEY auto_increment,\r\n embedding VECTOR(4)\r\n);\r\n```\r\n\r\n### SQL queries\r\n\r\n```sql\r\nINSERT INTO t1(embedding) VALUES (STRING_TO_VECTOR('[0.1, 0.2, 0.3, 0.4]'));\r\n\r\nSELECT id FROM t1 ORDER BY DISTANCE(STRING_TO_VECTOR('[1.2, 3.4, 5.6]'), embedding, 'L2_squared') LIMIT 10;\r\n```\r\n\r\n### Configuration\r\n\r\n_No response_\r\n\r\n### Playground URL\r\n\r\n_No response_\r\n\r\n### What operating system are you using?\r\n\r\n_No response_\r\n\r\n### What database engines are you using?\r\n\r\n_No response_\r\n\r\n### What type of code are you generating?\r\n\r\n_No response_","author":{"url":"https://github.com/mcgold1","@type":"Person","name":"mcgold1"},"datePublished":"2024-12-02T21:35:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/3732/sqlc/issues/3732"}
| 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:bebd46a2-287b-e2dc-0612-4a34f3919b83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C292:ECB07:51B752:6D7462:6A504849 |
| html-safe-nonce | 68d95b93365005d5b55b6f5d08777088ffc0fd55b80e36f3461dd9d0fce3f595 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjkyOkVDQjA3OjUxQjc1Mjo2RDc0NjI6NkE1MDQ4NDkiLCJ2aXNpdG9yX2lkIjoiMjEzNjIxODIyNDMxNzA5MjU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7acf5f8140f3580702afaa63edbb4cc0d23cadab20fd790423f3ad3fccc5d428 |
| hovercard-subject-tag | issue:2713443456 |
| 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/sqlc-dev/sqlc/3732/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b32619933360db6ad860f16e99916c156a95ddd6e195fc518c83b495bea18318/sqlc-dev/sqlc/issues/3732 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b32619933360db6ad860f16e99916c156a95ddd6e195fc518c83b495bea18318/sqlc-dev/sqlc/issues/3732 |
| og:image:alt | Version 1.27.0 What happened? Mysql added vector columns in MySQL 9.0. When trying to use SQLC with a vector column in the parser doesn't recognize it and throws a syntax error. Relevant log output... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mcgold1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| 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 | 5741a45fe07e5f377d0d4c524a92e3056acc51bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width