provides a list of data types GET_COLUMN() accepts, as well as the note "Type here can be one of the same ones that you would use in CAST or CONVERT:". However, in practice, the allowed types for CAST and for GET_COLUMN are different and are different from what is specified in the dynamic columns manual.
GET_COLUMN() accepts DOUBLE while CAST does not
GET_COLUMN() does not accept SIGNED, UNSIGNED, BINARY and CHAR(N)
Re: Different types accepted by CAST() and COLUMN_GET()
select cast(1 as double) works in 5.3-mwl tree; It was added as part of this worklog.
select column_get(column_create(1, 2), 1 as signed) worked for me. All the other versions should also work as the parsing code in sql_yacc.yy is identical for CAST and COLUMN_GET().
COLUMN_CREATE is still 'different' but is scheduled to be fixed.
I tested the following commands and they worked correctly in 5.3-mwl:
column_get(column_create(1, 2), 1 as signed)
select column_get(column_create(1, 2), 1 as unsigned)
select column_get(column_create(1, 2), 1 as CHAR(5))
select column_get(column_create(1, 2), 1 as BINARY(5));
select column_get(column_create(1, 2), 1 as BINARY)`
I have now updated the documentation about this.
Michael Widenius
added a comment - Re: Different types accepted by CAST() and COLUMN_GET()
select cast(1 as double) works in 5.3-mwl tree; It was added as part of this worklog.
select column_get(column_create(1, 2), 1 as signed) worked for me. All the other versions should also work as the parsing code in sql_yacc.yy is identical for CAST and COLUMN_GET().
COLUMN_CREATE is still 'different' but is scheduled to be fixed.
I tested the following commands and they worked correctly in 5.3-mwl:
column_get(column_create(1, 2), 1 as signed)
select column_get(column_create(1, 2), 1 as unsigned)
select column_get(column_create(1, 2), 1 as CHAR(5))
select column_get(column_create(1, 2), 1 as BINARY(5));
select column_get(column_create(1, 2), 1 as BINARY)`
I have now updated the documentation about this.
Re: Different types accepted by CAST() and COLUMN_CREATE()
If there is a part that is "scheduled to be fixed", then this bug remains on the table.
Philip Stoev (Inactive)
added a comment - Re: Different types accepted by CAST() and COLUMN_CREATE()
If there is a part that is "scheduled to be fixed", then this bug remains on the table.
Looking at the parser code I see that it uses the same rule for the type value in COLUMN_GET, in CAST, and in CONVERT. So, I don't see how any discrepancies could be possible here.
Sergei Golubchik
added a comment - Elena, could you please re-verify that?
Looking at the parser code I see that it uses the same rule for the type value in COLUMN_GET, in CAST, and in CONVERT. So, I don't see how any discrepancies could be possible here.
As comments above suggest, COLUMN_GET was fixed, but COLUMN_CREATE still differs.
Here are differences (full test is below):
Nothing allows DOUBLE(N) – it's not a valid type, just a typo in documentation which says DOUBLE[(M[,D])], should be DOUBLE[(M,D)]
COLUMN_CREATE doesn't allow
BINARY
BINARY(N)
CHAR(N)
DOUBLE(M,D)
SIGNED
SIGNED INTEGER
UNSIGNED
Test (I removed DOUBLE(M) part):
--disable_abort_on_error
SELECT COLUMN_CREATE(1,0 AS BINARY);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS BINARY);
SELECT CAST(0 AS BINARY), CONVERT(0, BINARY);
SELECT COLUMN_CREATE(1,0 AS BINARY(8));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS BINARY(8));
SELECT CAST(0 AS BINARY(8)), CONVERT(0, BINARY(8));
SELECT COLUMN_CREATE(1,0 AS CHAR);
SELECT COLUMN_GET(COLUMN_CREATE(1,1), 1 AS CHAR);
SELECT CAST(0 AS CHAR), CONVERT(0, CHAR);
SELECT COLUMN_CREATE(1,0 AS CHAR(8));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS CHAR(8));
SELECT CAST(0 AS CHAR(8)), CONVERT(0, CHAR(8));
SELECT COLUMN_CREATE(1,0 AS DATE);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DATE);
SELECT CAST(0 AS DATE), CONVERT(0, DATE);
SELECT COLUMN_CREATE(1,0 AS DATETIME);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DATETIME);
SELECT CAST(0 AS DATETIME), CONVERT(0, DATETIME);
SELECT COLUMN_CREATE(1,0 AS DATETIME(6));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DATETIME(6));
SELECT CAST(0 AS DATETIME(6)), CONVERT(0, DATETIME(6));
SELECT COLUMN_CREATE(1,0 AS DECIMAL);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DECIMAL);
SELECT CAST(0 AS DECIMAL), CONVERT(0, DECIMAL);
SELECT COLUMN_CREATE(1,0 AS DECIMAL(6));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DECIMAL(6));
SELECT CAST(0 AS DECIMAL(6)), CONVERT(0, DECIMAL(6));
SELECT COLUMN_CREATE(1,0 AS DECIMAL(6,2));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DECIMAL(6,2));
SELECT CAST(0 AS DECIMAL(6,2)), CONVERT(0, DECIMAL(6,2));
SELECT COLUMN_CREATE(1,0 AS DOUBLE);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DOUBLE);
SELECT CAST(0 AS DOUBLE), CONVERT(0, DOUBLE);
SELECT COLUMN_CREATE(1,0 AS DOUBLE(6,2));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DOUBLE(6,2));
SELECT CAST(0 AS DOUBLE(6,2)), CONVERT(0, DOUBLE(6,2));
SELECT COLUMN_CREATE(1,0 AS INTEGER);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS INTEGER);
SELECT CAST(0 AS INTEGER), CONVERT(0, INTEGER);
SELECT COLUMN_CREATE(1,0 AS SIGNED);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS SIGNED);
SELECT CAST(0 AS SIGNED), CONVERT(0, SIGNED);
SELECT COLUMN_CREATE(1,0 AS SIGNED INTEGER);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS SIGNED INTEGER);
SELECT CAST(0 AS SIGNED INTEGER), CONVERT(0, SIGNED INTEGER);
SELECT COLUMN_CREATE(1,0 AS TIME);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS TIME);
SELECT CAST(0 AS TIME), CONVERT(0, TIME);
SELECT COLUMN_CREATE(1,0 AS TIME(6));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS TIME(6));
SELECT CAST(0 AS TIME(6)), CONVERT(0, TIME(6));
SELECT COLUMN_CREATE(1,0 AS UNSIGNED);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS UNSIGNED);
SELECT CAST(0 AS UNSIGNED), CONVERT(0, UNSIGNED);
SELECT COLUMN_CREATE(1,0 AS UNSIGNED INTEGER);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS UNSIGNED INTEGER);
SELECT CAST(0 AS UNSIGNED INTEGER), CONVERT(0, UNSIGNED INTEGER);
Elena Stepanova
added a comment - As comments above suggest, COLUMN_GET was fixed, but COLUMN_CREATE still differs.
Here are differences (full test is below):
Nothing allows DOUBLE(N) – it's not a valid type, just a typo in documentation which says DOUBLE[(M [,D] )], should be DOUBLE [(M,D)]
COLUMN_CREATE doesn't allow
BINARY
BINARY(N)
CHAR(N)
DOUBLE(M,D)
SIGNED
SIGNED INTEGER
UNSIGNED
Test (I removed DOUBLE(M) part):
--disable_abort_on_error
SELECT COLUMN_CREATE(1,0 AS BINARY);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS BINARY);
SELECT CAST(0 AS BINARY), CONVERT(0, BINARY);
SELECT COLUMN_CREATE(1,0 AS BINARY(8));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS BINARY(8));
SELECT CAST(0 AS BINARY(8)), CONVERT(0, BINARY(8));
SELECT COLUMN_CREATE(1,0 AS CHAR);
SELECT COLUMN_GET(COLUMN_CREATE(1,1), 1 AS CHAR);
SELECT CAST(0 AS CHAR), CONVERT(0, CHAR);
SELECT COLUMN_CREATE(1,0 AS CHAR(8));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS CHAR(8));
SELECT CAST(0 AS CHAR(8)), CONVERT(0, CHAR(8));
SELECT COLUMN_CREATE(1,0 AS DATE);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DATE);
SELECT CAST(0 AS DATE), CONVERT(0, DATE);
SELECT COLUMN_CREATE(1,0 AS DATETIME);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DATETIME);
SELECT CAST(0 AS DATETIME), CONVERT(0, DATETIME);
SELECT COLUMN_CREATE(1,0 AS DATETIME(6));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DATETIME(6));
SELECT CAST(0 AS DATETIME(6)), CONVERT(0, DATETIME(6));
SELECT COLUMN_CREATE(1,0 AS DECIMAL);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DECIMAL);
SELECT CAST(0 AS DECIMAL), CONVERT(0, DECIMAL);
SELECT COLUMN_CREATE(1,0 AS DECIMAL(6));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DECIMAL(6));
SELECT CAST(0 AS DECIMAL(6)), CONVERT(0, DECIMAL(6));
SELECT COLUMN_CREATE(1,0 AS DECIMAL(6,2));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DECIMAL(6,2));
SELECT CAST(0 AS DECIMAL(6,2)), CONVERT(0, DECIMAL(6,2));
SELECT COLUMN_CREATE(1,0 AS DOUBLE);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DOUBLE);
SELECT CAST(0 AS DOUBLE), CONVERT(0, DOUBLE);
SELECT COLUMN_CREATE(1,0 AS DOUBLE(6,2));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS DOUBLE(6,2));
SELECT CAST(0 AS DOUBLE(6,2)), CONVERT(0, DOUBLE(6,2));
SELECT COLUMN_CREATE(1,0 AS INTEGER);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS INTEGER);
SELECT CAST(0 AS INTEGER), CONVERT(0, INTEGER);
SELECT COLUMN_CREATE(1,0 AS SIGNED);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS SIGNED);
SELECT CAST(0 AS SIGNED), CONVERT(0, SIGNED);
SELECT COLUMN_CREATE(1,0 AS SIGNED INTEGER);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS SIGNED INTEGER);
SELECT CAST(0 AS SIGNED INTEGER), CONVERT(0, SIGNED INTEGER);
SELECT COLUMN_CREATE(1,0 AS TIME);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS TIME);
SELECT CAST(0 AS TIME), CONVERT(0, TIME);
SELECT COLUMN_CREATE(1,0 AS TIME(6));
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS TIME(6));
SELECT CAST(0 AS TIME(6)), CONVERT(0, TIME(6));
SELECT COLUMN_CREATE(1,0 AS UNSIGNED);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS UNSIGNED);
SELECT CAST(0 AS UNSIGNED), CONVERT(0, UNSIGNED);
SELECT COLUMN_CREATE(1,0 AS UNSIGNED INTEGER);
SELECT COLUMN_GET(COLUMN_CREATE(1,0), 1 AS UNSIGNED INTEGER);
SELECT CAST(0 AS UNSIGNED INTEGER), CONVERT(0, UNSIGNED INTEGER);
People
Oleksandr Byelkin
Philip Stoev (Inactive)
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1227.2999997138977,"ttfb":606.5999999046326,"pageVisibility":"visible","entityId":20727,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a2f04364-23c1-4acf-bdc9-e7cabc3b8a83","navigationType":0,"readyForUser":1306.7999997138977,"redirectCount":0,"resourceLoadedEnd":1293.0999999046326,"resourceLoadedStart":611.7999997138977,"resourceTiming":[{"duration":7.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":611.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":611.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":619.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":7.299999713897705,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":612.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":612.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":619.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":65.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":612.1999998092651,"connectEnd":612.1999998092651,"connectStart":612.1999998092651,"domainLookupEnd":612.1999998092651,"domainLookupStart":612.1999998092651,"fetchStart":612.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":612.1999998092651,"responseEnd":677.5999999046326,"responseStart":677.5999999046326,"secureConnectionStart":612.1999998092651},{"duration":197.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":612.3999996185303,"connectEnd":612.3999996185303,"connectStart":612.3999996185303,"domainLookupEnd":612.3999996185303,"domainLookupStart":612.3999996185303,"fetchStart":612.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":612.3999996185303,"responseEnd":809.8999996185303,"responseStart":809.8999996185303,"secureConnectionStart":612.3999996185303},{"duration":201.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":612.5,"connectEnd":612.5,"connectStart":612.5,"domainLookupEnd":612.5,"domainLookupStart":612.5,"fetchStart":612.5,"redirectEnd":0,"redirectStart":0,"requestStart":612.5,"responseEnd":814.3999996185303,"responseStart":814.3999996185303,"secureConnectionStart":612.5},{"duration":202.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":612.6999998092651,"connectEnd":612.6999998092651,"connectStart":612.6999998092651,"domainLookupEnd":612.6999998092651,"domainLookupStart":612.6999998092651,"fetchStart":612.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":612.6999998092651,"responseEnd":815.0999999046326,"responseStart":815.0999999046326,"secureConnectionStart":612.6999998092651},{"duration":202.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":613,"connectEnd":613,"connectStart":613,"domainLookupEnd":613,"domainLookupStart":613,"fetchStart":613,"redirectEnd":0,"redirectStart":0,"requestStart":613,"responseEnd":815.5999999046326,"responseStart":815.5999999046326,"secureConnectionStart":613},{"duration":211.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":613.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":613.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":824.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":202.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":613.3999996185303,"connectEnd":613.3999996185303,"connectStart":613.3999996185303,"domainLookupEnd":613.3999996185303,"domainLookupStart":613.3999996185303,"fetchStart":613.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":613.3999996185303,"responseEnd":816.1999998092651,"responseStart":816.1999998092651,"secureConnectionStart":613.3999996185303},{"duration":211.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":613.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":613.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":824.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":204.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":613.5999999046326,"connectEnd":613.5999999046326,"connectStart":613.5999999046326,"domainLookupEnd":613.5999999046326,"domainLookupStart":613.5999999046326,"fetchStart":613.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":613.5999999046326,"responseEnd":817.6999998092651,"responseStart":817.6999998092651,"secureConnectionStart":613.5999999046326},{"duration":396.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":618.8999996185303,"connectEnd":618.8999996185303,"connectStart":618.8999996185303,"domainLookupEnd":618.8999996185303,"domainLookupStart":618.8999996185303,"fetchStart":618.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":618.8999996185303,"responseEnd":1015.1999998092651,"responseStart":1015.1999998092651,"secureConnectionStart":618.8999996185303},{"duration":545.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":625.3999996185303,"connectEnd":625.3999996185303,"connectStart":625.3999996185303,"domainLookupEnd":625.3999996185303,"domainLookupStart":625.3999996185303,"fetchStart":625.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":625.3999996185303,"responseEnd":1171.0999999046326,"responseStart":1171.0999999046326,"secureConnectionStart":625.3999996185303},{"duration":179.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":836.5999999046326,"connectEnd":836.5999999046326,"connectStart":836.5999999046326,"domainLookupEnd":836.5999999046326,"domainLookupStart":836.5999999046326,"fetchStart":836.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":836.5999999046326,"responseEnd":1015.6999998092651,"responseStart":1015.6999998092651,"secureConnectionStart":836.5999999046326},{"duration":105.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1112.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1112.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1218.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":174.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1113.2999997138977,"connectEnd":1113.2999997138977,"connectStart":1113.2999997138977,"domainLookupEnd":1113.2999997138977,"domainLookupStart":1113.2999997138977,"fetchStart":1113.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1113.2999997138977,"responseEnd":1287.8999996185303,"responseStart":1287.8999996185303,"secureConnectionStart":1113.2999997138977},{"duration":179.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1113.6999998092651,"connectEnd":1113.6999998092651,"connectStart":1113.6999998092651,"domainLookupEnd":1113.6999998092651,"domainLookupStart":1113.6999998092651,"fetchStart":1113.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1113.6999998092651,"responseEnd":1293.0999999046326,"responseStart":1293.0999999046326,"secureConnectionStart":1113.6999998092651},{"duration":229.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1217.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1217.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1446.6999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":13,"responseStart":607,"responseEnd":625,"domLoading":610,"domInteractive":1397,"domContentLoadedEventStart":1397,"domContentLoadedEventEnd":1443,"domComplete":1634,"loadEventStart":1634,"loadEventEnd":1634,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1350.2999997138977},{"name":"bigPipe.sidebar-id.end","time":1351},{"name":"bigPipe.activity-panel-pipe-id.start","time":1351.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1353},{"name":"activityTabFullyLoaded","time":1463.2999997138977}],"measures":[],"correlationId":"911f1a81e80266","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Re: Different types accepted by CAST() and COLUMN_GET()
select cast(1 as double) works in 5.3-mwl tree; It was added as part of this worklog.
select column_get(column_create(1, 2), 1 as signed) worked for me. All the other versions should also work as the parsing code in sql_yacc.yy is identical for CAST and COLUMN_GET().
COLUMN_CREATE is still 'different' but is scheduled to be fixed.
I tested the following commands and they worked correctly in 5.3-mwl:
column_get(column_create(1, 2), 1 as signed)
select column_get(column_create(1, 2), 1 as unsigned)
select column_get(column_create(1, 2), 1 as CHAR(5))
select column_get(column_create(1, 2), 1 as BINARY(5));
select column_get(column_create(1, 2), 1 as BINARY)`
I have now updated the documentation about this.