It appears to be a recent regression. reproducible on current 27d94b7e032, not reproducible on c14733f64e (before the latest bunch of fixes/cleanups around datetimes). Most of intermediate commits don't build, so I can't say for sure which one is to blame.
--source include/have_innodb.inc
|
|
CREATE TABLE t1 (d DATE) ENGINE=InnoDB;
|
INSERT INTO t1 VALUES ('2012-12-21');
|
SELECT * FROM t1 WHERE LEAST( UTC_TIME(), d );
|
|
# Cleanup
|
DROP TABLE t1;
|
10.2 27d94b7e032
|
mysqld: /home/elenst/10.2/sql/item.cc:9708: virtual longlong Item_cache_temporal::val_datetime_packed(): Assertion `Item_cache_temporal::field_type() != MYSQL_TYPE_TIME' failed.
|
180315 1:13:50 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f0e719bfbf2 in __GI___assert_fail (assertion=0x55b40b2efaf8 "Item_cache_temporal::field_type() != MYSQL_TYPE_TIME", file=0x55b40b2eece0 "/home/elenst/10.2/sql/item.cc", line=9708, function=0x55b40b2f2a40 <Item_cache_temporal::val_datetime_packed()::__PRETTY_FUNCTION__> "virtual longlong Item_cache_temporal::val_datetime_packed()") at assert.c:101
|
#8 0x000055b40aa2f4d9 in Item_cache_temporal::val_datetime_packed (this=0x7f0e1c015230) at /home/elenst/10.2/sql/item.cc:9708
|
#9 0x000055b40aa33fc9 in Item::val_temporal_packed (this=0x7f0e1c015230, f_type=MYSQL_TYPE_DATETIME) at /home/elenst/10.2/sql/item.h:1424
|
#10 0x000055b40aa7f241 in Item_func_min_max::get_date (this=0x7f0e1c012f88, ltime=0x7f0e6c0dcd30, fuzzy_date=0) at /home/elenst/10.2/sql/item_func.cc:2873
|
#11 0x000055b40aa7f93d in Item_func_min_max::val_int (this=0x7f0e1c012f88) at /home/elenst/10.2/sql/item_func.cc:2989
|
#12 0x000055b40a8004e5 in evaluate_join_record (join=0x7f0e1c013158, join_tab=0x7f0e1c0148e0, error=0) at /home/elenst/10.2/sql/sql_select.cc:18786
|
#13 0x000055b40a80010c in sub_select (join=0x7f0e1c013158, join_tab=0x7f0e1c0148e0, end_of_records=false) at /home/elenst/10.2/sql/sql_select.cc:18691
|
#14 0x000055b40a7ff693 in do_select (join=0x7f0e1c013158, procedure=0x0) at /home/elenst/10.2/sql/sql_select.cc:18235
|
#15 0x000055b40a7da1b3 in JOIN::exec_inner (this=0x7f0e1c013158) at /home/elenst/10.2/sql/sql_select.cc:3566
|
#16 0x000055b40a7d9662 in JOIN::exec (this=0x7f0e1c013158) at /home/elenst/10.2/sql/sql_select.cc:3361
|
#17 0x000055b40a7da824 in mysql_select (thd=0x7f0e1c000b00, tables=0x7f0e1c012708, wild_num=1, fields=..., conds=0x7f0e1c012f88, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f0e1c013138, unit=0x7f0e1c0046a8, select_lex=0x7f0e1c004de0) at /home/elenst/10.2/sql/sql_select.cc:3761
|
#18 0x000055b40a7ceef9 in handle_select (thd=0x7f0e1c000b00, lex=0x7f0e1c0045e0, result=0x7f0e1c013138, setup_tables_done_option=0) at /home/elenst/10.2/sql/sql_select.cc:364
|
#19 0x000055b40a79adcf in execute_sqlcom_select (thd=0x7f0e1c000b00, all_tables=0x7f0e1c012708) at /home/elenst/10.2/sql/sql_parse.cc:6456
|
#20 0x000055b40a790b59 in mysql_execute_command (thd=0x7f0e1c000b00) at /home/elenst/10.2/sql/sql_parse.cc:3467
|
#21 0x000055b40a79e7de in mysql_parse (thd=0x7f0e1c000b00, rawbuf=0x7f0e1c0124f8 "SELECT * FROM t1 WHERE LEAST( UTC_TIME(), d )", length=45, parser_state=0x7f0e6c0de200, is_com_multi=false, is_next_command=false) at /home/elenst/10.2/sql/sql_parse.cc:7902
|
#22 0x000055b40a78c468 in dispatch_command (command=COM_QUERY, thd=0x7f0e1c000b00, packet=0x7f0e1c08cbc1 "", packet_length=45, is_com_multi=false, is_next_command=false) at /home/elenst/10.2/sql/sql_parse.cc:1806
|
#23 0x000055b40a78ae04 in do_command (thd=0x7f0e1c000b00) at /home/elenst/10.2/sql/sql_parse.cc:1359
|
#24 0x000055b40a8d8265 in do_handle_one_connection (connect=0x55b40e188c20) at /home/elenst/10.2/sql/sql_connect.cc:1335
|
#25 0x000055b40a8d7fe5 in handle_one_connection (arg=0x55b40e188c20) at /home/elenst/10.2/sql/sql_connect.cc:1241
|
#26 0x000055b40b1103aa in pfs_spawn_thread (arg=0x55b40e16b430) at /home/elenst/10.2/storage/perfschema/pfs.cc:1862
|
#27 0x00007f0e726086da in start_thread (arg=0x7f0e6c0df700) at pthread_create.c:456
|
#28 0x00007f0e71a9ad7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105
|
There are no comments yet on this issue.
{"report":{"fcp":1080.7000007629395,"ttfb":196.80000019073486,"pageVisibility":"visible","entityId":66338,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"40db3940-6556-476f-9d91-3ea00b63ace9","navigationType":0,"readyForUser":1162.8000001907349,"redirectCount":0,"resourceLoadedEnd":1473.4000005722046,"resourceLoadedStart":203.30000019073486,"resourceTiming":[{"duration":170,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":203.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":373.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":170.10000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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","startTime":203.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":373.70000076293945,"responseStart":0,"secureConnectionStart":0},{"duration":180,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":203.80000019073486,"connectEnd":203.80000019073486,"connectStart":203.80000019073486,"domainLookupEnd":203.80000019073486,"domainLookupStart":203.80000019073486,"fetchStart":203.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":203.80000019073486,"responseEnd":383.80000019073486,"responseStart":383.80000019073486,"secureConnectionStart":203.80000019073486},{"duration":537.7000007629395,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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","startTime":204,"connectEnd":204,"connectStart":204,"domainLookupEnd":204,"domainLookupStart":204,"fetchStart":204,"redirectEnd":0,"redirectStart":0,"requestStart":204,"responseEnd":741.7000007629395,"responseStart":741.7000007629395,"secureConnectionStart":204},{"duration":541.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":204.20000076293945,"connectEnd":204.20000076293945,"connectStart":204.20000076293945,"domainLookupEnd":204.20000076293945,"domainLookupStart":204.20000076293945,"fetchStart":204.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":204.20000076293945,"responseEnd":745.9000005722046,"responseStart":745.9000005722046,"secureConnectionStart":204.20000076293945},{"duration":542,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":204.4000005722046,"connectEnd":204.4000005722046,"connectStart":204.4000005722046,"domainLookupEnd":204.4000005722046,"domainLookupStart":204.4000005722046,"fetchStart":204.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":204.4000005722046,"responseEnd":746.4000005722046,"responseStart":746.4000005722046,"secureConnectionStart":204.4000005722046},{"duration":542.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":204.5,"connectEnd":204.5,"connectStart":204.5,"domainLookupEnd":204.5,"domainLookupStart":204.5,"fetchStart":204.5,"redirectEnd":0,"redirectStart":0,"requestStart":204.5,"responseEnd":746.8000001907349,"responseStart":746.8000001907349,"secureConnectionStart":204.5},{"duration":543,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":204.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":204.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":747.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":542.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":204.9000005722046,"connectEnd":204.9000005722046,"connectStart":204.9000005722046,"domainLookupEnd":204.9000005722046,"domainLookupStart":204.9000005722046,"fetchStart":204.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":204.9000005722046,"responseEnd":747.2000007629395,"responseStart":747.2000007629395,"secureConnectionStart":204.9000005722046},{"duration":542.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":205.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":205.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":747.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":542.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":205.30000019073486,"connectEnd":205.30000019073486,"connectStart":205.30000019073486,"domainLookupEnd":205.30000019073486,"domainLookupStart":205.30000019073486,"fetchStart":205.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":205.30000019073486,"responseEnd":747.8000001907349,"responseStart":747.8000001907349,"secureConnectionStart":205.30000019073486},{"duration":607.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":206.10000038146973,"connectEnd":206.10000038146973,"connectStart":206.10000038146973,"domainLookupEnd":206.10000038146973,"domainLookupStart":206.10000038146973,"fetchStart":206.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":206.10000038146973,"responseEnd":814,"responseStart":814,"secureConnectionStart":206.10000038146973},{"duration":1255.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":206.20000076293945,"connectEnd":206.20000076293945,"connectStart":206.20000076293945,"domainLookupEnd":206.20000076293945,"domainLookupStart":206.20000076293945,"fetchStart":206.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":206.20000076293945,"responseEnd":1462.1000003814697,"responseStart":1462.1000003814697,"secureConnectionStart":206.20000076293945},{"duration":272.9000005722046,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":540,"connectEnd":540,"connectStart":540,"domainLookupEnd":540,"domainLookupStart":540,"fetchStart":540,"redirectEnd":0,"redirectStart":0,"requestStart":540,"responseEnd":812.9000005722046,"responseStart":812.8000001907349,"secureConnectionStart":540},{"duration":455.9000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/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","startTime":1017.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1017.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1473.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":470.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/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","startTime":1018.5,"connectEnd":1018.5,"connectStart":1018.5,"domainLookupEnd":1018.5,"domainLookupStart":1018.5,"fetchStart":1018.5,"redirectEnd":0,"redirectStart":0,"requestStart":1018.5,"responseEnd":1488.6000003814697,"responseStart":1488.6000003814697,"secureConnectionStart":1018.5},{"duration":475.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/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","startTime":1018.9000005722046,"connectEnd":1018.9000005722046,"connectStart":1018.9000005722046,"domainLookupEnd":1018.9000005722046,"domainLookupStart":1018.9000005722046,"fetchStart":1018.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1018.9000005722046,"responseEnd":1494.1000003814697,"responseStart":1494.1000003814697,"secureConnectionStart":1018.9000005722046}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":27,"responseStart":197,"responseEnd":198,"domLoading":201,"domInteractive":1481,"domContentLoadedEventStart":1481,"domContentLoadedEventEnd":1522,"domComplete":2021,"loadEventStart":2021,"loadEventEnd":2022,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1463.9000005722046},{"name":"bigPipe.sidebar-id.end","time":1464.7000007629395},{"name":"bigPipe.activity-panel-pipe-id.start","time":1464.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.end","time":1465.3000001907349},{"name":"activityTabFullyLoaded","time":1530.1000003814697}],"measures":[],"correlationId":"33b321caf7500b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}