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":806.7000000476837,"ttfb":186.09999990463257,"pageVisibility":"visible","entityId":131256,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"a68299e3-62cd-4acb-8936-478786e2db3f","navigationType":0,"readyForUser":874.7999999523163,"redirectCount":0,"resourceLoadedEnd":461.09999990463257,"resourceLoadedStart":194.09999990463257,"resourceTiming":[{"duration":4.400000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":194.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":194.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":198.5,"responseStart":0,"secureConnectionStart":0},{"duration":4.5,"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":194.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":194.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":198.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":159.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":194.40000009536743,"connectEnd":200.20000004768372,"connectStart":200.20000004768372,"domainLookupEnd":200.20000004768372,"domainLookupStart":200.20000004768372,"fetchStart":194.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":200.40000009536743,"responseEnd":354,"responseStart":211.59999990463257,"secureConnectionStart":200.20000004768372},{"duration":250.70000004768372,"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":194.59999990463257,"connectEnd":194.59999990463257,"connectStart":194.59999990463257,"domainLookupEnd":194.59999990463257,"domainLookupStart":194.59999990463257,"fetchStart":194.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":201.79999995231628,"responseEnd":445.2999999523163,"responseStart":218.40000009536743,"secureConnectionStart":194.59999990463257},{"duration":27.399999856948853,"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":194.70000004768372,"connectEnd":194.70000004768372,"connectStart":194.70000004768372,"domainLookupEnd":194.70000004768372,"domainLookupStart":194.70000004768372,"fetchStart":194.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":203.59999990463257,"responseEnd":222.09999990463257,"responseStart":220.70000004768372,"secureConnectionStart":194.70000004768372},{"duration":29.200000047683716,"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":194.70000004768372,"connectEnd":194.70000004768372,"connectStart":194.70000004768372,"domainLookupEnd":194.70000004768372,"domainLookupStart":194.70000004768372,"fetchStart":194.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":204,"responseEnd":223.90000009536743,"responseStart":222.20000004768372,"secureConnectionStart":194.70000004768372},{"duration":40.299999952316284,"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":194.90000009536743,"connectEnd":194.90000009536743,"connectStart":194.90000009536743,"domainLookupEnd":194.90000009536743,"domainLookupStart":194.90000009536743,"fetchStart":194.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":206.09999990463257,"responseEnd":235.20000004768372,"responseStart":226.09999990463257,"secureConnectionStart":194.90000009536743},{"duration":9.299999952316284,"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":195,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":195,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":204.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":41.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":195,"connectEnd":195,"connectStart":195,"domainLookupEnd":195,"domainLookupStart":195,"fetchStart":195,"redirectEnd":0,"redirectStart":0,"requestStart":206.29999995231628,"responseEnd":236.5,"responseStart":228.40000009536743,"secureConnectionStart":195},{"duration":11.400000095367432,"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":195.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":195.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":206.5,"responseStart":0,"secureConnectionStart":0},{"duration":41.89999985694885,"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":195.20000004768372,"connectEnd":195.20000004768372,"connectStart":195.20000004768372,"domainLookupEnd":195.20000004768372,"domainLookupStart":195.20000004768372,"fetchStart":195.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":208.5,"responseEnd":237.09999990463257,"responseStart":230.5,"secureConnectionStart":195.20000004768372},{"duration":260.89999985694885,"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":199.90000009536743,"connectEnd":199.90000009536743,"connectStart":199.90000009536743,"domainLookupEnd":199.90000009536743,"domainLookupStart":199.90000009536743,"fetchStart":199.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":237.79999995231628,"responseEnd":460.7999999523163,"responseStart":453.2999999523163,"secureConnectionStart":199.90000009536743},{"duration":261.09999990463257,"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":200,"connectEnd":200,"connectStart":200,"domainLookupEnd":200,"domainLookupStart":200,"fetchStart":200,"redirectEnd":0,"redirectStart":0,"requestStart":239.90000009536743,"responseEnd":461.09999990463257,"responseStart":454.7999999523163,"secureConnectionStart":200},{"duration":177.10000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":562.0999999046326,"connectEnd":562.0999999046326,"connectStart":562.0999999046326,"domainLookupEnd":562.0999999046326,"domainLookupStart":562.0999999046326,"fetchStart":562.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":709.0999999046326,"responseEnd":739.2000000476837,"responseStart":738.2999999523163,"secureConnectionStart":562.0999999046326},{"duration":104.20000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":777.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":777.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":882,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":31,"responseStart":187,"responseEnd":200,"domLoading":190,"domInteractive":930,"domContentLoadedEventStart":930,"domContentLoadedEventEnd":965,"domComplete":1472,"loadEventStart":1472,"loadEventEnd":1473,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":912.2999999523163},{"name":"bigPipe.sidebar-id.end","time":913.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":913.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":913.9000000953674},{"name":"activityTabFullyLoaded","time":979.7999999523163}],"measures":[],"correlationId":"f5335a67d253b9","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":83,"dbReadsTimeInMs":17,"dbConnsTimeInMs":27,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}