Title: Check datatype compatibility pre vs post #514 · Issue #544 · datajoint/datajoint-python · GitHub
Open Graph Title: Check datatype compatibility pre vs post #514 · Issue #544 · datajoint/datajoint-python
X Title: Check datatype compatibility pre vs post #514 · Issue #544 · datajoint/datajoint-python
Description: With PR #514, we now actively restrict what MySQL attribute data types are formally supported in DataJoint. This unfortunately means that if users were using "unsupported" data types prior to this PR, their code will cease to work (or wo...
Open Graph Description: With PR #514, we now actively restrict what MySQL attribute data types are formally supported in DataJoint. This unfortunately means that if users were using "unsupported" data types prior to this ...
X Description: With PR #514, we now actively restrict what MySQL attribute data types are formally supported in DataJoint. This unfortunately means that if users were using "unsupported" data types prio...
Opengraph URL: https://github.com/datajoint/datajoint-python/issues/544
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Check datatype compatibility pre vs post #514","articleBody":"With PR #514, we now actively restrict what MySQL attribute data types are formally supported in DataJoint. This unfortunately means that if users were using \"unsupported\" data types prior to this PR, their code will cease to work (or worse yet, they will continue to be able to use the table, but will encounter an issue the next time they try to re-declare the table). To minimize issues caused by this, I've listed all datatypes present under MySQL so that we can explicitly rule them in vs out of our supported data types list. Following is the suggested criterion for the selection:\r\n\r\n1. you could insert into an attribute of that datatype\r\n2. you could fetch from an attribute of that datatype\r\n3. Fetched value from that datatype can be inserted back directly without any inconsistency or error\r\n4. the use of the datatype in DataJoint makes sense/fits the expected use of DataJoint\r\n\r\nwith that here are the data types collected from [MySQL 8.0 reference manual](https://dev.mysql.com/doc/refman/8.0/en/numeric-type-overview.html). Checked item means that the decisions are already made for support/non-support and have been verified:\r\n\r\n### Numeric types\r\n- [x] INTEGER (supported?)\r\n- [x] (TINY/SMALL/MEDIUM/BIG)INT (**supported**)\r\n- [x] DECIMAL (**supported**)\r\n- [ ] NUMERIC\r\n- [x] FLOAT (**supported**)\r\n- [ ] REAL\r\n- [x] DOUBLE (**supported**)\r\n- [x] BOOL\r\n- [x] BOOLEAN\r\n- [ ] BIT\r\n- [ ] BIT(M)\r\n\r\n### Date and time types\r\n- [x] DATE\r\n- [x] TIME\r\n- [x] DATETIME (**supported**)\r\n- [x] TIMESTAMP\r\n- [x] YEAR\r\n\r\n### String types\r\n- [x] CHAR\r\n- [x] VARCHAR\r\n- [ ] BINARY\r\n- [ ] VARBINARY\r\n- [x] (TINY/MEDIUM/LONG)BLOB\r\n- [x] (TINY/MEDIUM/LONG)TEXT\r\n- [x] ENUM\r\n- [ ] SET\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/eywalker","@type":"Person","name":"eywalker"},"datePublished":"2018-12-08T21:46:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/544/datajoint-python/issues/544"}
| 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:bd652bcb-73f1-6a7c-9985-6e1ee64927c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED4A:1A54AB:7BEB65:A4BC3E:6A505362 |
| html-safe-nonce | c9914e1877a1f70b3e032b9006770ff77e12336da10d7fc08d8e21af3282de7a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDRBOjFBNTRBQjo3QkVCNjU6QTRCQzNFOjZBNTA1MzYyIiwidmlzaXRvcl9pZCI6IjY2OTI5ODYwMjQ5Mzg5MTQyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 61fe78df527362470653c879783811efe09e00d6c8e66c114c4c68e8f3633512 |
| hovercard-subject-tag | issue:388962431 |
| 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/datajoint/datajoint-python/544/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09574d7afd10dc86daba315e3b4760a9a4e802cd0bc5c3df896c19a42f9a7dc3/datajoint/datajoint-python/issues/544 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09574d7afd10dc86daba315e3b4760a9a4e802cd0bc5c3df896c19a42f9a7dc3/datajoint/datajoint-python/issues/544 |
| og:image:alt | With PR #514, we now actively restrict what MySQL attribute data types are formally supported in DataJoint. This unfortunately means that if users were using "unsupported" data types prior to this ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eywalker |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/datajoint/datajoint-python git https://github.com/datajoint/datajoint-python.git |
| octolytics-dimension-user_id | 2375501 |
| octolytics-dimension-user_login | datajoint |
| octolytics-dimension-repository_id | 5866704 |
| octolytics-dimension-repository_nwo | datajoint/datajoint-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5866704 |
| octolytics-dimension-repository_network_root_nwo | datajoint/datajoint-python |
| 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