Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
N/A
CREATE TABLE t (v VECTOR(1));
INSERT INTO t VALUES (0x00000000),(0x00000040);
SELECT DISTINCT v FROM t;
# Cleanup
DROP TABLE t;
bb-11.6-MDEV-32887-vector 27ae9cbb91489e93fe30b02360a843f974e5e1fc
mariadbd: /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:21877: bool Create_tmp_table::finalize(THD*, TABLE*, TMP_TABLE_PARAM*, bool, bool): Assertion `m_using_unique_constraint || m_group_buff <= param->group_buff + param->group_length' failed.
241017 14:25:54 [ERROR] mysqld got signal 6 ;
#9 0x00007f9dfaa53e32 in __GI___assert_fail (assertion=0x5648dba16ec0 "m_using_unique_constraint || m_group_buff <= param->group_buff + param->group_length", file=0x5648dba09880 "/data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc", line=21877, function=0x5648dba16ce0 "bool Create_tmp_table::finalize(THD*, TABLE*, TMP_TABLE_PARAM*, bool, bool)") at ./assert/assert.c:101
#10 0x00005648d98088b0 in Create_tmp_table::finalize (this=0x7f9def76b550, thd=0x62c0000c0218, table=0x6200000140b8, param=0x629000267458, do_not_open=true, keep_row_order=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:21877
#11 0x00005648d980c053 in create_tmp_table (thd=0x62c0000c0218, param=0x629000267458, fields=..., group=0x6290000ea150, distinct=false, save_sum_fields=false, select_options=2164525825, rows_limit=18446744073709551615, table_alias=0x5648dd08c300 <empty_clex_str>, do_not_open=true, keep_row_order=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:22116
#12 0x00005648d978ab73 in JOIN::create_postjoin_aggr_table (this=0x6290000e7a08, tab=0x6290000e9618, table_fields=0x6290000e7db0, table_group=0x6290000ea150, save_sum_fields=false, distinct=false, keep_row_order=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:4305
#13 0x00005648d978611d in JOIN::make_aggr_tables_info (this=0x6290000e7a08) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:3865
#14 0x00005648d978161f in JOIN::optimize_stage2 (this=0x6290000e7a08) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:3482
#15 0x00005648d9779774 in JOIN::optimize_inner (this=0x6290000e7a08) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:2713
#16 0x00005648d9771eb1 in JOIN::optimize (this=0x6290000e7a08) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:1985
#17 0x00005648d9794842 in mysql_select (thd=0x62c0000c0218, tables=0x6290000e6960, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2164525825, result=0x6290000e79d8, unit=0x62c0000c4710, select_lex=0x6290000e62d8) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:5328
#18 0x00005648d9762f6f in handle_select (thd=0x62c0000c0218, lex=0x62c0000c4630, result=0x6290000e79d8, setup_tables_done_option=0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_select.cc:624
#19 0x00005648d9685b25 in execute_sqlcom_select (thd=0x62c0000c0218, all_tables=0x6290000e6960) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:6151
#20 0x00005648d9675750 in mysql_execute_command (thd=0x62c0000c0218, is_called_from_prepared_stmt=false) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:3953
#21 0x00005648d9690576 in mysql_parse (thd=0x62c0000c0218, rawbuf=0x6290000e6238 "SELECT DISTINCT v FROM t", length=24, parser_state=0x7f9def76d9f0) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:7873
#22 0x00005648d9667598 in dispatch_command (command=COM_QUERY, thd=0x62c0000c0218, packet=0x629000253219 "SELECT DISTINCT v FROM t", packet_length=24, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1892
#23 0x00005648d96642ac in do_command (thd=0x62c0000c0218, blocking=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_parse.cc:1405
#24 0x00005648d9b53879 in do_handle_one_connection (connect=0x6080000034b8, put_in_cache=true) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1448
#25 0x00005648d9b5323a in handle_one_connection (arg=0x608000003438) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/sql/sql_connect.cc:1350
#26 0x00005648da7f8ee8 in pfs_spawn_thread (arg=0x617000005b98) at /data/bld/preview-11.7-bb-11.6-MDEV-32887-vector-asan/storage/perfschema/pfs.cc:2198
#27 0x00007f9dfaaa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#28 0x00007f9dfab2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
is caused by
MDEV-34939
vector search in 11.7
Closed
There are no comments yet on this issue.
{"report":{"fcp":1412.3000001907349,"ttfb":282.19999980926514,"pageVisibility":"visible","entityId":131256,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6becdf7b-fd06-4dac-97f2-cdee82c8f987","navigationType":0,"readyForUser":1482.8000001907349,"redirectCount":0,"resourceLoadedEnd":2307.9000000953674,"resourceLoadedStart":288.30000019073486,"resourceTiming":[{"duration":465.7999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":288.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":754.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":466.30000019073486,"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":288.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":754.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":475.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":288.80000019073486,"connectEnd":288.80000019073486,"connectStart":288.80000019073486,"domainLookupEnd":288.80000019073486,"domainLookupStart":288.80000019073486,"fetchStart":288.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":288.80000019073486,"responseEnd":764,"responseStart":764,"secureConnectionStart":288.80000019073486},{"duration":532.7999997138977,"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":288.90000009536743,"connectEnd":288.90000009536743,"connectStart":288.90000009536743,"domainLookupEnd":288.90000009536743,"domainLookupStart":288.90000009536743,"fetchStart":288.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":288.90000009536743,"responseEnd":821.6999998092651,"responseStart":821.6999998092651,"secureConnectionStart":288.90000009536743},{"duration":536.5,"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":289.19999980926514,"connectEnd":289.19999980926514,"connectStart":289.19999980926514,"domainLookupEnd":289.19999980926514,"domainLookupStart":289.19999980926514,"fetchStart":289.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":289.19999980926514,"responseEnd":825.6999998092651,"responseStart":825.6999998092651,"secureConnectionStart":289.19999980926514},{"duration":536.7999997138977,"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":289.40000009536743,"connectEnd":289.40000009536743,"connectStart":289.40000009536743,"domainLookupEnd":289.40000009536743,"domainLookupStart":289.40000009536743,"fetchStart":289.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":289.40000009536743,"responseEnd":826.1999998092651,"responseStart":826.1999998092651,"secureConnectionStart":289.40000009536743},{"duration":537,"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":289.59999990463257,"connectEnd":289.59999990463257,"connectStart":289.59999990463257,"domainLookupEnd":289.59999990463257,"domainLookupStart":289.59999990463257,"fetchStart":289.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":289.59999990463257,"responseEnd":826.5999999046326,"responseStart":826.5999999046326,"secureConnectionStart":289.59999990463257},{"duration":632.1999998092651,"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":289.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":289.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":922,"responseStart":0,"secureConnectionStart":0},{"duration":537.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":289.90000009536743,"connectEnd":289.90000009536743,"connectStart":289.90000009536743,"domainLookupEnd":289.90000009536743,"domainLookupStart":289.90000009536743,"fetchStart":289.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":289.90000009536743,"responseEnd":827.1999998092651,"responseStart":827.1999998092651,"secureConnectionStart":289.90000009536743},{"duration":632.1999998092651,"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":290,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":290,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":922.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":538.5,"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":290.19999980926514,"connectEnd":290.19999980926514,"connectStart":290.19999980926514,"domainLookupEnd":290.19999980926514,"domainLookupStart":290.19999980926514,"fetchStart":290.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":290.19999980926514,"responseEnd":828.6999998092651,"responseStart":828.6999998092651,"secureConnectionStart":290.19999980926514},{"duration":1780,"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":295.40000009536743,"connectEnd":295.40000009536743,"connectStart":295.40000009536743,"domainLookupEnd":295.40000009536743,"domainLookupStart":295.40000009536743,"fetchStart":295.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":295.40000009536743,"responseEnd":2075.4000000953674,"responseStart":2075.4000000953674,"secureConnectionStart":295.40000009536743},{"duration":2012.5,"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":295.40000009536743,"connectEnd":295.40000009536743,"connectStart":295.40000009536743,"domainLookupEnd":295.40000009536743,"domainLookupStart":295.40000009536743,"fetchStart":295.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":295.40000009536743,"responseEnd":2307.9000000953674,"responseStart":2307.9000000953674,"secureConnectionStart":295.40000009536743},{"duration":1144.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":934.8000001907349,"connectEnd":934.8000001907349,"connectStart":934.8000001907349,"domainLookupEnd":934.8000001907349,"domainLookupStart":934.8000001907349,"fetchStart":934.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":934.8000001907349,"responseEnd":2079.0999999046326,"responseStart":2079.0999999046326,"secureConnectionStart":934.8000001907349},{"duration":995.2999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1364.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1364.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2359.699999809265,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":123,"responseStart":282,"responseEnd":291,"domLoading":286,"domInteractive":2361,"domContentLoadedEventStart":2361,"domContentLoadedEventEnd":2420,"domComplete":2947,"loadEventStart":2947,"loadEventEnd":2948,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2345.4000000953674},{"name":"bigPipe.sidebar-id.end","time":2346.199999809265},{"name":"bigPipe.activity-panel-pipe-id.start","time":2346.300000190735},{"name":"bigPipe.activity-panel-pipe-id.end","time":2346.800000190735},{"name":"activityTabFullyLoaded","time":2429.699999809265}],"measures":[],"correlationId":"d805be049e8f76","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}