Type:
Bug
Priority:
Major
Resolution:
Duplicate
Affects Version/s:
N/A
--source include/have_partition.inc
CREATE OR REPLACE TABLE t1 (i INT ) WITH SYSTEM VERSIONING PARTITION BY system_time INTERVAL 4 MINUTE (PARTITION p1 HISTORY, PARTITION pn CURRENT );
CREATE OR REPLACE TABLE t2 WITH SYSTEM VERSIONING SELECT * from t1 WHERE sys_trx_end IN ( SELECT sys_trx_start FROM t1);
# Cleanup
DROP TABLE t1, t2;
bb-10.3-temporal a3a15126f26
#3 <signal handler called>
#4 0x000055d00b42ad2e in ha_partition::min_of_the_max_uint (this=0x7f6994019558, operator_func=&virtual table offset 856) at /data/src/bb-10.3-temporal/sql/ha_partition.cc:9984
#5 0x000055d00b42ae46 in ha_partition::max_supported_key_length (this=0x7f6994019558) at /data/src/bb-10.3-temporal/sql/ha_partition.cc:10003
#6 0x000055d00aa21497 in handler::max_key_length (this=0x7f6994019558) at /data/src/bb-10.3-temporal/sql/handler.h:3718
#7 0x000055d00aa632a6 in mysql_prepare_create_table (thd=0x7f6994000b00, create_info=0x7f69e01637b0, alter_info=0x7f69e0163700, db_options=0x7f69e0160544, file=0x7f6994019558, key_info_buffer=0x7f69e0161bd0, key_count=0x7f69e0161bc4, create_table_mode=3) at /data/src/bb-10.3-temporal/sql/sql_table.cc:3457
#8 0x000055d00aa6716e in mysql_create_frm_image (thd=0x7f6994000b00, db=0x7f6994015410 "test", table_name=0x7f6994014da8 "t2", create_info=0x7f69e01637b0, alter_info=0x7f69e0163700, create_table_mode=3, key_info=0x7f69e0161bd0, key_count=0x7f69e0161bc4, frm=0x7f69e0161be0) at /data/src/bb-10.3-temporal/sql/sql_table.cc:4742
#9 0x000055d00aa67bb3 in create_table_impl (thd=0x7f6994000b00, orig_db=0x7f6994015410 "test", orig_table_name=0x7f6994014da8 "t2", db=0x7f6994015410 "test", table_name=0x7f6994014da8 "t2", path=0x7f69e0161bf0 "./test/t2", options=..., create_info=0x7f69e01637b0, alter_info=0x7f69e0163700, create_table_mode=3, is_trans=0x0, key_info=0x7f69e0161bd0, key_count=0x7f69e0161bc4, frm=0x7f69e0161be0) at /data/src/bb-10.3-temporal/sql/sql_table.cc:4984
#10 0x000055d00aa6820d in mysql_create_table_no_lock (thd=0x7f6994000b00, db=0x7f6994015410 "test", table_name=0x7f6994014da8 "t2", create_info=0x7f69e01637b0, alter_info=0x7f69e0163700, is_trans=0x0, create_table_mode=3, table_list=0x7f6994014de0) at /data/src/bb-10.3-temporal/sql/sql_table.cc:5100
#11 0x000055d00a96cdfb in select_create::create_table_from_items (this=0x7f6994017410, thd=0x7f6994000b00, items=0x7f6994005110, lock=0x7f69e0163168, hooks=0x7f69e01631a0) at /data/src/bb-10.3-temporal/sql/sql_insert.cc:4244
#12 0x000055d00a96d510 in select_create::prepare (this=0x7f6994017410, values=..., u=0x7f6994004898) at /data/src/bb-10.3-temporal/sql/sql_insert.cc:4418
#13 0x000055d00a9d9ba7 in JOIN::prepare (this=0x7f6994017508, tables_init=0x7f6994015568, wild_num=1, conds_init=0x7f6994016fd8, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7f6994004ff0, unit_arg=0x7f6994004898) at /data/src/bb-10.3-temporal/sql/sql_select.cc:1450
#14 0x000055d00a9e37f1 in mysql_select (thd=0x7f6994000b00, tables=0x7f6994015568, wild_num=1, fields=..., conds=0x7f6994016fd8, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2416184064, result=0x7f6994017410, unit=0x7f6994004898, select_lex=0x7f6994004ff0) at /data/src/bb-10.3-temporal/sql/sql_select.cc:4236
#15 0x000055d00a9d593e in handle_select (thd=0x7f6994000b00, lex=0x7f69940047d0, result=0x7f6994017410, setup_tables_done_option=0) at /data/src/bb-10.3-temporal/sql/sql_select.cc:382
#16 0x000055d00a998408 in mysql_execute_command (thd=0x7f6994000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:4220
#17 0x000055d00a9a43f6 in mysql_parse (thd=0x7f6994000b00, rawbuf=0x7f6994014c48 "CREATE OR REPLACE TABLE t2 WITH SYSTEM VERSIONING SELECT * from t1 WHERE sys_trx_end IN (SELECT sys_trx_start FROM t1)", length=118, parser_state=0x7f69e01645f0, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:7991
#18 0x000055d00a991b97 in dispatch_command (command=COM_QUERY, thd=0x7f6994000b00, packet=0x7f69941200b1 "CREATE OR REPLACE TABLE t2 WITH SYSTEM VERSIONING SELECT * from t1 WHERE sys_trx_end IN (SELECT sys_trx_start FROM t1)", packet_length=118, is_com_multi=false, is_next_command=false) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1825
#19 0x000055d00a9905cb in do_command (thd=0x7f6994000b00) at /data/src/bb-10.3-temporal/sql/sql_parse.cc:1370
#20 0x000055d00aaf8354 in do_handle_one_connection (connect=0x55d00e2e0b20) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1420
#21 0x000055d00aaf80e1 in handle_one_connection (arg=0x55d00e2e0b20) at /data/src/bb-10.3-temporal/sql/sql_connect.cc:1326
#22 0x000055d00af92c5a in pfs_spawn_thread (arg=0x55d00e383540) at /data/src/bb-10.3-temporal/storage/perfschema/pfs.cc:1863
#23 0x00007f69ea030494 in start_thread (arg=0x7f69e0165700) at pthread_create.c:333
#24 0x00007f69e841693f in clone () from /lib/x86_64-linux-gnu/libc.so.6
duplicates
MDEV-14792
INSERT without column list into table with explicit versioning columns produces bad data
Closed
Transition
Time In Source Status
Execution Times
Open
Closed
3d 14h 25m
1
{"report":{"fcp":1003.5,"ttfb":129.39999985694885,"pageVisibility":"visible","entityId":65058,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4580b2b9-e294-4ae5-a5db-3df244ffff9a","navigationType":0,"readyForUser":1088.7999999523163,"redirectCount":0,"resourceLoadedEnd":884.2999999523163,"resourceLoadedStart":144.89999985694885,"resourceTiming":[{"duration":223.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":144.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":144.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":368.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":223.29999995231628,"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":145.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":368.5,"responseStart":0,"secureConnectionStart":0},{"duration":232.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":145.29999995231628,"connectEnd":145.29999995231628,"connectStart":145.29999995231628,"domainLookupEnd":145.29999995231628,"domainLookupStart":145.29999995231628,"fetchStart":145.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":145.29999995231628,"responseEnd":377.7000000476837,"responseStart":377.7000000476837,"secureConnectionStart":145.29999995231628},{"duration":506.2000000476837,"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":145.39999985694885,"connectEnd":145.39999985694885,"connectStart":145.39999985694885,"domainLookupEnd":145.39999985694885,"domainLookupStart":145.39999985694885,"fetchStart":145.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":145.39999985694885,"responseEnd":651.5999999046326,"responseStart":651.5999999046326,"secureConnectionStart":145.39999985694885},{"duration":509.89999985694885,"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":145.5,"connectEnd":145.5,"connectStart":145.5,"domainLookupEnd":145.5,"domainLookupStart":145.5,"fetchStart":145.5,"redirectEnd":0,"redirectStart":0,"requestStart":145.5,"responseEnd":655.3999998569489,"responseStart":655.3999998569489,"secureConnectionStart":145.5},{"duration":510.2999999523163,"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":145.59999990463257,"connectEnd":145.59999990463257,"connectStart":145.59999990463257,"domainLookupEnd":145.59999990463257,"domainLookupStart":145.59999990463257,"fetchStart":145.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":145.59999990463257,"responseEnd":655.8999998569489,"responseStart":655.8999998569489,"secureConnectionStart":145.59999990463257},{"duration":510.59999990463257,"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":145.70000004768372,"connectEnd":145.70000004768372,"connectStart":145.70000004768372,"domainLookupEnd":145.70000004768372,"domainLookupStart":145.70000004768372,"fetchStart":145.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":145.70000004768372,"responseEnd":656.2999999523163,"responseStart":656.2999999523163,"secureConnectionStart":145.70000004768372},{"duration":510.80000019073486,"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":145.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":656.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":510.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":146,"connectEnd":146,"connectStart":146,"domainLookupEnd":146,"domainLookupStart":146,"fetchStart":146,"redirectEnd":0,"redirectStart":0,"requestStart":146,"responseEnd":656.7000000476837,"responseStart":656.7000000476837,"secureConnectionStart":146},{"duration":511,"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":146.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":146.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":657.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":511,"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":146.29999995231628,"connectEnd":146.29999995231628,"connectStart":146.29999995231628,"domainLookupEnd":146.29999995231628,"domainLookupStart":146.29999995231628,"fetchStart":146.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":146.29999995231628,"responseEnd":657.2999999523163,"responseStart":657.2999999523163,"secureConnectionStart":146.29999995231628},{"duration":583.2000000476837,"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":147,"connectEnd":147,"connectStart":147,"domainLookupEnd":147,"domainLookupStart":147,"fetchStart":147,"redirectEnd":0,"redirectStart":0,"requestStart":147,"responseEnd":730.2000000476837,"responseStart":730.2000000476837,"secureConnectionStart":147},{"duration":737.2999999523163,"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":147,"connectEnd":147,"connectStart":147,"domainLookupEnd":147,"domainLookupStart":147,"fetchStart":147,"redirectEnd":0,"redirectStart":0,"requestStart":147,"responseEnd":884.2999999523163,"responseStart":884.2999999523163,"secureConnectionStart":147},{"duration":185.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":528.7000000476837,"connectEnd":528.7000000476837,"connectStart":528.7000000476837,"domainLookupEnd":528.7000000476837,"domainLookupStart":528.7000000476837,"fetchStart":528.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":528.7000000476837,"responseEnd":713.7999999523163,"responseStart":713.7999999523163,"secureConnectionStart":528.7000000476837},{"duration":57.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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":717.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":717.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":774.2000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":5,"responseStart":129,"responseEnd":133,"domLoading":142,"domInteractive":1188,"domContentLoadedEventStart":1188,"domContentLoadedEventEnd":1237,"domComplete":1663,"loadEventStart":1663,"loadEventEnd":1663,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1170.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1170.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":1171.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1171.8999998569489},{"name":"activityTabFullyLoaded","time":1253.2999999523163}],"measures":[],"correlationId":"dad73632e8cae4","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":71,"dbReadsTimeInMs":14,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}