Skip to content

crash related with remove_repeats() #3377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
sanikolaev opened this issue May 12, 2025 · 0 comments
Closed
2 tasks done

crash related with remove_repeats() #3377

sanikolaev opened this issue May 12, 2025 · 0 comments
Assignees
Labels

Comments

@sanikolaev
Copy link
Collaborator

sanikolaev commented May 12, 2025

Bug Description:

mysql> drop table if exists t; create table t(f text, regnr int); insert into t values(1, 'abc from dataset 1', 1),(2, 'abc from dataset 1', 2),(1001, 'abc from dataset 2', 1); select REMOVE_REPEATS((select * from t where match('abc') order by regnr), regnr, 0, 10);
--------------
drop table if exists t
--------------

Query OK, 0 rows affected (0.00 sec)

--------------
create table t(f text, regnr int)
--------------

Query OK, 0 rows affected (0.00 sec)

--------------
insert into t values(1, 'abc from dataset 1', 1),(2, 'abc from dataset 1', 2),(1001, 'abc from dataset 2', 1)
--------------

Query OK, 3 rows affected (0.00 sec)

--------------
select REMOVE_REPEATS((select * from t where match('abc') order by regnr), regnr, 0, 10)
--------------

ERROR 2013 (HY000): Lost connection to MySQL server during query
No connection. Trying to reconnect...
ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (61)
ERROR:
Can't connect to the server

Manticore Search Version:

9.5.3

Operating System Version:

Macos

Have you tried the latest development version?

Yes

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

  • Implementation completed
  • Tests developed
@sanikolaev sanikolaev added the bug label May 12, 2025
klirichek added a commit that referenced this issue May 28, 2025
If select expression inside remove_repeats returns error
instead of result, whole statement caused crash.

ref: #3377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants