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":1059.2999999523163,"ttfb":381,"pageVisibility":"visible","entityId":66338,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"ded79bb0-e45f-4155-bbe0-e4f78e3a622b","navigationType":0,"readyForUser":1156,"redirectCount":0,"resourceLoadedEnd":1393.7999999523163,"resourceLoadedStart":386.10000002384186,"resourceTiming":[{"duration":210,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":386.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":386.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":596.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":209.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":386.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":386.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":596.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":267.1999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":386.5,"connectEnd":386.5,"connectStart":386.5,"domainLookupEnd":386.5,"domainLookupStart":386.5,"fetchStart":386.5,"redirectEnd":0,"redirectStart":0,"requestStart":386.5,"responseEnd":653.6999999284744,"responseStart":653.6999999284744,"secureConnectionStart":386.5},{"duration":352.3000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":386.6999999284744,"connectEnd":386.6999999284744,"connectStart":386.6999999284744,"domainLookupEnd":386.6999999284744,"domainLookupStart":386.6999999284744,"fetchStart":386.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":386.6999999284744,"responseEnd":739,"responseStart":739,"secureConnectionStart":386.6999999284744},{"duration":355.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":386.7999999523163,"connectEnd":386.7999999523163,"connectStart":386.7999999523163,"domainLookupEnd":386.7999999523163,"domainLookupStart":386.7999999523163,"fetchStart":386.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":386.7999999523163,"responseEnd":742.6999999284744,"responseStart":742.6999999284744,"secureConnectionStart":386.7999999523163},{"duration":356.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":386.89999997615814,"connectEnd":386.89999997615814,"connectStart":386.89999997615814,"domainLookupEnd":386.89999997615814,"domainLookupStart":386.89999997615814,"fetchStart":386.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":386.89999997615814,"responseEnd":743.2999999523163,"responseStart":743.2999999523163,"secureConnectionStart":386.89999997615814},{"duration":357.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":387,"connectEnd":387,"connectStart":387,"domainLookupEnd":387,"domainLookupStart":387,"fetchStart":387,"redirectEnd":0,"redirectStart":0,"requestStart":387,"responseEnd":744.1000000238419,"responseStart":744.1000000238419,"secureConnectionStart":387},{"duration":357.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":387.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":387.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":745,"responseStart":0,"secureConnectionStart":0},{"duration":357.8000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":387.1999999284744,"connectEnd":387.1999999284744,"connectStart":387.1999999284744,"domainLookupEnd":387.1999999284744,"domainLookupStart":387.1999999284744,"fetchStart":387.1999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":387.1999999284744,"responseEnd":745,"responseStart":745,"secureConnectionStart":387.1999999284744},{"duration":358.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":387.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":387.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":745.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":358.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":387.5,"connectEnd":387.5,"connectStart":387.5,"domainLookupEnd":387.5,"domainLookupStart":387.5,"fetchStart":387.5,"redirectEnd":0,"redirectStart":0,"requestStart":387.5,"responseEnd":745.8999999761581,"responseStart":745.8999999761581,"secureConnectionStart":387.5},{"duration":581,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":396.2999999523163,"connectEnd":396.2999999523163,"connectStart":396.2999999523163,"domainLookupEnd":396.2999999523163,"domainLookupStart":396.2999999523163,"fetchStart":396.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":396.2999999523163,"responseEnd":977.2999999523163,"responseStart":977.1999999284744,"secureConnectionStart":396.2999999523163},{"duration":994,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":399.7999999523163,"connectEnd":399.7999999523163,"connectStart":399.7999999523163,"domainLookupEnd":399.7999999523163,"domainLookupStart":399.7999999523163,"fetchStart":399.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":399.7999999523163,"responseEnd":1393.7999999523163,"responseStart":1393.7999999523163,"secureConnectionStart":399.7999999523163},{"duration":169.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":812.3999999761581,"connectEnd":812.3999999761581,"connectStart":812.3999999761581,"domainLookupEnd":812.3999999761581,"domainLookupStart":812.3999999761581,"fetchStart":812.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":812.3999999761581,"responseEnd":981.6000000238419,"responseStart":981.6000000238419,"secureConnectionStart":812.3999999761581},{"duration":391.60000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1052,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1052,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1443.6000000238419,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":173,"responseStart":381,"responseEnd":399,"domLoading":384,"domInteractive":1411,"domContentLoadedEventStart":1411,"domContentLoadedEventEnd":1449,"domComplete":1722,"loadEventStart":1722,"loadEventEnd":1723,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1397.5},{"name":"bigPipe.sidebar-id.end","time":1398.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":1398.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1399},{"name":"activityTabFullyLoaded","time":1455}],"measures":[],"correlationId":"b57ac1bde67f42","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":13,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}