Skip to content
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

Test/alter distributed #2188

Merged
merged 6 commits into from
May 22, 2024
Merged

Test/alter distributed #2188

merged 6 commits into from
May 22, 2024

Conversation

PavelShilin89
Copy link
Contributor

Creating a test test-alter-tabled-distributed.rec for updating a distributed table in RT mode

@PavelShilin89 PavelShilin89 linked an issue May 16, 2024 that may be closed by this pull request
Copy link

clt

👎 CLT tests in test/clt-tests/plugins/
✅ OK: 0
❌ Failed: 1
⏳ Duration: 10s
👉 Check Action Results for commit 84fdb25
Failed tests:

test/clt-tests/plugins/test-enable-disable-buddy-plugin.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:17.543] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:17.544] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row"
––– output –––
*************************** 1. row ***************************
––– input –––
mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show"
––– output –––
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES"
––– output –––
ERROR 1064 (42000) at line 1: Plugin 'show' is disabled
––– input –––
mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-show"
––– output –––
––– input –––
mysql -h0 -P9306 -e "SHOW QUERIES\G"|grep "1. row"
––– output –––
*************************** 1. row ***************************
––– input –––
mysql -h0 -P9306 -e "create table t (id bigint, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')"
––– output –––
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
––– input –––
mysql -h0 -P9306 -e "DISABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn"
––– output –––
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––
ERROR 1064 (42000) at line 1: Plugin 'knn' is disabled
––– input –––
mysql -h0 -P9306 -e "ENABLE BUDDY PLUGIN manticoresoftware/buddy-plugin-knn"
––– output –––
––– input –––
mysql -h0 -P9306 -e "select id, knn_dist() from t where knn ( image_vector, 5, 1 );"
––– output –––

Copy link

clt

👎 CLT tests in test/clt-tests/replication/
✅ OK: 0
❌ Failed: 1
⏳ Duration: 38s
👉 Check Action Results for commit 84fdb25
Failed tests:

test/clt-tests/replication/replication-test.rec
––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
+ [Thu May 16 13:59:22.590 2024] [21] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [Thu May 16 13:59:22.591 2024] [21] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
- listening on all interfaces for mysql, port=%{NUMBER}
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for mysql, port=1306
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for sphinx and http(s), port=1308
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=2
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
+ [Thu May 16 13:59:22.717 2024] [54] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [Thu May 16 13:59:22.718 2024] [54] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
- listening on all interfaces for mysql, port=%{NUMBER}
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for mysql, port=2306
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for sphinx and http(s), port=2308
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=3
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
+ [Thu May 16 13:59:22.844 2024] [87] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [Thu May 16 13:59:22.846 2024] [87] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
- listening on all interfaces for mysql, port=%{NUMBER}
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for mysql, port=3306
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for sphinx and http(s), port=3308
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=4
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
+ [Thu May 16 13:59:22.971 2024] [120] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [Thu May 16 13:59:22.973 2024] [120] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
- listening on all interfaces for mysql, port=%{NUMBER}
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for mysql, port=4306
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for sphinx and http(s), port=4308
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export INSTANCE=5
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
+ [Thu May 16 13:59:23.098 2024] [153] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [Thu May 16 13:59:23.101 2024] [153] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
- listening on all interfaces for mysql, port=%{NUMBER}
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for mysql, port=5306
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for sphinx and http(s), port=5308
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
mysql -h0 -P1306 -e "create cluster ${CLUSTER_NAME}"
––– output –––
––– input –––
mysql -h0 -P1306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
export CLUSTER_NAME=replication
––– output –––
––– input –––
for n in `seq 2 $INSTANCE`; do mysql -h0 -P${n}306 -e "join cluster ${CLUSTER_NAME} at '127.0.0.1:1312'"; done;
––– output –––
––– input –––
mysql -h0 -P${INSTANCE}306 -e "show status like 'cluster_${CLUSTER_NAME}_status'\G"
––– output –––
*************************** 1. row ***************************
Counter: cluster_#!/[a-z]+/!#_status
Value: primary
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE testrt (title text, content text, gid uint);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860993,'List of HP business laptops','Elitebook Probook',1);" && mysql -h0 -P1306 -e "INSERT INTO testrt VALUES(6775836565403860994,'List of Dell business laptops','Latitude Precision Vostro',2);" && mysql -h0 -P1306 -e "ALTER CLUSTER replication ADD testrt;" && mysql -h0 -P1306 -e "SHOW STATUS LIKE 'cluster_replication_indexes';"
––– output –––
+-----------------------------+--------+
| Counter                     | Value  |
+-----------------------------+--------+
| cluster_replication_indexes | testrt |
+-----------------------------+--------+
––– input –––
mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
*************************** 1. row ***************************
id: 6775836565403860993
title: List of HP business laptops
content: Elitebook Probook
gid: 1
*************************** 2. row ***************************
id: 6775836565403860994
title: List of Dell business laptops
content: Latitude Precision Vostro
gid: 2
––– input –––
export INSTANCE=5
––– output –––
––– input –––
searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
+ [59:28.404] [224] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER}
+ [59:28.405] [224] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
+ [59:28.407] [224] stop: successfully sent SIGTERM to pid 159
––– input –––
mysql -h0 -P1306 -e "INSERT INTO replication:testrt VALUES(6775836565403860995,'List of HP business laptops','Macbook',3);"; echo $?
––– output –––
0
––– input –––
export INSTANCE=5
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
+ [Thu May 16 13:59:30.194 2024] [229] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [Thu May 16 13:59:30.196 2024] [229] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
- listening on all interfaces for mysql, port=%{NUMBER}
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for mysql, port=5306
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for sphinx and http(s), port=5308
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
sleep 5; mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
*************************** 1. row ***************************
id: 6775836565403860993
title: List of HP business laptops
content: Elitebook Probook
gid: 1
*************************** 2. row ***************************
id: 6775836565403860994
title: List of Dell business laptops
content: Latitude Precision Vostro
gid: 2
*************************** 3. row ***************************
id: 6775836565403860995
title: List of HP business laptops
content: Macbook
gid: 3
––– input –––
export INSTANCE=2
––– output –––
––– input –––
searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
+ [59:35.327] [270] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER}
+ [59:35.328] [270] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
+ [59:35.329] [270] stop: successfully sent SIGTERM to pid 60
––– input –––
mysql -h0 -P3306 -e "INSERT INTO replication:testrt VALUES(6775836565403860996,'NEW','TABLE',4);"; echo $?
––– output –––
0
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
+ [Thu May 16 13:59:35.863 2024] [275] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [Thu May 16 13:59:35.865 2024] [275] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
- listening on all interfaces for mysql, port=%{NUMBER}
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for mysql, port=2306
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for sphinx and http(s), port=2308
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
sleep 5;mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
*************************** 1. row ***************************
id: 6775836565403860993
title: List of HP business laptops
content: Elitebook Probook
gid: 1
*************************** 2. row ***************************
id: 6775836565403860994
title: List of Dell business laptops
content: Latitude Precision Vostro
gid: 2
*************************** 3. row ***************************
id: 6775836565403860995
title: List of HP business laptops
content: Macbook
gid: 3
*************************** 4. row ***************************
id: 6775836565403860996
title: NEW
content: TABLE
gid: 4
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
*************************** 1. row ***************************
id: 6775836565403860993
title: List of HP business laptops
content: Elitebook Probook
gid: 1
*************************** 2. row ***************************
id: 6775836565403860994
title: List of Dell business laptops
content: Latitude Precision Vostro
gid: 2
*************************** 3. row ***************************
id: 6775836565403860995
title: List of HP business laptops
content: Macbook
gid: 3
*************************** 4. row ***************************
id: 6775836565403860996
title: NEW
content: TABLE
gid: 4
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
*************************** 1. row ***************************
id: 6775836565403860993
title: List of HP business laptops
content: Elitebook Probook
gid: 1
*************************** 2. row ***************************
id: 6775836565403860994
title: List of Dell business laptops
content: Latitude Precision Vostro
gid: 2
*************************** 3. row ***************************
id: 6775836565403860995
title: List of HP business laptops
content: Macbook
gid: 3
*************************** 4. row ***************************
id: 6775836565403860996
title: NEW
content: TABLE
gid: 4
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC\G"
––– output –––
*************************** 1. row ***************************
id: 6775836565403860993
title: List of HP business laptops
content: Elitebook Probook
gid: 1
*************************** 2. row ***************************
id: 6775836565403860994
title: List of Dell business laptops
content: Latitude Precision Vostro
gid: 2
*************************** 3. row ***************************
id: 6775836565403860995
title: List of HP business laptops
content: Macbook
gid: 3
*************************** 4. row ***************************
id: 6775836565403860996
title: NEW
content: TABLE
gid: 4
––– input –––
export INSTANCE=4
––– output –––
––– input –––
searchd --stopwait -c test/clt-tests/base/searchd-with-flexible-ports.conf
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
+ [59:41.028] [319] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] stop: successfully sent SIGTERM to pid %{NUMBER}
+ [59:41.030] [319] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
+ [59:41.031] [319] stop: successfully sent SIGTERM to pid 126
––– input –––
sleep 5;mysql -h0 -P2306 -e "DELETE FROM replication:testrt WHERE id = 6775836565403860994"; echo $?
––– output –––
0
––– input –––
mysql -h0 -P2306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_2306.txt;
––– output –––
––– input –––
export INSTANCE=4
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
+ [Thu May 16 13:59:47.129 2024] [326] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [Thu May 16 13:59:47.131 2024] [326] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
- listening on all interfaces for mysql, port=%{NUMBER}
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for mysql, port=4306
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for sphinx and http(s), port=4308
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
sleep 5;mysql -h0 -P1306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_1306.txt;
––– output –––
––– input –––
mysql -h0 -P3306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_3306.txt;
––– output –––
––– input –––
mysql -h0 -P4306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_4306.txt;
––– output –––
––– input –––
mysql -h0 -P5306 -e "SELECT * FROM testrt ORDER BY id ASC" > /tmp/output_5306.txt;
––– output –––
––– input –––
diff /tmp/output_1306.txt /tmp/output_2306.txt; echo $?
––– output –––
0
––– input –––
diff /tmp/output_1306.txt /tmp/output_3306.txt; echo $?
––– output –––
0
––– input –––
diff /tmp/output_1306.txt /tmp/output_4306.txt; echo $?
––– output –––
0
––– input –––
diff /tmp/output_1306.txt /tmp/output_5306.txt; echo $?
––– output –––
0

Copy link

clt

👎 CLT tests in test/clt-tests/mysqldump/mysql/ test/clt-tests/mysqldump/maria/
✅ OK: 0
❌ Failed: 14
⏳ Duration: 59s
👉 Check Action Results for commit 84fdb25
Failed tests:

test/clt-tests/mysqldump/mysql/random-1m-dump-restore.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:29.612] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:29.612] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
./test/clt-tests/mysqldump/scripts/generate-records.sh 1000000 | mysql -h0 -P9306
––– output –––
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
+-------+------+
| Index | Type |
+-------+------+
| t     | rt   |
+-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
+----------+
| count(*) |
+----------+
|  1000007 |
+----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
+------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
| id   | f                                                                                                  | a      | b                 | j                                            | m                                | s                                                                                                  | e    | d          | v          | fv                |
+------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
|    1 |                                                                                                    |      0 |          0.000000 | NULL                                         |                                  |                                                                                                    |    0 |          0 |            |                   |
|    2 | '                                                                                                  |      0 |          0.000000 | NULL                                         |                                  |                                                                                                    |    0 |          0 |            |                   |
|    3 | "                                                                                                  |      0 |          0.000000 | NULL                                         |                                  |                                                                                                    |    0 |          0 |            |                   |
|    4 |                                                                                                    |      0 |          0.000000 | NULL                                         |                                  | '                                                                                                  |    0 |          0 |            |                   |
|    5 |                                                                                                    |      0 |          0.000000 | NULL                                         |                                  | "                                                                                                  |    0 |          0 |            |                   |
|    6 |                                                                                                    |      0 |          0.000000 | {"a":"'","b":"","c":"'"}                     |                                  |                                                                                                    |    0 |          0 |            |                   |
|    7 |                                                                                                    |      0 |          0.000000 | {"a":"\"","b":"\"","c":"\""}                 |                                  |                                                                                                    |    0 |          0 |            |                   |
|    8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 |  912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |    1 |  538847777 | 1617199777 | 1258482176.000000 |
|    9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb          | 198907 |    8841452.000000 | {"a":[21374549,321067876],"b":333059460}     | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb          |    1 |  782785729 | 954464984  | 696490880.000000  |
|   10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                     |  91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479}  | 427690075,1407612830,1714474875  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                     |    1 | 1649242630 | 308109277  | 27668260.000000   |
|   11 | bbbbbbbbbbbbbbbbbb                                                                                 | 121311 |  121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb                                                                                 |    1 |  801766056 | 1127147375 | 107321288.000000  |
|   12 | bbbbbbbbbbbbbb                                                                                     | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017}  | 185371603,608681734,1167859658   | bbbbbbbbbbbbbb                                                                                     |    1 | 1213118476 | 2124217000 | 406914176.000000  |
|   13 | bbbbbbbbbb                                                                                         |  95482 |  898241728.000000 | {"a":[272656722,1663615544],"b":1624186067}  | 116478871,552875970,1092517015   | bbbbbbbbbb                                                                                         |    0 | 1239989597 | 551802408  | 152522160.000000  |
|   14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                                    |  68119 |  661707200.000000 | {"a":[94304443,2086306634],"b":543066914}    | 578274552,1237733450,2002653905  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                                    |    1 | 1710306734 | 167580149  | 2017031680.000000 |
|   15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                     |  32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609}     | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                     |    0 | 1518500442 | 1228024866 | 1438869760.000000 |
|   16 | bbbb                                                                                               | 127656 |  144601936.000000 | {"a":[407695664,2063437019],"b":917328502}   | 645985148,1065653647,1744659471  | bbbb                                                                                               |    0 |  314320885 | 1525544836 | 219136976.000000  |
|   17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb              |  42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902}  | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb              |    1 |  284197670 | 454491894  | 202294912.000000  |
|   18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                              | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639}   | 107468665,411366113,991124073    | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                              |    0 |  245327580 | 1944713760 | 1201735552.000000 |
|   19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb      |  32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528}  | 24970160,1819190943,2021816520   | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb      |    1 | 1341382959 | 283037034  | 1458644736.000000 |
|   20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                       |  48474 |   62408120.000000 | {"a":[1200217209,500666982],"b":2116623760}  | 328478084,504655829,1689585645   | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                       |    1 |  920211881 | 229395197  | 1011787776.000000 |
+------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
+--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
| id     | f                                                                                        | a     | b                 | j                                            | m                                | s                                                                                        | e    | d          | v          | fv                |
+--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
| 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045}    | 666308965,793633956,1624548711   | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                |    1 |  588151338 | 406821193  | 773609408.000000  |
| 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                   | 18530 |   73274912.000000 | {"a":[816141442,918325205],"b":2062405755}   | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                   |    1 |  870968417 | 1475821866 | 1640329728.000000 |
| 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                   | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718   | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                   |    0 |  854965440 | 592918187  | 285162528.000000  |
| 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb    | 18530 |  145746032.000000 | {"a":[1175180019,908317885],"b":714847903}   | 941943997,1067162740,1657879898  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb    |    0 | 1621714577 | 1797192220 | 156542576.000000  |
| 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                 | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270}  | 137916339,235649611,282680287    | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                 |    1 | 1163005682 | 1150206046 | 19527630.000000   |
| 940423 | bbbbbbbbbbb                                                                              | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421}  | 22419487,1048905278,1803379504   | bbbbbbbbbbb                                                                              |    0 |  236272949 | 1489922324 | 397749184.000000  |
| 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211}   | 322653768,1622545118,1637144759  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |    1 |   78946493 | 431047209  | 582783936.000000  |
+--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysqldump -h0 -P9306 Manticore 2>/dev/null 1> /tmp/all-databases.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e "drop table t"
––– output –––
––– input –––
mysql -h0 -P9306 < /tmp/all-databases.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'show tables'
––– output –––
+-------+------+
| Index | Type |
+-------+------+
| t     | rt   |
+-------+------+
––– input –––
mysql -h0 -P9306 -e 'select count(*) from t'
––– output –––
+----------+
| count(*) |
+----------+
|  1000007 |
+----------+
––– input –––
mysql -h0 -P9306 -e "select * from t order by id asc limit 20"
––– output –––
+------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
| id   | f                                                                                                  | a      | b                 | j                                            | m                                | s                                                                                                  | e    | d          | v          | fv                |
+------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
|    1 |                                                                                                    |      0 |          0.000000 | NULL                                         |                                  |                                                                                                    |    0 |          0 |            |                   |
|    2 | '                                                                                                  |      0 |          0.000000 | NULL                                         |                                  |                                                                                                    |    0 |          0 |            |                   |
|    3 | "                                                                                                  |      0 |          0.000000 | NULL                                         |                                  |                                                                                                    |    0 |          0 |            |                   |
|    4 |                                                                                                    |      0 |          0.000000 | NULL                                         |                                  | '                                                                                                  |    0 |          0 |            |                   |
|    5 |                                                                                                    |      0 |          0.000000 | NULL                                         |                                  | "                                                                                                  |    0 |          0 |            |                   |
|    6 |                                                                                                    |      0 |          0.000000 | {"a":"'","b":"","c":"'"}                     |                                  |                                                                                                    |    0 |          0 |            |                   |
|    7 |                                                                                                    |      0 |          0.000000 | {"a":"\"","b":"\"","c":"\""}                 |                                  |                                                                                                    |    0 |          0 |            |                   |
|    8 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 139090 |  912626112.000000 | {"a":[2140855600,1509344502],"b":1114121522} | 928973100,1245670504,1413286320  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |    1 |  538847777 | 1617199777 | 1258482176.000000 |
|    9 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb          | 198907 |    8841452.000000 | {"a":[21374549,321067876],"b":333059460}     | 1274214921,1499886331,1977497504 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb          |    1 |  782785729 | 954464984  | 696490880.000000  |
|   10 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                     |  91421 | 1982302976.000000 | {"a":[1039865880,1000430726],"b":900846479}  | 427690075,1407612830,1714474875  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                     |    1 | 1649242630 | 308109277  | 27668260.000000   |
|   11 | bbbbbbbbbbbbbbbbbb                                                                                 | 121311 |  121581552.000000 | {"a":[1820436984,1682929863],"b":1502056736} | 1581765396,1654516653,1925375373 | bbbbbbbbbbbbbbbbbb                                                                                 |    1 |  801766056 | 1127147375 | 107321288.000000  |
|   12 | bbbbbbbbbbbbbb                                                                                     | 191122 | 1229779968.000000 | {"a":[372959725,1851192973],"b":1660390017}  | 185371603,608681734,1167859658   | bbbbbbbbbbbbbb                                                                                     |    1 | 1213118476 | 2124217000 | 406914176.000000  |
|   13 | bbbbbbbbbb                                                                                         |  95482 |  898241728.000000 | {"a":[272656722,1663615544],"b":1624186067}  | 116478871,552875970,1092517015   | bbbbbbbbbb                                                                                         |    0 | 1239989597 | 551802408  | 152522160.000000  |
|   14 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                                    |  68119 |  661707200.000000 | {"a":[94304443,2086306634],"b":543066914}    | 578274552,1237733450,2002653905  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                                    |    1 | 1710306734 | 167580149  | 2017031680.000000 |
|   15 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                     |  32982 | 1377983488.000000 | {"a":[496823143,416865286],"b":91350609}     | 1599607162,1936289567,2053679064 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                     |    0 | 1518500442 | 1228024866 | 1438869760.000000 |
|   16 | bbbb                                                                                               | 127656 |  144601936.000000 | {"a":[407695664,2063437019],"b":917328502}   | 645985148,1065653647,1744659471  | bbbb                                                                                               |    0 |  314320885 | 1525544836 | 219136976.000000  |
|   17 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb              |  42017 | 1793538432.000000 | {"a":[813865368,1069542460],"b":1420434902}  | 1064502376,1165315561,1267507259 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb              |    1 |  284197670 | 454491894  | 202294912.000000  |
|   18 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                              | 187471 | 1981036928.000000 | {"a":[364450401,1780265560],"b":754576639}   | 107468665,411366113,991124073    | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                              |    0 |  245327580 | 1944713760 | 1201735552.000000 |
|   19 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb      |  32712 | 1558907136.000000 | {"a":[1912418574,1670100966],"b":239810528}  | 24970160,1819190943,2021816520   | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb      |    1 | 1341382959 | 283037034  | 1458644736.000000 |
|   20 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                       |  48474 |   62408120.000000 | {"a":[1200217209,500666982],"b":2116623760}  | 328478084,504655829,1689585645   | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                       |    1 |  920211881 | 229395197  | 1011787776.000000 |
+------+----------------------------------------------------------------------------------------------------+--------+-------------------+----------------------------------------------+----------------------------------+----------------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
––– input –––
mysql -h0 -P9306 -e "select * from t where s = 'Psm' order by id asc limit 20"
––– output –––
––– input –––
mysql -h0 -P9306 -e "select * from t where a = 18530 order by id asc limit 20"
––– output –––
+--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
| id     | f                                                                                        | a     | b                 | j                                            | m                                | s                                                                                        | e    | d          | v          | fv                |
+--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
| 357155 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                | 18530 | 1850545024.000000 | {"a":[787564513,814788001],"b":363013045}    | 666308965,793633956,1624548711   | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                |    1 |  588151338 | 406821193  | 773609408.000000  |
| 481679 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                   | 18530 |   73274912.000000 | {"a":[816141442,918325205],"b":2062405755}   | 1225288528,1329456945,2097512737 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                                   |    1 |  870968417 | 1475821866 | 1640329728.000000 |
| 485741 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                   | 18530 | 1540117760.000000 | {"a":[1951872704,1354733051],"b":1622399792} | 135700385,959852353,1284565718   | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                                   |    0 |  854965440 | 592918187  | 285162528.000000  |
| 604791 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb    | 18530 |  145746032.000000 | {"a":[1175180019,908317885],"b":714847903}   | 941943997,1067162740,1657879898  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb    |    0 | 1621714577 | 1797192220 | 156542576.000000  |
| 750483 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                 | 18530 | 1497546624.000000 | {"a":[1337881463,1230516838],"b":320292270}  | 137916339,235649611,282680287    | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb                 |    1 | 1163005682 | 1150206046 | 19527630.000000   |
| 940423 | bbbbbbbbbbb                                                                              | 18530 | 1721428992.000000 | {"a":[1431872459,532079991],"b":1821473421}  | 22419487,1048905278,1803379504   | bbbbbbbbbbb                                                                              |    0 |  236272949 | 1489922324 | 397749184.000000  |
| 957230 | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | 18530 | 1160392192.000000 | {"a":[877572928,1449850277],"b":612177211}   | 322653768,1622545118,1637144759  | bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |    1 |   78946493 | 431047209  | 582783936.000000  |
+--------+------------------------------------------------------------------------------------------+-------+-------------------+----------------------------------------------+----------------------------------+------------------------------------------------------------------------------------------+------+------------+------------+-------------------+
test/clt-tests/mysqldump/mysql/mcl-all-multi64.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:18.888] [23] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:18.888] [23] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi64-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit 20'
––– output –––
+------+--------------------------------------------------------+
| id   | value                                                  |
+------+--------------------------------------------------------+
|   20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
|   19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
|    9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
|    1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
|    2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
|   10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
|    3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
|   11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
|    4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
|   12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
|   13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
|    5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
|   14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
|    6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
|   15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
|    7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
|   16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
|    8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
|   17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
|   18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
+------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi64 limit -1'
––– output –––
+------+----------------------------------------------------------+
| id   | value                                                    |
+------+----------------------------------------------------------+
| 9    | (1000000041,1000000042,1000000043,1000000044,1000000045) |
| 10   | (1000000046,1000000047,1000000048,1000000049,1000000050) |
| 11   | (1000000051,1000000052,1000000053,1000000054,1000000055) |
| 12   | (1000000056,1000000057,1000000058,1000000059,1000000060) |
| 13   | (1000000061,1000000062,1000000063,1000000064,1000000065) |
| 14   | (1000000066,1000000067,1000000068,1000000069,1000000070) |
| 15   | (1000000071,1000000072,1000000073,1000000074,1000000075) |
| 16   | (1000000076,1000000077,1000000078,1000000079,1000000080) |
| 17   | (1000000081,1000000082,1000000083,1000000084,1000000085) |
| 18   | (1000000086,1000000087,1000000088,1000000089,1000000090) |
| 1    | (1000000001,1000000002,1000000003,1000000004,1000000005) |
| 2    | (1000000006,1000000007,1000000008,1000000009,1000000010) |
| 3    | (1000000011,1000000012,1000000013,1000000014,1000000015) |
| 4    | (1000000016,1000000017,1000000018,1000000019,1000000020) |
| 5    | (1000000021,1000000022,1000000023,1000000024,1000000025) |
| 6    | (1000000026,1000000027,1000000028,1000000029,1000000030) |
| 7    | (1000000031,1000000032,1000000033,1000000034,1000000035) |
| 8    | (1000000036,1000000037,1000000038,1000000039,1000000040) |
| 19   | (1000000091,1000000092,1000000093,1000000094,1000000095) |
| 20   | (1000000096,1000000097,1000000098,1000000099,1000000100) |
+------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi64'
––– output –––
+------+----------------------------------------------------------+
| id   | value                                                    |
+------+----------------------------------------------------------+
| 9    | (1000000041,1000000042,1000000043,1000000044,1000000045) |
| 10   | (1000000046,1000000047,1000000048,1000000049,1000000050) |
| 11   | (1000000051,1000000052,1000000053,1000000054,1000000055) |
| 12   | (1000000056,1000000057,1000000058,1000000059,1000000060) |
| 13   | (1000000061,1000000062,1000000063,1000000064,1000000065) |
| 14   | (1000000066,1000000067,1000000068,1000000069,1000000070) |
| 15   | (1000000071,1000000072,1000000073,1000000074,1000000075) |
| 16   | (1000000076,1000000077,1000000078,1000000079,1000000080) |
| 17   | (1000000081,1000000082,1000000083,1000000084,1000000085) |
| 18   | (1000000086,1000000087,1000000088,1000000089,1000000090) |
| 1    | (1000000001,1000000002,1000000003,1000000004,1000000005) |
| 2    | (1000000006,1000000007,1000000008,1000000009,1000000010) |
| 3    | (1000000011,1000000012,1000000013,1000000014,1000000015) |
| 4    | (1000000016,1000000017,1000000018,1000000019,1000000020) |
| 5    | (1000000021,1000000022,1000000023,1000000024,1000000025) |
| 6    | (1000000026,1000000027,1000000028,1000000029,1000000030) |
| 7    | (1000000031,1000000032,1000000033,1000000034,1000000035) |
| 8    | (1000000036,1000000037,1000000038,1000000039,1000000040) |
| 19   | (1000000091,1000000092,1000000093,1000000094,1000000095) |
| 20   | (1000000096,1000000097,1000000098,1000000099,1000000100) |
+------+----------------------------------------------------------+
test/clt-tests/mysqldump/mysql/mcl-only-json.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:22.767] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:22.767] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_json'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/json-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_json'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit 20'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
|   20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"}                  |
|   19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"}                         |
|    9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"}                    |
|    1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"}                           |
|    2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"}                          |
|   10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"}           |
|    3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"}                                 |
|   11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2}   |
|    4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"}                          |
|   12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
|   13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"}                     |
|    5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"}      |
|   14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"}  |
|    6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"}           |
|   15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"}                           |
|    7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"}                              |
|   16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"}         |
|    8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"}                |
|   17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"}                           |
|   18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"}                             |
+------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_json limit -1'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
| 9    |                    {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
| 10   |           {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
| 11   |   {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
| 12   | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
| 13   |                     {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
| 14   |  {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
| 15   |                           {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
| 16   |         {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
| 17   |                           {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
| 18   |                             {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
| 1    |                           {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
| 2    |                          {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
| 3    |                                 {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
| 4    |                          {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
| 5    |      {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
| 6    |           {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
| 7    |                              {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
| 8    |                {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
| 19   |                         {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
| 20   |                  {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
+------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_json'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
| 9    |                    {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
| 10   |           {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
| 11   |   {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
| 12   | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
| 13   |                     {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
| 14   |  {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
| 15   |                           {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
| 16   |         {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
| 17   |                           {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
| 18   |                             {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
| 1    |                           {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
| 2    |                          {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
| 3    |                                 {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
| 4    |                          {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
| 5    |      {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
| 6    |           {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
| 7    |                              {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
| 8    |                {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
| 19   |                         {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
| 20   |                  {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
+------+---------------------------------------------------------------------------------------------+
test/clt-tests/mysqldump/mysql/mcl-only-multi.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:23.749] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:23.749] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit 20'
––– output –––
+------+-----------------+
| id   | value           |
+------+-----------------+
|   20 | 96,97,98,99,100 |
|   19 | 91,92,93,94,95  |
|    9 | 41,42,43,44,45  |
|    1 | 1,2,3,4,5       |
|    2 | 6,7,8,9,10      |
|   10 | 46,47,48,49,50  |
|    3 | 11,12,13,14,15  |
|   11 | 51,52,53,54,55  |
|    4 | 16,17,18,19,20  |
|   12 | 56,57,58,59,60  |
|   13 | 61,62,63,64,65  |
|    5 | 21,22,23,24,25  |
|   14 | 66,67,68,69,70  |
|    6 | 26,27,28,29,30  |
|   15 | 71,72,73,74,75  |
|    7 | 31,32,33,34,35  |
|   16 | 76,77,78,79,80  |
|    8 | 36,37,38,39,40  |
|   17 | 81,82,83,84,85  |
|   18 | 86,87,88,89,90  |
+------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi limit -1'
––– output –––
+------+-------------------+
| id   | value             |
+------+-------------------+
| 9    |  (41,42,43,44,45) |
| 10   |  (46,47,48,49,50) |
| 11   |  (51,52,53,54,55) |
| 12   |  (56,57,58,59,60) |
| 13   |  (61,62,63,64,65) |
| 14   |  (66,67,68,69,70) |
| 15   |  (71,72,73,74,75) |
| 16   |  (76,77,78,79,80) |
| 17   |  (81,82,83,84,85) |
| 18   |  (86,87,88,89,90) |
| 1    |       (1,2,3,4,5) |
| 2    |      (6,7,8,9,10) |
| 3    |  (11,12,13,14,15) |
| 4    |  (16,17,18,19,20) |
| 5    |  (21,22,23,24,25) |
| 6    |  (26,27,28,29,30) |
| 7    |  (31,32,33,34,35) |
| 8    |  (36,37,38,39,40) |
| 19   |  (91,92,93,94,95) |
| 20   | (96,97,98,99,100) |
+------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi'
––– output –––
+------+-------------------+
| id   | value             |
+------+-------------------+
| 9    |  (41,42,43,44,45) |
| 10   |  (46,47,48,49,50) |
| 11   |  (51,52,53,54,55) |
| 12   |  (56,57,58,59,60) |
| 13   |  (61,62,63,64,65) |
| 14   |  (66,67,68,69,70) |
| 15   |  (71,72,73,74,75) |
| 16   |  (76,77,78,79,80) |
| 17   |  (81,82,83,84,85) |
| 18   |  (86,87,88,89,90) |
| 1    |       (1,2,3,4,5) |
| 2    |      (6,7,8,9,10) |
| 3    |  (11,12,13,14,15) |
| 4    |  (16,17,18,19,20) |
| 5    |  (21,22,23,24,25) |
| 6    |  (26,27,28,29,30) |
| 7    |  (31,32,33,34,35) |
| 8    |  (36,37,38,39,40) |
| 19   |  (91,92,93,94,95) |
| 20   | (96,97,98,99,100) |
+------+-------------------+
test/clt-tests/mysqldump/mysql/no-mcl-multi.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:26.705] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:26.705] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit 20'
––– output –––
+------+-----------------+
| id   | value           |
+------+-----------------+
|   20 | 96,97,98,99,100 |
|   19 | 91,92,93,94,95  |
|    9 | 41,42,43,44,45  |
|    1 | 1,2,3,4,5       |
|    2 | 6,7,8,9,10      |
|   10 | 46,47,48,49,50  |
|    3 | 11,12,13,14,15  |
|   11 | 51,52,53,54,55  |
|    4 | 16,17,18,19,20  |
|   12 | 56,57,58,59,60  |
|   13 | 61,62,63,64,65  |
|    5 | 21,22,23,24,25  |
|   14 | 66,67,68,69,70  |
|    6 | 26,27,28,29,30  |
|   15 | 71,72,73,74,75  |
|    7 | 31,32,33,34,35  |
|   16 | 76,77,78,79,80  |
|    8 | 36,37,38,39,40  |
|   17 | 81,82,83,84,85  |
|   18 | 86,87,88,89,90  |
+------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi limit -1'
––– output –––
+------+-------------------+
| id   | value             |
+------+-------------------+
| 9    |  (41,42,43,44,45) |
| 10   |  (46,47,48,49,50) |
| 11   |  (51,52,53,54,55) |
| 12   |  (56,57,58,59,60) |
| 13   |  (61,62,63,64,65) |
| 14   |  (66,67,68,69,70) |
| 15   |  (71,72,73,74,75) |
| 16   |  (76,77,78,79,80) |
| 17   |  (81,82,83,84,85) |
| 18   |  (86,87,88,89,90) |
| 1    |       (1,2,3,4,5) |
| 2    |      (6,7,8,9,10) |
| 3    |  (11,12,13,14,15) |
| 4    |  (16,17,18,19,20) |
| 5    |  (21,22,23,24,25) |
| 6    |  (26,27,28,29,30) |
| 7    |  (31,32,33,34,35) |
| 8    |  (36,37,38,39,40) |
| 19   |  (91,92,93,94,95) |
| 20   | (96,97,98,99,100) |
+------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi'
––– output –––
+------+-------------------+
| id   | value             |
+------+-------------------+
| 9    |  (41,42,43,44,45) |
| 10   |  (46,47,48,49,50) |
| 11   |  (51,52,53,54,55) |
| 12   |  (56,57,58,59,60) |
| 13   |  (61,62,63,64,65) |
| 14   |  (66,67,68,69,70) |
| 15   |  (71,72,73,74,75) |
| 16   |  (76,77,78,79,80) |
| 17   |  (81,82,83,84,85) |
| 18   |  (86,87,88,89,90) |
| 1    |       (1,2,3,4,5) |
| 2    |      (6,7,8,9,10) |
| 3    |  (11,12,13,14,15) |
| 4    |  (16,17,18,19,20) |
| 5    |  (21,22,23,24,25) |
| 6    |  (26,27,28,29,30) |
| 7    |  (31,32,33,34,35) |
| 8    |  (36,37,38,39,40) |
| 19   |  (91,92,93,94,95) |
| 20   | (96,97,98,99,100) |
+------+-------------------+
test/clt-tests/mysqldump/mysql/mcl-id-multi.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:20.828] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:20.828] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit 20'
––– output –––
+------+-----------------+
| id   | value           |
+------+-----------------+
|   20 | 96,97,98,99,100 |
|   19 | 91,92,93,94,95  |
|    9 | 41,42,43,44,45  |
|    1 | 1,2,3,4,5       |
|    2 | 6,7,8,9,10      |
|   10 | 46,47,48,49,50  |
|    3 | 11,12,13,14,15  |
|   11 | 51,52,53,54,55  |
|    4 | 16,17,18,19,20  |
|   12 | 56,57,58,59,60  |
|   13 | 61,62,63,64,65  |
|    5 | 21,22,23,24,25  |
|   14 | 66,67,68,69,70  |
|    6 | 26,27,28,29,30  |
|   15 | 71,72,73,74,75  |
|    7 | 31,32,33,34,35  |
|   16 | 76,77,78,79,80  |
|    8 | 36,37,38,39,40  |
|   17 | 81,82,83,84,85  |
|   18 | 86,87,88,89,90  |
+------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi limit -1'
––– output –––
+------+-------------------+
| id   | value             |
+------+-------------------+
| 9    |  (41,42,43,44,45) |
| 10   |  (46,47,48,49,50) |
| 11   |  (51,52,53,54,55) |
| 12   |  (56,57,58,59,60) |
| 13   |  (61,62,63,64,65) |
| 14   |  (66,67,68,69,70) |
| 15   |  (71,72,73,74,75) |
| 16   |  (76,77,78,79,80) |
| 17   |  (81,82,83,84,85) |
| 18   |  (86,87,88,89,90) |
| 1    |       (1,2,3,4,5) |
| 2    |      (6,7,8,9,10) |
| 3    |  (11,12,13,14,15) |
| 4    |  (16,17,18,19,20) |
| 5    |  (21,22,23,24,25) |
| 6    |  (26,27,28,29,30) |
| 7    |  (31,32,33,34,35) |
| 8    |  (36,37,38,39,40) |
| 19   |  (91,92,93,94,95) |
| 20   | (96,97,98,99,100) |
+------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi'
––– output –––
+------+-------------------+
| id   | value             |
+------+-------------------+
| 9    |  (41,42,43,44,45) |
| 10   |  (46,47,48,49,50) |
| 11   |  (51,52,53,54,55) |
| 12   |  (56,57,58,59,60) |
| 13   |  (61,62,63,64,65) |
| 14   |  (66,67,68,69,70) |
| 15   |  (71,72,73,74,75) |
| 16   |  (76,77,78,79,80) |
| 17   |  (81,82,83,84,85) |
| 18   |  (86,87,88,89,90) |
| 1    |       (1,2,3,4,5) |
| 2    |      (6,7,8,9,10) |
| 3    |  (11,12,13,14,15) |
| 4    |  (16,17,18,19,20) |
| 5    |  (21,22,23,24,25) |
| 6    |  (26,27,28,29,30) |
| 7    |  (31,32,33,34,35) |
| 8    |  (36,37,38,39,40) |
| 19   |  (91,92,93,94,95) |
| 20   | (96,97,98,99,100) |
+------+-------------------+
test/clt-tests/mysqldump/mysql/mcl-only-multi64.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:24.721] [23] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:24.721] [23] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_only_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-only/multi64-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_only_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit 20'
––– output –––
+------+--------------------------------------------------------+
| id   | value                                                  |
+------+--------------------------------------------------------+
|   20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
|   19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
|    9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
|    1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
|    2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
|   10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
|    3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
|   11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
|    4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
|   12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
|   13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
|    5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
|   14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
|    6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
|   15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
|    7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
|   16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
|    8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
|   17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
|   18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
+------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_only_multi64 limit -1'
––– output –––
+------+----------------------------------------------------------+
| id   | value                                                    |
+------+----------------------------------------------------------+
| 9    | (1000000041,1000000042,1000000043,1000000044,1000000045) |
| 10   | (1000000046,1000000047,1000000048,1000000049,1000000050) |
| 11   | (1000000051,1000000052,1000000053,1000000054,1000000055) |
| 12   | (1000000056,1000000057,1000000058,1000000059,1000000060) |
| 13   | (1000000061,1000000062,1000000063,1000000064,1000000065) |
| 14   | (1000000066,1000000067,1000000068,1000000069,1000000070) |
| 15   | (1000000071,1000000072,1000000073,1000000074,1000000075) |
| 16   | (1000000076,1000000077,1000000078,1000000079,1000000080) |
| 17   | (1000000081,1000000082,1000000083,1000000084,1000000085) |
| 18   | (1000000086,1000000087,1000000088,1000000089,1000000090) |
| 1    | (1000000001,1000000002,1000000003,1000000004,1000000005) |
| 2    | (1000000006,1000000007,1000000008,1000000009,1000000010) |
| 3    | (1000000011,1000000012,1000000013,1000000014,1000000015) |
| 4    | (1000000016,1000000017,1000000018,1000000019,1000000020) |
| 5    | (1000000021,1000000022,1000000023,1000000024,1000000025) |
| 6    | (1000000026,1000000027,1000000028,1000000029,1000000030) |
| 7    | (1000000031,1000000032,1000000033,1000000034,1000000035) |
| 8    | (1000000036,1000000037,1000000038,1000000039,1000000040) |
| 19   | (1000000091,1000000092,1000000093,1000000094,1000000095) |
| 20   | (1000000096,1000000097,1000000098,1000000099,1000000100) |
+------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_only_multi64'
––– output –––
+------+----------------------------------------------------------+
| id   | value                                                    |
+------+----------------------------------------------------------+
| 9    | (1000000041,1000000042,1000000043,1000000044,1000000045) |
| 10   | (1000000046,1000000047,1000000048,1000000049,1000000050) |
| 11   | (1000000051,1000000052,1000000053,1000000054,1000000055) |
| 12   | (1000000056,1000000057,1000000058,1000000059,1000000060) |
| 13   | (1000000061,1000000062,1000000063,1000000064,1000000065) |
| 14   | (1000000066,1000000067,1000000068,1000000069,1000000070) |
| 15   | (1000000071,1000000072,1000000073,1000000074,1000000075) |
| 16   | (1000000076,1000000077,1000000078,1000000079,1000000080) |
| 17   | (1000000081,1000000082,1000000083,1000000084,1000000085) |
| 18   | (1000000086,1000000087,1000000088,1000000089,1000000090) |
| 1    | (1000000001,1000000002,1000000003,1000000004,1000000005) |
| 2    | (1000000006,1000000007,1000000008,1000000009,1000000010) |
| 3    | (1000000011,1000000012,1000000013,1000000014,1000000015) |
| 4    | (1000000016,1000000017,1000000018,1000000019,1000000020) |
| 5    | (1000000021,1000000022,1000000023,1000000024,1000000025) |
| 6    | (1000000026,1000000027,1000000028,1000000029,1000000030) |
| 7    | (1000000031,1000000032,1000000033,1000000034,1000000035) |
| 8    | (1000000036,1000000037,1000000038,1000000039,1000000040) |
| 19   | (1000000091,1000000092,1000000093,1000000094,1000000095) |
| 20   | (1000000096,1000000097,1000000098,1000000099,1000000100) |
+------+----------------------------------------------------------+
test/clt-tests/mysqldump/mysql/no-mcl-multi64.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:27.701] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:27.701] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/multi64-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit 20'
––– output –––
+------+--------------------------------------------------------+
| id   | value                                                  |
+------+--------------------------------------------------------+
|   20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
|   19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
|    9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
|    1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
|    2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
|   10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
|    3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
|   11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
|    4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
|   12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
|   13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
|    5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
|   14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
|    6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
|   15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
|    7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
|   16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
|    8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
|   17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
|   18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
+------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_multi64 limit -1'
––– output –––
+------+----------------------------------------------------------+
| id   | value                                                    |
+------+----------------------------------------------------------+
| 9    | (1000000041,1000000042,1000000043,1000000044,1000000045) |
| 10   | (1000000046,1000000047,1000000048,1000000049,1000000050) |
| 11   | (1000000051,1000000052,1000000053,1000000054,1000000055) |
| 12   | (1000000056,1000000057,1000000058,1000000059,1000000060) |
| 13   | (1000000061,1000000062,1000000063,1000000064,1000000065) |
| 14   | (1000000066,1000000067,1000000068,1000000069,1000000070) |
| 15   | (1000000071,1000000072,1000000073,1000000074,1000000075) |
| 16   | (1000000076,1000000077,1000000078,1000000079,1000000080) |
| 17   | (1000000081,1000000082,1000000083,1000000084,1000000085) |
| 18   | (1000000086,1000000087,1000000088,1000000089,1000000090) |
| 1    | (1000000001,1000000002,1000000003,1000000004,1000000005) |
| 2    | (1000000006,1000000007,1000000008,1000000009,1000000010) |
| 3    | (1000000011,1000000012,1000000013,1000000014,1000000015) |
| 4    | (1000000016,1000000017,1000000018,1000000019,1000000020) |
| 5    | (1000000021,1000000022,1000000023,1000000024,1000000025) |
| 6    | (1000000026,1000000027,1000000028,1000000029,1000000030) |
| 7    | (1000000031,1000000032,1000000033,1000000034,1000000035) |
| 8    | (1000000036,1000000037,1000000038,1000000039,1000000040) |
| 19   | (1000000091,1000000092,1000000093,1000000094,1000000095) |
| 20   | (1000000096,1000000097,1000000098,1000000099,1000000100) |
+------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_multi64'
––– output –––
+------+----------------------------------------------------------+
| id   | value                                                    |
+------+----------------------------------------------------------+
| 9    | (1000000041,1000000042,1000000043,1000000044,1000000045) |
| 10   | (1000000046,1000000047,1000000048,1000000049,1000000050) |
| 11   | (1000000051,1000000052,1000000053,1000000054,1000000055) |
| 12   | (1000000056,1000000057,1000000058,1000000059,1000000060) |
| 13   | (1000000061,1000000062,1000000063,1000000064,1000000065) |
| 14   | (1000000066,1000000067,1000000068,1000000069,1000000070) |
| 15   | (1000000071,1000000072,1000000073,1000000074,1000000075) |
| 16   | (1000000076,1000000077,1000000078,1000000079,1000000080) |
| 17   | (1000000081,1000000082,1000000083,1000000084,1000000085) |
| 18   | (1000000086,1000000087,1000000088,1000000089,1000000090) |
| 1    | (1000000001,1000000002,1000000003,1000000004,1000000005) |
| 2    | (1000000006,1000000007,1000000008,1000000009,1000000010) |
| 3    | (1000000011,1000000012,1000000013,1000000014,1000000015) |
| 4    | (1000000016,1000000017,1000000018,1000000019,1000000020) |
| 5    | (1000000021,1000000022,1000000023,1000000024,1000000025) |
| 6    | (1000000026,1000000027,1000000028,1000000029,1000000030) |
| 7    | (1000000031,1000000032,1000000033,1000000034,1000000035) |
| 8    | (1000000036,1000000037,1000000038,1000000039,1000000040) |
| 19   | (1000000091,1000000092,1000000093,1000000094,1000000095) |
| 20   | (1000000096,1000000097,1000000098,1000000099,1000000100) |
+------+----------------------------------------------------------+
test/clt-tests/mysqldump/mysql/mcl-all-multi.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:17.938] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:17.938] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_multi'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/multi-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_multi'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit 20'
––– output –––
+------+-----------------+
| id   | value           |
+------+-----------------+
|   20 | 96,97,98,99,100 |
|   19 | 91,92,93,94,95  |
|    9 | 41,42,43,44,45  |
|    1 | 1,2,3,4,5       |
|    2 | 6,7,8,9,10      |
|   10 | 46,47,48,49,50  |
|    3 | 11,12,13,14,15  |
|   11 | 51,52,53,54,55  |
|    4 | 16,17,18,19,20  |
|   12 | 56,57,58,59,60  |
|   13 | 61,62,63,64,65  |
|    5 | 21,22,23,24,25  |
|   14 | 66,67,68,69,70  |
|    6 | 26,27,28,29,30  |
|   15 | 71,72,73,74,75  |
|    7 | 31,32,33,34,35  |
|   16 | 76,77,78,79,80  |
|    8 | 36,37,38,39,40  |
|   17 | 81,82,83,84,85  |
|   18 | 86,87,88,89,90  |
+------+-----------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_multi limit -1'
––– output –––
+------+-------------------+
| id   | value             |
+------+-------------------+
| 9    |  (41,42,43,44,45) |
| 10   |  (46,47,48,49,50) |
| 11   |  (51,52,53,54,55) |
| 12   |  (56,57,58,59,60) |
| 13   |  (61,62,63,64,65) |
| 14   |  (66,67,68,69,70) |
| 15   |  (71,72,73,74,75) |
| 16   |  (76,77,78,79,80) |
| 17   |  (81,82,83,84,85) |
| 18   |  (86,87,88,89,90) |
| 1    |       (1,2,3,4,5) |
| 2    |      (6,7,8,9,10) |
| 3    |  (11,12,13,14,15) |
| 4    |  (16,17,18,19,20) |
| 5    |  (21,22,23,24,25) |
| 6    |  (26,27,28,29,30) |
| 7    |  (31,32,33,34,35) |
| 8    |  (36,37,38,39,40) |
| 19   |  (91,92,93,94,95) |
| 20   | (96,97,98,99,100) |
+------+-------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_multi'
––– output –––
+------+-------------------+
| id   | value             |
+------+-------------------+
| 9    |  (41,42,43,44,45) |
| 10   |  (46,47,48,49,50) |
| 11   |  (51,52,53,54,55) |
| 12   |  (56,57,58,59,60) |
| 13   |  (61,62,63,64,65) |
| 14   |  (66,67,68,69,70) |
| 15   |  (71,72,73,74,75) |
| 16   |  (76,77,78,79,80) |
| 17   |  (81,82,83,84,85) |
| 18   |  (86,87,88,89,90) |
| 1    |       (1,2,3,4,5) |
| 2    |      (6,7,8,9,10) |
| 3    |  (11,12,13,14,15) |
| 4    |  (16,17,18,19,20) |
| 5    |  (21,22,23,24,25) |
| 6    |  (26,27,28,29,30) |
| 7    |  (31,32,33,34,35) |
| 8    |  (36,37,38,39,40) |
| 19   |  (91,92,93,94,95) |
| 20   | (96,97,98,99,100) |
+------+-------------------+
test/clt-tests/mysqldump/mysql/pq-table-mysqldump.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:28.669] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:28.669] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -P9306 -h0 -e "create table pq(f text) type='percolate'"
––– output –––
––– input –––
mysql -P9306 -h0 -e "insert into pq(id, query) values(1, '@f abc'),(2, 'def')"
––– output –––
––– input –––
mysql -P9306 -h0 -e "select * from pq"
––– output –––
+------+--------+------+---------+
| id   | query  | tags | filters |
+------+--------+------+---------+
|    2 | def    |      |         |
|    1 | @f abc |      |         |
+------+--------+------+---------+
––– input –––
mysqldump -h0 -P9306 manticore 2>/dev/null 1> /tmp/pq-dump.sql
––– output –––
––– input –––
mysql -P9306 -h0 -e 'drop table pq'
––– output –––
––– input –––
mysql -P9306 -h0 -e 'show tables'
––– output –––
––– input –––
mysql -h0 -P9306 manticore < /tmp/pq-dump.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from pq;'
––– output –––
+------+--------+------+---------+
| id   | query  | tags | filters |
+------+--------+------+---------+
|    2 | def    |      |         |
|    1 | @f abc |      |         |
+------+--------+------+---------+
test/clt-tests/mysqldump/mysql/mcl-id-multi64.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:21.801] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:21.801] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/multi64-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_multi64'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit 20'
––– output –––
+------+--------------------------------------------------------+
| id   | value                                                  |
+------+--------------------------------------------------------+
|   20 | 1000000096,1000000097,1000000098,1000000099,1000000100 |
|   19 | 1000000091,1000000092,1000000093,1000000094,1000000095 |
|    9 | 1000000041,1000000042,1000000043,1000000044,1000000045 |
|    1 | 1000000001,1000000002,1000000003,1000000004,1000000005 |
|    2 | 1000000006,1000000007,1000000008,1000000009,1000000010 |
|   10 | 1000000046,1000000047,1000000048,1000000049,1000000050 |
|    3 | 1000000011,1000000012,1000000013,1000000014,1000000015 |
|   11 | 1000000051,1000000052,1000000053,1000000054,1000000055 |
|    4 | 1000000016,1000000017,1000000018,1000000019,1000000020 |
|   12 | 1000000056,1000000057,1000000058,1000000059,1000000060 |
|   13 | 1000000061,1000000062,1000000063,1000000064,1000000065 |
|    5 | 1000000021,1000000022,1000000023,1000000024,1000000025 |
|   14 | 1000000066,1000000067,1000000068,1000000069,1000000070 |
|    6 | 1000000026,1000000027,1000000028,1000000029,1000000030 |
|   15 | 1000000071,1000000072,1000000073,1000000074,1000000075 |
|    7 | 1000000031,1000000032,1000000033,1000000034,1000000035 |
|   16 | 1000000076,1000000077,1000000078,1000000079,1000000080 |
|    8 | 1000000036,1000000037,1000000038,1000000039,1000000040 |
|   17 | 1000000081,1000000082,1000000083,1000000084,1000000085 |
|   18 | 1000000086,1000000087,1000000088,1000000089,1000000090 |
+------+--------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_multi64 limit -1'
––– output –––
+------+----------------------------------------------------------+
| id   | value                                                    |
+------+----------------------------------------------------------+
| 9    | (1000000041,1000000042,1000000043,1000000044,1000000045) |
| 10   | (1000000046,1000000047,1000000048,1000000049,1000000050) |
| 11   | (1000000051,1000000052,1000000053,1000000054,1000000055) |
| 12   | (1000000056,1000000057,1000000058,1000000059,1000000060) |
| 13   | (1000000061,1000000062,1000000063,1000000064,1000000065) |
| 14   | (1000000066,1000000067,1000000068,1000000069,1000000070) |
| 15   | (1000000071,1000000072,1000000073,1000000074,1000000075) |
| 16   | (1000000076,1000000077,1000000078,1000000079,1000000080) |
| 17   | (1000000081,1000000082,1000000083,1000000084,1000000085) |
| 18   | (1000000086,1000000087,1000000088,1000000089,1000000090) |
| 1    | (1000000001,1000000002,1000000003,1000000004,1000000005) |
| 2    | (1000000006,1000000007,1000000008,1000000009,1000000010) |
| 3    | (1000000011,1000000012,1000000013,1000000014,1000000015) |
| 4    | (1000000016,1000000017,1000000018,1000000019,1000000020) |
| 5    | (1000000021,1000000022,1000000023,1000000024,1000000025) |
| 6    | (1000000026,1000000027,1000000028,1000000029,1000000030) |
| 7    | (1000000031,1000000032,1000000033,1000000034,1000000035) |
| 8    | (1000000036,1000000037,1000000038,1000000039,1000000040) |
| 19   | (1000000091,1000000092,1000000093,1000000094,1000000095) |
| 20   | (1000000096,1000000097,1000000098,1000000099,1000000100) |
+------+----------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_multi64'
––– output –––
+------+----------------------------------------------------------+
| id   | value                                                    |
+------+----------------------------------------------------------+
| 9    | (1000000041,1000000042,1000000043,1000000044,1000000045) |
| 10   | (1000000046,1000000047,1000000048,1000000049,1000000050) |
| 11   | (1000000051,1000000052,1000000053,1000000054,1000000055) |
| 12   | (1000000056,1000000057,1000000058,1000000059,1000000060) |
| 13   | (1000000061,1000000062,1000000063,1000000064,1000000065) |
| 14   | (1000000066,1000000067,1000000068,1000000069,1000000070) |
| 15   | (1000000071,1000000072,1000000073,1000000074,1000000075) |
| 16   | (1000000076,1000000077,1000000078,1000000079,1000000080) |
| 17   | (1000000081,1000000082,1000000083,1000000084,1000000085) |
| 18   | (1000000086,1000000087,1000000088,1000000089,1000000090) |
| 1    | (1000000001,1000000002,1000000003,1000000004,1000000005) |
| 2    | (1000000006,1000000007,1000000008,1000000009,1000000010) |
| 3    | (1000000011,1000000012,1000000013,1000000014,1000000015) |
| 4    | (1000000016,1000000017,1000000018,1000000019,1000000020) |
| 5    | (1000000021,1000000022,1000000023,1000000024,1000000025) |
| 6    | (1000000026,1000000027,1000000028,1000000029,1000000030) |
| 7    | (1000000031,1000000032,1000000033,1000000034,1000000035) |
| 8    | (1000000036,1000000037,1000000038,1000000039,1000000040) |
| 19   | (1000000091,1000000092,1000000093,1000000094,1000000095) |
| 20   | (1000000096,1000000097,1000000098,1000000099,1000000100) |
+------+----------------------------------------------------------+
test/clt-tests/mysqldump/mysql/mcl-id-json.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:19.887] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:19.887] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_id_json'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-id/json-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_id_json'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit 20'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
|   20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"}                  |
|   19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"}                         |
|    9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"}                    |
|    1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"}                           |
|    2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"}                          |
|   10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"}           |
|    3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"}                                 |
|   11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2}   |
|    4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"}                          |
|   12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
|   13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"}                     |
|    5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"}      |
|   14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"}  |
|    6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"}           |
|   15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"}                           |
|    7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"}                              |
|   16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"}         |
|    8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"}                |
|   17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"}                           |
|   18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"}                             |
+------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_id_json limit -1'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
| 9    |                    {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
| 10   |           {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
| 11   |   {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
| 12   | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
| 13   |                     {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
| 14   |  {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
| 15   |                           {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
| 16   |         {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
| 17   |                           {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
| 18   |                             {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
| 1    |                           {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
| 2    |                          {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
| 3    |                                 {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
| 4    |                          {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
| 5    |      {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
| 6    |           {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
| 7    |                              {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
| 8    |                {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
| 19   |                         {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
| 20   |                  {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
+------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_id_json'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
| 9    |                    {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
| 10   |           {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
| 11   |   {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
| 12   | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
| 13   |                     {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
| 14   |  {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
| 15   |                           {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
| 16   |         {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
| 17   |                           {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
| 18   |                             {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
| 1    |                           {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
| 2    |                          {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
| 3    |                                 {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
| 4    |                          {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
| 5    |      {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
| 6    |           {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
| 7    |                              {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
| 8    |                {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
| 19   |                         {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
| 20   |                  {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
+------+---------------------------------------------------------------------------------------------+
test/clt-tests/mysqldump/mysql/no-mcl-json.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:25.705] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:25.705] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk no_mcl_json'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/no-mcl/json-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table no_mcl_json'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit 20'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
|   20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"}                  |
|   19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"}                         |
|    9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"}                    |
|    1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"}                           |
|    2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"}                          |
|   10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"}           |
|    3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"}                                 |
|   11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2}   |
|    4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"}                          |
|   12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
|   13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"}                     |
|    5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"}      |
|   14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"}  |
|    6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"}           |
|   15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"}                           |
|    7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"}                              |
|   16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"}         |
|    8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"}                |
|   17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"}                           |
|   18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"}                             |
+------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from no_mcl_json limit -1'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
| 9    |                    {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
| 10   |           {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
| 11   |   {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
| 12   | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
| 13   |                     {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
| 14   |  {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
| 15   |                           {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
| 16   |         {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
| 17   |                           {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
| 18   |                             {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
| 1    |                           {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
| 2    |                          {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
| 3    |                                 {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
| 4    |                          {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
| 5    |      {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
| 6    |           {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
| 7    |                              {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
| 8    |                {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
| 19   |                         {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
| 20   |                  {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
+------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from no_mcl_json'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
| 9    |                    {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
| 10   |           {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
| 11   |   {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
| 12   | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
| 13   |                     {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
| 14   |  {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
| 15   |                           {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
| 16   |         {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
| 17   |                           {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
| 18   |                             {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
| 1    |                           {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
| 2    |                          {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
| 3    |                                 {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
| 4    |                          {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
| 5    |      {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
| 6    |           {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
| 7    |                              {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
| 8    |                {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
| 19   |                         {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
| 20   |                  {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
+------+---------------------------------------------------------------------------------------------+
test/clt-tests/mysqldump/mysql/mcl-all-json.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:16.370] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:16.370] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-1.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-2.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush ramchunk mcl_all_json'
––– output –––
––– input –––
mysql -h0 -P9306 < test/clt-tests/mysqldump/dumps/mcl-all/json-batch-3.sql
––– output –––
––– input –––
mysql -h0 -P9306 -e 'flush table mcl_all_json'
––– output –––
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit 20'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
|   20 | {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"}                  |
|   19 | {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"}                         |
|    9 | {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"}                    |
|    1 | {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"}                           |
|    2 | {"name":"John","age":30,"city":"New York","occupation":"Engineer"}                          |
|   10 | {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"}           |
|    3 | {"animal":"dog","color":"brown","age":5,"breed":"Labrador"}                                 |
|   11 | {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2}   |
|    4 | {"subject":"Math","score":95,"passed":true,"comments":"Excellent"}                          |
|   12 | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
|   13 | {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"}                     |
|    5 | {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"}      |
|   14 | {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"}  |
|    6 | {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"}           |
|   15 | {"game":"Chess","origin":"India","players":2,"type":"Board game"}                           |
|    7 | {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"}                              |
|   16 | {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"}         |
|    8 | {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"}                |
|   17 | {"sport":"Soccer","origin":"England","players":11,"ball":"Round"}                           |
|   18 | {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"}                             |
+------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select * from mcl_all_json limit -1'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
| 9    |                    {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
| 10   |           {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
| 11   |   {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
| 12   | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
| 13   |                     {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
| 14   |  {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
| 15   |                           {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
| 16   |         {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
| 17   |                           {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
| 18   |                             {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
| 1    |                           {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
| 2    |                          {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
| 3    |                                 {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
| 4    |                          {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
| 5    |      {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
| 6    |           {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
| 7    |                              {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
| 8    |                {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
| 19   |                         {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
| 20   |                  {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
+------+---------------------------------------------------------------------------------------------+
––– input –––
mysql -h0 -P9306 -e 'select /*!40001 SQL_NO_CACHE */ * from mcl_all_json'
––– output –––
+------+---------------------------------------------------------------------------------------------+
| id   | value                                                                                       |
+------+---------------------------------------------------------------------------------------------+
| 9    |                    {"song":"Bohemian Rhapsody","artist":"Queen","year":1975,"genre":"Rock"} |
| 10   |           {"company":"OpenAI","founded":2015,"location":"San Francisco","CEO":"Sam Altman"} |
| 11   |   {"planet":"Mars","distance_from_sun":227.900000,"orbital_period":687,"number_of_moons":2} |
| 12   | {"country":"Australia","continent":"Australia","capital":"Canberra","population":25.360000} |
| 13   |                     {"language":"Spanish","speakers":460,"origin":"Spain","script":"Latin"} |
| 14   |  {"dish":"Sushi","origin":"Japan","ingredients":["Rice","Fish","Seaweed"],"type":"Seafood"} |
| 15   |                           {"game":"Chess","origin":"India","players":2,"type":"Board game"} |
| 16   |         {"painting":"Mona Lisa","artist":"Leonardo da Vinci","year":1503,"museum":"Louvre"} |
| 17   |                           {"sport":"Soccer","origin":"England","players":11,"ball":"Round"} |
| 18   |                             {"flower":"Rose","color":"Red","symbol":"Love","origin":"Asia"} |
| 1    |                           {"key1":"value1","key2":"value2","key3":"value3","key4":"value4"} |
| 2    |                          {"name":"John","age":30,"city":"New York","occupation":"Engineer"} |
| 3    |                                 {"animal":"dog","color":"brown","age":5,"breed":"Labrador"} |
| 4    |                          {"subject":"Math","score":95,"passed":true,"comments":"Excellent"} |
| 5    |      {"book":"The Great Gatsby","author":"F. Scott Fitzgerald","year":1925,"genre":"Novel"} |
| 6    |           {"movie":"Inception","director":"Christopher Nolan","year":2010,"genre":"Sci-fi"} |
| 7    |                              {"fruit":"Apple","color":"Red","origin":"USA","taste":"Sweet"} |
| 8    |                {"car":"Tesla Model S","manufacturer":"Tesla","year":2022,"type":"Electric"} |
| 19   |                         {"element":"Hydrogen","symbol":"H","atomic_number":1,"state":"Gas"} |
| 20   |                  {"computer":"MacBook Pro","manufacturer":"Apple","year":2021,"OS":"macOS"} |
+------+---------------------------------------------------------------------------------------------+

Copy link

clt

👎 CLT tests in test/clt-tests/logstash/logstash-
✅ OK: 0
❌ Failed: 1
⏳ Duration: 77s
👉 Check Action Results for commit 84fdb25
Failed tests:

test/clt-tests/logstash/logstash-dev.rec
––– input –––
set -b
––– output –––
––– input –––
export PATH=/usr/bin:/usr/local/bin:/usr/sbin:/sbin:/bin
––– output –––
––– input –––
apt-get update > /dev/null; echo $?
––– output –––
0
––– input –––
apt-get -y install gnupg2 openjdk-8-jre-headless curl jq > /dev/null; echo $?
––– output –––
debconf: delaying package configuration, since apt-utils is not installed
0
––– input –––
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | gpg --dearmor -o /usr/share/keyrings/elastic-keyring.gpg
––– output –––
––– input –––
echo "deb [signed-by=/usr/share/keyrings/elastic-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-8.x.list
––– output –––
deb [signed-by=/usr/share/keyrings/elastic-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main
––– input –––
mkdir /usr/share/logstash && cd $_
––– output –––
––– input –––
wget -q https://artifacts.elastic.co/downloads/logstash/logstash-7.10.0-linux-x86_64.tar.gz
––– output –––
––– input –––
tar -xvzf logstash-7.10.0-linux-x86_64.tar.gz > /dev/null; echo $?
––– output –––
0
––– input –––
mkdir /usr/share/filebeat && cd /usr/share/filebeat
––– output –––
––– input –––
wget -q https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-8.11.0-linux-x86_64.tar.gz
––– output –––
––– input –––
tar -xvzf filebeat-8.11.0-linux-x86_64.tar.gz > /dev/null; echo $?
––– output –––
0
––– input –––
cd /usr/local/src
––– output –––
––– input –––
ln -s /usr/share/logstash/logstash-7.10.0/bin/logstash /usr/bin/logstash
––– output –––
––– input –––
ln -s /usr/share/filebeat/filebeat-8.11.0-linux-x86_64/filebeat /usr/bin/filebeat
––– output –––
––– input –––
manticore-executor -v
––– output –––
PHP %{SEMVER} (cli) (built: #!/[a-zA-Z]{3}/!# #!/[0-9]+/!# %{YEAR} #!/[0-9]{2}:[0-9]{2}:[0-9]{2}/!#) (#!/[NZ]/!#TS)
Copyright (c) The PHP Group
Zend Engine #!/v[0-9]+\.[0-9]+\.[0-9]+/!#, Copyright (c) Zend Technologies
––– input –––
searchd
––– output –––
- Manticore %{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:33.899] [1952] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} #!/[a-z0-9]{7,9}@[0-9]{8}/!# dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:33.899] [1952] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
+ listening on 127.0.0.1:9308 for sphinx and http(s)
––– input –––
printf 'input {\n    file {\n        path => ["/var/log/dpkg.log"]\n        start_position => "beginning"\n        sincedb_path => "/dev/null"\n        mode => "read"\n        exit_after_read => "true"\n        file_completed_action => "log"\n        file_completed_log_path => "/dev/null"\n    }\n}\n\noutput {\n    elasticsearch {\n        index => "testlog_1"\n        hosts => ["http://localhost:9308"]\n        ilm_enabled => false\n        manage_template => false\n    }\n}\n' > logstash.conf
––– output –––
––– input –––
timeout 60 logstash -f logstash.conf 2>/dev/null 1>/var/log/logstash.log && echo 'Done' || echo 'Timeout or failed'
––– output –––
Done
––– input –––
curl -s localhost:9308/cli_json -d 'describe testlog_1' | jq -cM '.[].data | sort_by(.Field)'
––– output –––
[{"Field":"@timestamp","Type":"timestamp","Properties":""},{"Field":"@version","Type":"text","Properties":"indexed stored"},{"Field":"host","Type":"text","Properties":"indexed stored"},{"Field":"id","Type":"bigint","Properties":""},{"Field":"message","Type":"text","Properties":"indexed stored"},{"Field":"path","Type":"text","Properties":"indexed stored"}]
––– input –––
printf 'filebeat.inputs:\n- type: filestream\n  id: testlog\n  paths:\n    - /var/log/dpkg.log\n\noutput.elasticsearch:\n  hosts: ["http://localhost:9308"]\n  index:  "testlog_2"\n  allow_older_versions: true\n  compression_level: 0\n\nsetup.ilm:\n  enabled: false\n\nsetup.template:\n  name: "testlog_2"\n  pattern: "testlog_2"\n\nseccomp:\n  default_action: allow\n  syscalls:\n  - action: allow\n    names:\n    - rseq' > filebeat.yml
––– output –––
––– input –––
filebeat -c filebeat.yml -strict.perms=false -e 2>/var/log/filebeat.log & pid=$!
––– output –––
[1] #!/[0-9]+/!#
––– input –––
if timeout 60 grep -qm1 'Non-zero metrics in the last 30s' <(tail -n 0 -f /var/log/filebeat.log); then echo 'Done'; else echo 'Timeout or failed'; cat /var/log/filebeat.log; cat /var/log/manticore/searchd.log; fi
––– output –––
Done
––– input –––
kill ${pid}
––– output –––
––– input –––
wait 2>&1 >/dev/null
––– output –––
[1]+  Done                    filebeat -c filebeat.yml -strict.perms=false -e 2> /var/log/filebeat.log
––– input –––
curl -s localhost:9308/cli_json -d 'describe testlog_2' | jq -cM '.[].data | sort_by(.Field)'
––– output –––
[{"Field":"@timestamp","Type":"timestamp","Properties":""},{"Field":"agent","Type":"json","Properties":""},{"Field":"ecs","Type":"json","Properties":""},{"Field":"host","Type":"json","Properties":""},{"Field":"id","Type":"bigint","Properties":""},{"Field":"input","Type":"json","Properties":""},{"Field":"log","Type":"json","Properties":""},{"Field":"message","Type":"text","Properties":"indexed stored"}]

Copy link

clt

👎 CLT tests in test/clt-tests/core/ test/clt-tests/expected-errors/
✅ OK: 1
❌ Failed: 8
⏳ Duration: 218s
👉 Check Action Results for commit 84fdb25
Failed tests:

test/clt-tests/core/test-unfreeze-defrosts.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [01:54.791] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [01:54.792] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
set -b +m
––– output –––
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(f text, s string) rt_mem_limit='128k'; insert into t values(0,'abc','string'); freeze t;" > /dev/null 2>&1
––– output –––
––– input –––
for n in `seq 1 100`; do mysql -h0 -P9306 -e "insert into t values(0, 'abc', 'string string string stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring string');"; done &
––– output –––
[1] %{NUMBER}
––– input –––
sleep 10; mysql -h0 -P9306 -e "select count(*) from t\G"
––– output –––
*************************** 1. row ***************************
count(*): #!/55|56|57|58|59/!#
––– input –––
mysql -h0 -P9306 -e "unfreeze t;"
––– output –––
––– input –––
sleep 10; mysql -h0 -P9306 -e "select count(*) from t\G"
––– output –––
*************************** 1. row ***************************
count(*): 101
––– input –––
mysql -h0 -P9306 -e "drop table if exists t; create table t(f text, s string) rt_mem_limit='128k'; insert into t values(0,'abc','string'); freeze t; freeze t; freeze t;" > /dev/null 2>&1
––– output –––
––– input –––
for n in `seq 1 100`; do mysql -h0 -P9306 -e "insert into t values(0, 'abc', 'string string string stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring stringstring string');"; done &
––– output –––
[1] %{NUMBER}
––– input –––
sleep 10; mysql -h0 -P9306 -e "select count(*) from t\G"
––– output –––
*************************** 1. row ***************************
count(*): #!/55|56|57|58|59/!#
––– input –––
mysql -h0 -P9306 -e "unfreeze t; unfreeze t; unfreeze t;"
––– output –––
––– input –––
sleep 10; mysql -h0 -P9306 -e "select count(*) from t\G"
––– output –––
*************************** 1. row ***************************
count(*): 101
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS orders; CREATE TABLE orders (id bigint, user_id bigint, name text, description text, price float, order_date timestamp, attr json, region_id int, confirm bool, analogs multi); INSERT INTO orders (id, user_id, name, description, price, order_date, attr, region_id, confirm, analogs) VALUES (0, 1, 'Macbook', '16', 3500.99, 1614258732, '{\"color\":\"titan\",\"size\":16}', 22, 'TRUE', (8,4,16)) rt_mem_limit='64k'; freeze orders;" > /dev/null 2>&1
––– output –––
––– input –––
for n in `seq 1 500`; do mysql -h0 -P9306 -e "INSERT INTO orders (id, user_id, name, description, price, order_date, attr, region_id, confirm, analogs) VALUES (0, 1, 'iPhone', '14Pro', 1500.50, 1708866233, '{\"color\":\"black\",\"size\":14}', 178, 'TRUE', (9,11,15)), (0, 2, 'Macbook', '16', 3500.99, 1614258732, '{\"color\":\"titan\",\"size\":16}', 22, 'TRUE', (8,4,16)), (0, 3, 'iPad', '15Pro', 2600, 1708866234, '{\"color\":\"gold\",\"size\":15}', 178, 'TRUE', (9,11,15)), (0, 4, 'iPhone', '12Mini', 900.50, 1708866235, '{\"color\":\"blue\",\"size\":12}', 179, 'TRUE', (1,5,17)), (0, 5, 'Samsung Galaxy', 'S21', 1000, 1708866236, '{\"color\":\"white\",\"size\":14}', 180, 'FALSE', (13,19,21)), (0, 6, 'Dell Laptop', 'Latitude', 2000, 1708866237, '{\"color\":\"silver\",\"size\":15}', 181, 'TRUE', (4,6,23)), (0, 7, 'Headphones', 'Bluetooth', 100, 1708866238, '{\"color\":\"black\",\"size\":\"M\"}', 182, 'TRUE', (5,7,25)), (0, 8, 'Desk', 'Wooden', 400, 1708866239, '{\"color\":\"brown\",\"size\":\"XL\"}', 183, 'TRUE', (8,9,27)), (0, 9, 'Refrigerator', 'Samsung', 1500, 1708866240, '{\"color\":\"white\",\"size\":60}', 184, 'FALSE', (10,11,29)), (0, 10, 'Smartwatch', 'Fitbit', 300, 1708866241, '{\"color\":\"black\",\"size\":\"S\"}', 185, 'TRUE', (12,13,31)), (0, 11, 'Printer', 'Epson', 250, 1708866242, '{\"color\":\"grey\",\"size\":\"L\"}', 186, 'TRUE', (14,15,33)), (0, 12, 'Chair', 'Office', 150, 1708866243, '{\"color\":\"black\",\"size\":\"M\"}', 187, 'FALSE', (16,17,35)), (0, 13, 'Smartphone', 'Xiaomi', 700, 1708866244, '{\"color\":\"blue\",\"size\":6}', 188, 'TRUE', (18,19,37)), (0, 14, 'Camera', 'Canon', 800, 1708866245, '{\"color\":\"black\",\"size\":\"M\"}', 189, 'TRUE', (20,21,39)), (0, 15, 'Backpack', 'Hiking', 100, 1708866246, '{\"color\":\"green\",\"size\":\"S\"}', 190, 'TRUE', (22,23,41)), (0, 16, 'Table', 'Coffee', 250, 1708866247, '{\"color\":\"brown\",\"size\":\"L\"}', 191, 'FALSE', (24,25,43)), (0, 17, 'Smart TV', 'LG', 1200, 1708866248, '{\"color\":\"silver\",\"size\":55}', 192, 'TRUE', (26,27,45)), (0, 18, 'Blender', 'Kitchen', 80, 1708866249, '{\"color\":\"white\",\"size\":\"M\"}', 193, 'TRUE', (28,29,47)), (0, 19, 'Keyboard', 'Logitech', 50, 1708866250, '{\"color\":\"black\",\"size\":\"L\"}', 194, 'TRUE', (30,31,49)), (0, 20, 'Monitor', 'Samsung', 400, 1708866251, '{\"color\":\"black\",\"size\":24}', 195, 'TRUE', (32,33,51));"; done &
––– output –––
[1] %{NUMBER}
––– input –––
sleep 1; mysql -h0 -P9306 -e "select count(*) from orders\G"
––– output –––
*************************** 1. row ***************************
count(*): #!/3\d{3}|4\d{3}/!#
––– input –––
sleep 5; mysql -h0 -P9306 -e "unfreeze orders;"
––– output –––
––– input –––
sleep 5; mysql -h0 -P9306 -e "select count(*) from orders\G"
––– output –––
*************************** 1. row ***************************
count(*): 10000
test/clt-tests/core/show-threads.rec
––– input –––
searchd --cpustats
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
+ [59:18.973] [20] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:18.974] [20] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
+ listening on 127.0.0.1:9308 for sphinx and http(s)
––– input –––
mysql -h0 -P9306 -e "SHOW THREADS\G;"
––– output –––
*************************** 1. row ***************************
TID: %{NUMBER}
Name: work_%{NUMBER}
Proto: mysql
State: query
Connection from: 127.0.0.1:%{NUMBER}
ConnID: %{NUMBER}
This/prev job time: %{NUMBER}#!/(s|ms|us)/!#
CPU activity: %{NUMBER}.%{NUMBER}%
Jobs done: %{NUMBER}
Thread status: working
Info: SHOW THREADS
test/clt-tests/core/show-settings.rec
––– input –––
export INSTANCE=1
––– output –––
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}/{a,b,c,d,e,f,g,h,i,j}
––– output –––
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf | grep -v precach
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[a-zA-Z]{3}\s[a-zA-Z]{3}\s+[0-9]{1,2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}\s[0-9]{4}/!#] [%{NUMBER}] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (%{NUMBER} chars)...
+ [Thu May 16 13:59:17.345 2024] [21] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE} dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [Thu May 16 13:59:17.347 2024] [21] using config file '/.clt/test/clt-tests/base/searchd-with-flexible-ports.conf' (383 chars)...
- listening on all interfaces for mysql, port=%{NUMBER}
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for mysql, port=1306
listening on all interfaces for sphinx and http(s), port=%{NUMBER}
+ listening on all interfaces for sphinx and http(s), port=1308
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
Accepting connections!
––– input –––
mysql -h0 -P1306 -e "SHOW SETTINGS;"
––– output –––
+----------------------------+------------------------------------------------------------+
| Setting_name               | Value                                                      |
+----------------------------+------------------------------------------------------------+
| configuration_file         | /.clt/test/clt-tests/base/searchd-with-flexible-ports.conf |
| worker_pid                 | %{NUMBER}                                                         |
| searchd.listen             | 1306:mysql41                                               |
| searchd.listen             | 1312                                                       |
| searchd.listen             | 1308:http                                                  |
| searchd.log                | /var/log/manticore-1/searchd.log                           |
| searchd.query_log          | /var/log/manticore-1/query.log                             |
| searchd.pid_file           | /var/log/manticore-1/searchd.pid                           |
| searchd.data_dir           | /var/log/manticore-1                                       |
| searchd.query_log_format   | sphinxql                                                   |
| searchd.query_log_commands | 1                                                          |
| searchd.binlog_path        | /var/log/manticore-1/binlog                                |
| common.plugin_dir          | /usr/local/lib/manticore                                   |
| common.lemmatizer_base     | /usr/share/manticore/morph/                                |
+----------------------------+------------------------------------------------------------+
test/clt-tests/core/test-from-issue-1335.rec
––– input –––
searchd
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [%{NUMBER}] using config file '%{PATH}' (%{NUMBER} chars)...
+ [59:23.301] [20] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} #!/[a-z0-9]{7,9}@[0-9]{8}/!# dev (columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:23.301] [20] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
+ listening on 127.0.0.1:9308 for sphinx and http(s)
––– input –––
php ./test/clt-tests/core/issue-1335-dump.php 10000 30 800000
––– output –––
finished inserting
%{NUMBER} docs per sec
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) FROM test\G;"
––– output –––
*************************** 1. row ***************************
count(*): %{NUMBER}
––– input –––
timeout 10 mysql -h0 -P9306 -e "select * from test where MATCH('@street walnut blvd') and country='US'\G;"
––– output –––
*************************** 1. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 2. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 3. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 4. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 5. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 6. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 7. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 8. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 9. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 10. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 11. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 12. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 13. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 14. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 15. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 16. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 17. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 18. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 19. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
*************************** 20. row ***************************
id: %{NUMBER}
street: %{NUMBER} Walnut Blvd
country: US
test/clt-tests/core/test-alter-tabled-distributed.rec
––– input –––
searchd; if timeout 10 grep -qm1 'accepting' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Started'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:21.639] [20] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:21.639] [20] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Started
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Started
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index1(f text, s string); insert into index1 values(1,'abc','string');"
––– output –––
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index2(f text, s string); insert into index2 values(2,'def','string');"
––– output –––
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index3(f text, s string); insert into index3 values(3,'ghi','string');"
––– output –––
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE index4(f text, s string); insert into index4 values(4,'jkl','string');"
––– output –––
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE dist_table type='distributed' local='index1' local='index2';"
––– output –––
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
+--------+-------+
| Agent  | Type  |
+--------+-------+
| index1 | local |
| index2 | local |
+--------+-------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table local='index1' local='index3';"
––– output –––
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
+--------+-------+
| Agent  | Type  |
+--------+-------+
| index1 | local |
| index3 | local |
+--------+-------+
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE dist_table agent='127.0.0.1:9312:remote_index' local='index4';"
––– output –––
––– input –––
mysql -h0 -P9306 -e "DESC dist_table"
––– output –––
+-----------------------------+----------+
| Agent                       | Type     |
+-----------------------------+----------+
| index4                      | local    |
| 127.0.0.1:9312:remote_index | remote_1 |
+-----------------------------+----------+
test/clt-tests/core/test-alter-table.rec
––– input –––
rm -rf /var/lib/manticore
––– output –––
––– input –––
mkdir /tmp/test-alter/
––– output –––
––– input –––
ln -s /tmp/test-alter/ /var/lib/manticore
––– output –––
––– input –––
echo "a > b" > /tmp/test-alter/wordforms1.txt; echo "c > d" > /tmp/test-alter/exc.txt; echo "abcstop" > /tmp/test-alter/stop.txt
––– output –––
––– input –––
ls -1 /var/lib/manticore/
––– output –––
exc.txt
stop.txt
wordforms1.txt
––– input –––
searchd; if timeout 10 grep -qm1 'accepting' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Started'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:20.756] [24] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:20.756] [24] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Started
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Started
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test3 (title TEXT, tag INTEGER) exceptions='/var/lib/manticore/exc.txt' wordforms='/var/lib/manticore/wordforms1.txt' stopwords='/var/lib/manticore/stop.txt';"
––– output –––
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE test3 SETTINGS\G"
––– output –––
*************************** 1. row ***************************
Variable_name: settings
Value: exceptions = /tmp/test-alter/test3/exc.txt
stopwords = /tmp/test-alter/test3/stop.txt
wordforms = /tmp/test-alter/test3/wordforms1.txt
––– input –––
mysql -h0 -P9306 -e "ALTER TABLE test3 exceptions = ''"
––– output –––
––– input –––
mysql -h0 -P9306 -e "SHOW TABLE test3 SETTINGS\G"
––– output –––
*************************** 1. row ***************************
Variable_name: settings
Value: stopwords = /tmp/test-alter/test3/stop.txt
wordforms = /tmp/test-alter/test3/wordforms1.txt
test/clt-tests/core/test-replace-into.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:26.939] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:26.939] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -v -h0 -P9306 -e "SHOW TABLES; DROP TABLE IF EXISTS tbl; SHOW TABLES; CREATE TABLE tbl (id BIGINT, model TEXT, storage_capacity INTEGER, color string, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2');"
––– output –––
--------------
SHOW TABLES
--------------
--------------
DROP TABLE IF EXISTS tbl
--------------
--------------
SHOW TABLES
--------------
--------------
CREATE TABLE tbl (id BIGINT, model TEXT, storage_capacity INTEGER, color string, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2')
--------------
––– input –––
chmod +x ./test/clt-tests/core/generate-1mln-records.sh
––– output –––
––– input –––
./test/clt-tests/core/generate-1mln-records.sh
––– output –––
+-------+------+
| Index | Type |
+-------+------+
| tbl   | rt   |
+-------+------+
+----------+
| count(*) |
+----------+
|  1000000 |
+----------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 15 PRO' WHERE id = 101; select * from tbl WHERE id = 101;"
––– output –––
+------+---------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
| id   | model         | storage_capacity | color  | release_year | price       | discounted_price | sold | date_added | product_codes | values                                 | additional_info                                                                   | vector                              |
+------+---------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|  101 | iPhone 15 PRO |              256 | silver |         2021 | 1099.989990 |       989.989990 |    1 | 2224442480 | 1,2,3         | 523456764345678976,9223372036854775807 | {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]} | 0.773448,0.312478,0.137971,0.459821 |
+------+---------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET values = (623456764345678976, 9223372036854775807) WHERE id = 120; select * from tbl WHERE id = 120;"
––– output –––
+------+---------+------------------+-------------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
| id   | model   | storage_capacity | color       | release_year | price      | discounted_price | sold | date_added | product_codes | values                                 | additional_info                                                                   | vector                              |
+------+---------+------------------+-------------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|  120 | LG Wing |              256 | aurora gray |         2020 | 999.989990 |       899.989990 |    1 | 1496660080 | 57,58,59      | 623456764345678976,9223372036854775807 | {"features":["Qualcomm Snapdragon 765G","Swivel display","Triple-camera system"]} | 0.863448,0.402478,0.227971,0.549821 |
+------+---------+------------------+-------------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET product_codes = (53,45,77), values = (92233777368548,92233720368548) WHERE id = 119; select * from tbl WHERE id = 119;"
––– output –––
+------+---------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
| id   | model               | storage_capacity | color | release_year | price      | discounted_price | sold | date_added | product_codes | values                        | additional_info                                                                   | vector                              |
+------+---------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|  119 | BlackBerry Evolve X |               64 | black |         2018 | 599.989990 |       499.989990 |    0 | 3697138672 | 45,53,77      | 92233720368548,92233777368548 | {"features":["Qualcomm Snapdragon 660","5.99-inch display","Dual-camera system"]} | 0.051106,0.948278,0.291892,0.104594 |
+------+---------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET price =15000.99 WHERE id = 117; select * from tbl WHERE id = 117;"
––– output –––
+------+----------------------+------------------+---------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------------+-------------------------------------+
| id   | model                | storage_capacity | color         | release_year | price        | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                                | vector                              |
+------+----------------------+------------------+---------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------------+-------------------------------------+
|  117 | Motorola Edge 20 Pro |              256 | midnight blue |         2021 | 15000.990234 |       599.989990 |    0 | 1501096560 | 48,49,50      | 1123456764345678976,9223372036854775807 | {"features":["Qualcomm Snapdragon 870","OLED display","Triple-camera system"]} | 0.041106,0.938278,0.281892,0.094594 |
+------+----------------------+------------------+---------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET price =15000.99, discounted_price =445.88 WHERE id = 330; select * from tbl WHERE id = 330;"
––– output –––
+------+------------------------------+------------------+------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+---------------------------------------------------------------------------+-------------------------------------+
| id   | model                        | storage_capacity | color      | release_year | price        | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                           | vector                              |
+------+------------------------------+------------------+------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+---------------------------------------------------------------------------+-------------------------------------+
|  330 | Motorola Moto G Power (2021) |               64 | flash gray |         2021 | 15000.990234 |       445.880005 |    1 | 1306783344 | 84,85,86      | 2323456764345678976,9223372036854775807 | {"features":["Snapdragon 662","6.6-inch display","Triple-camera system"]} | 0.663448,0.202478,0.027971,0.349821 |
+------+------------------------------+------------------+------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+---------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET vector= (-0.037794, 0.856278, 0.202892, 0.015594) WHERE id = 102; select * from tbl WHERE id = 102;"
––– output –––
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+------------------------------------------------------------------------------------+--------------------------------------+
| id   | model     | storage_capacity | color | release_year | price      | discounted_price | sold | date_added | product_codes | values                                 | additional_info                                                                    | vector                               |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+------------------------------------------------------------------------------------+--------------------------------------+
|  102 | iPhone 13 |              128 | blue  |         2021 | 799.989990 |       719.989990 |    0 | 1820294112 | 4,5,6         | 623456764345678976,9223372036854775807 | {"features":["A15 Bionic chip","Ceramic Shield front cover","Dual-camera system"]} | -0.037794,0.856278,0.202892,0.015594 |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+------------------------------------------------------------------------------------+--------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET price =15000.99, discounted_price =445.88, vector= (-0.037794, 0.856278, 0.202892, 0.015594) WHERE id = 336; select * from tbl WHERE id = 336;"
––– output –––
+------+----------------------+------------------+-------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+--------------------------------------+
| id   | model                | storage_capacity | color | release_year | price        | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                             | vector                               |
+------+----------------------+------------------+-------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+--------------------------------------+
|  336 | HTC Wildfire E1 lite |               32 | black |         2021 | 15000.990234 |       445.880005 |    1 | 3438054384 | 102,103,104   | 2923456764345678976,9223372036854775807 | {"features":["MediaTek Helio A20","6.1-inch display","Dual-camera system"]} | -0.037794,0.856278,0.202892,0.015594 |
+------+----------------------+------------------+-------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+--------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model='iPhone 13 Pro Max', color='titan', storage_capacity=1000, release_year=2023, sold=1, date_added=4077861360, product_codes=(30,31,32), values= (9223372444854775807,9223372036812375244), additional_info= '{\"features\":[\"Snapdragon 900\",\"8.0-inch display\",\"Dual-camera new-system\"]}', vector= (-0.037795, 0.856278, 0.202892, -0.015595) WHERE id = 247; select * from tbl WHERE id = 247;"
––– output –––
+------+-------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+---------------------------------------+
| id   | model             | storage_capacity | color | release_year | price      | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                             | vector                                |
+------+-------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+---------------------------------------+
|  247 | iPhone 13 Pro Max |             1000 | titan |         2023 | 799.989990 |       699.989990 |    1 | 4077861360 | 30,31,32      | 9223372036812375244,9223372036854775807 | {"features":["Snapdragon 900","8.0-inch display","Dual-camera new-system"]} | -0.037795,0.856278,0.202892,-0.015595 |
+------+-------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+---------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET additional_info= '{\"features\":[\"Snapdragon 900\",\"8.0-inch display\",\"Dual-camera new-system\"]}' WHERE id = 323; select * from tbl WHERE id =323;"
––– output –––
+------+------------------+------------------+---------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+-------------------------------------+
| id   | model            | storage_capacity | color         | release_year | price      | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                             | vector                              |
+------+------------------+------------------+---------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+-------------------------------------+
|  323 | Asus ROG Phone 5 |              256 | phantom black |         2021 | 999.989990 |       899.989990 |    0 | 3632367600 | 66,67,68      | 1723456764345678976,9223372036854775807 | {"features":["Snapdragon 900","8.0-inch display","Dual-camera new-system"]} | 0.071106,0.968278,0.311892,0.124594 |
+------+------------------+------------------+---------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "Replace Into tbl Set price =15780.99, discounted_price =335.88 WHERE id = 335; select * from tbl WHERE id = 335;"
––– output –––
+------+-------------+------------------+--------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-------------------------------------------------------------------------+---------------------------------------+
| id   | model       | storage_capacity | color        | release_year | price        | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                         | vector                                |
+------+-------------+------------------+--------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-------------------------------------------------------------------------+---------------------------------------+
|  335 | LG G8 ThinQ |              128 | aurora black |         2019 | 15780.990234 |       335.880005 |    0 | 1194467680 | 99,100,101    | 2823456764345678976,9223372036854775807 | {"features":["Snapdragon 855","6.1-inch display","Dual-camera system"]} | -0.118894,0.778278,0.121892,-0.065406 |
+------+-------------+------------------+--------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-------------------------------------------------------------------------+---------------------------------------+
––– input –––
curl -X POST "http://localhost:9308/tbl/_update/101" -H "Content-Type: application/json" -d '{"doc": {"model": "new-model", "color": "new-color"}}'; echo $?
––– output –––
{"_index":"tbl","updated":1}0
––– input –––
start_time=$(date +%s%3N) && for i in {1..5000}; do echo "REPLACE INTO tbl SET color = 'color_$i' WHERE id = ${i}01;"; done > /tmp/replace_dump && mysql -h0 -P9306 < /tmp/replace_dump > /dev/null && end_time=$(date +%s%3N) && export elapsed_time=$((end_time - start_time))
––– output –––
––– input –––
echo $elapsed_time
––– output –––
#!/[0-9]{4,5}/!#
––– input –––
mysql -h0 -P9306 -e "select count(*) from tbl WHERE regex (color, 'color_[0-9]+')"
––– output –––
+----------+
| count(*) |
+----------+
|     5000 |
+----------+
––– input –––
start_time2=$(date +%s%3N) && for i in {1..5000}; do echo "REPLACE INTO tbl (id, model, storage_capacity, color, release_year, price, discounted_price, sold, date_added, product_codes, values, additional_info, vector) VALUES (${i}101, 'iPhone 13 Pro', 256, 'silver${i}', 2021, 1099.99, 989.99, 'TRUE', '1591362342000', (1,2,3), (523456764345678976, 98765409877866654098, 1109876543450987650987), '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', (0.773448, 0.312478, 0.137971, 0.459821));"; done > /tmp/replace_dump && mysql -h0 -P9306 < /tmp/replace_dump > /dev/null && end_time2=$(date +%s%3N) && export elapsed_time2=$((end_time2 - start_time2))
––– output –––
––– input –––
echo $elapsed_time2
––– output –––
#!/[0-9]{3,4}/!#
––– input –––
mysql -h0 -P9306 -e "select count(*) from tbl WHERE regex (color, 'silver[0-9]+')"
––– output –––
+----------+
| count(*) |
+----------+
|     5000 |
+----------+
––– input –––
echo $((elapsed_time / elapsed_time2))
––– output –––
#!/[1-9]|1[0-2]/!#
––– input –––
mysql -v -h0 -P9306 -e "SHOW TABLES; DROP TABLE IF EXISTS abc; create table abc(id, t1 text, t2 text indexed); insert into abc VALUES (1, 'abc', 'cde'); desc abc;"
––– output –––
--------------
SHOW TABLES
--------------
+-------+------+
| Index | Type |
+-------+------+
| tbl   | rt   |
+-------+------+
--------------
DROP TABLE IF EXISTS abc
--------------
--------------
create table abc(id, t1 text, t2 text indexed)
--------------
--------------
insert into abc VALUES (1, 'abc', 'cde')
--------------
--------------
desc abc
--------------
+-------+--------+----------------+
| Field | Type   | Properties     |
+-------+--------+----------------+
| id    | bigint |                |
| t1    | text   | indexed stored |
| t2    | text   | indexed        |
+-------+--------+----------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO abc SET t1 ='iPhone 15 PRO' WHERE id = 1;"
––– output –––
ERROR 1064 (42000) at line 1: Field t2 doesn't have stored property. Replace query can't be performed
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 16 PRO MAX' WHERE id > 105;"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET model ='iPhone 16 PRO MAX' WHERE id > 105'
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 17 PRO MAX' WHERE id = 'abs';"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET model ='iPhone 17 PRO MAX' WHERE id = 'abs''
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 18 PRO' WHERE id in (1,2,3);"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET model ='iPhone 18 PRO' WHERE id in (1,2,3)'
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 18 PRO' WHERE sold = 0;"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET model ='iPhone 18 PRO' WHERE sold = 0'
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET id =777 WHERE id = 144; select * from tbl WHERE id = 144;"
––– output –––
+------+-----------------+------------------+--------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------+-------------------------------------+
| id   | model           | storage_capacity | color        | release_year | price      | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                    | vector                              |
+------+-----------------+------------------+--------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------+-------------------------------------+
|  144 | Sony Xperia XZ3 |               64 | forest green |         2018 | 899.989990 |       799.989990 |    1 | 3308512240 | 126,127,128   | 3723456764345678976,9223372036854775807 | {"features":["Snapdragon 845","6.0-inch display","Single camera"]} | 0.733448,0.272478,0.097971,0.419821 |
+------+-----------------+------------------+--------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -v -h0 -P9306 -e "SHOW TABLES; DROP TABLE IF EXISTS tbl; DROP TABLE IF EXISTS abc; SHOW TABLES; CREATE TABLE tbl (id BIGINT, model TEXT, storage_capacity INTEGER, color string, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2') engine='columnar';"
––– output –––
--------------
SHOW TABLES
--------------
+-------+------+
| Index | Type |
+-------+------+
| abc   | rt   |
| tbl   | rt   |
+-------+------+
--------------
DROP TABLE IF EXISTS tbl
--------------
--------------
DROP TABLE IF EXISTS abc
--------------
--------------
SHOW TABLES
--------------
--------------
CREATE TABLE tbl (id BIGINT, model TEXT, storage_capacity INTEGER, color string, release_year INTEGER, price FLOAT, discounted_price FLOAT, sold BOOL, date_added TIMESTAMP, product_codes MULTI, values MULTI64, additional_info JSON, vector float_vector knn_type='hnsw' knn_dims='4' hnsw_similarity='l2') engine='columnar'
--------------
––– input –––
chmod +x ./test/clt-tests/core/generate-1mln-records.sh
––– output –––
––– input –––
./test/clt-tests/core/generate-1mln-records.sh
––– output –––
+-------+------+
| Index | Type |
+-------+------+
| tbl   | rt   |
+-------+------+
+----------+
| count(*) |
+----------+
|  1000000 |
+----------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 15 PRO' WHERE id = 101; select * from tbl WHERE id = 101;"
––– output –––
+------+---------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
| id   | model         | storage_capacity | color  | release_year | price       | discounted_price | sold | date_added | product_codes | values                                 | additional_info                                                                   | vector                              |
+------+---------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|  101 | iPhone 15 PRO |              256 | silver |         2021 | 1099.989990 |       989.989990 |    1 | 2224442480 | 1,2,3         | 523456764345678976,9223372036854775807 | {"features":["ProMotion display","A15 Bionic chip","Ceramic Shield front cover"]} | 0.773448,0.312478,0.137971,0.459821 |
+------+---------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET values = (623456764345678976, 9223372036854775807) WHERE id = 120; select * from tbl WHERE id = 120;"
––– output –––
+------+---------+------------------+-------------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
| id   | model   | storage_capacity | color       | release_year | price      | discounted_price | sold | date_added | product_codes | values                                 | additional_info                                                                   | vector                              |
+------+---------+------------------+-------------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|  120 | LG Wing |              256 | aurora gray |         2020 | 999.989990 |       899.989990 |    1 | 1496660080 | 57,58,59      | 623456764345678976,9223372036854775807 | {"features":["Qualcomm Snapdragon 765G","Swivel display","Triple-camera system"]} | 0.863448,0.402478,0.227971,0.549821 |
+------+---------+------------------+-------------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET product_codes = (53,45,77), values = (92233777368548,92233720368548) WHERE id = 119; select * from tbl WHERE id = 119;"
––– output –––
+------+---------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
| id   | model               | storage_capacity | color | release_year | price      | discounted_price | sold | date_added | product_codes | values                        | additional_info                                                                   | vector                              |
+------+---------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|  119 | BlackBerry Evolve X |               64 | black |         2018 | 599.989990 |       499.989990 |    0 | 3697138672 | 45,53,77      | 92233720368548,92233777368548 | {"features":["Qualcomm Snapdragon 660","5.99-inch display","Dual-camera system"]} | 0.051106,0.948278,0.291892,0.104594 |
+------+---------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET price =15000.99 WHERE id = 117; select * from tbl WHERE id = 117;"
––– output –––
+------+----------------------+------------------+---------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------------+-------------------------------------+
| id   | model                | storage_capacity | color         | release_year | price        | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                                | vector                              |
+------+----------------------+------------------+---------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------------+-------------------------------------+
|  117 | Motorola Edge 20 Pro |              256 | midnight blue |         2021 | 15000.990234 |       599.989990 |    0 | 1501096560 | 48,49,50      | 1123456764345678976,9223372036854775807 | {"features":["Qualcomm Snapdragon 870","OLED display","Triple-camera system"]} | 0.041106,0.938278,0.281892,0.094594 |
+------+----------------------+------------------+---------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET price =15000.99, discounted_price =445.88 WHERE id = 330; select * from tbl WHERE id = 330;"
––– output –––
+------+------------------------------+------------------+------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+---------------------------------------------------------------------------+-------------------------------------+
| id   | model                        | storage_capacity | color      | release_year | price        | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                           | vector                              |
+------+------------------------------+------------------+------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+---------------------------------------------------------------------------+-------------------------------------+
|  330 | Motorola Moto G Power (2021) |               64 | flash gray |         2021 | 15000.990234 |       445.880005 |    1 | 1306783344 | 84,85,86      | 2323456764345678976,9223372036854775807 | {"features":["Snapdragon 662","6.6-inch display","Triple-camera system"]} | 0.663448,0.202478,0.027971,0.349821 |
+------+------------------------------+------------------+------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+---------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET vector= (-0.037794, 0.856278, 0.202892, 0.015594) WHERE id = 102; select * from tbl WHERE id = 102;"
––– output –––
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+------------------------------------------------------------------------------------+--------------------------------------+
| id   | model     | storage_capacity | color | release_year | price      | discounted_price | sold | date_added | product_codes | values                                 | additional_info                                                                    | vector                               |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+------------------------------------------------------------------------------------+--------------------------------------+
|  102 | iPhone 13 |              128 | blue  |         2021 | 799.989990 |       719.989990 |    0 | 1820294112 | 4,5,6         | 623456764345678976,9223372036854775807 | {"features":["A15 Bionic chip","Ceramic Shield front cover","Dual-camera system"]} | -0.037794,0.856278,0.202892,0.015594 |
+------+-----------+------------------+-------+--------------+------------+------------------+------+------------+---------------+----------------------------------------+------------------------------------------------------------------------------------+--------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET price =15000.99, discounted_price =445.88, vector= (-0.037794, 0.856278, 0.202892, 0.015594) WHERE id = 336; select * from tbl WHERE id = 336;"
––– output –––
+------+----------------------+------------------+-------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+--------------------------------------+
| id   | model                | storage_capacity | color | release_year | price        | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                             | vector                               |
+------+----------------------+------------------+-------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+--------------------------------------+
|  336 | HTC Wildfire E1 lite |               32 | black |         2021 | 15000.990234 |       445.880005 |    1 | 3438054384 | 102,103,104   | 2923456764345678976,9223372036854775807 | {"features":["MediaTek Helio A20","6.1-inch display","Dual-camera system"]} | -0.037794,0.856278,0.202892,0.015594 |
+------+----------------------+------------------+-------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+--------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model='iPhone 13 Pro Max', color='titan', storage_capacity=1000, release_year=2023, sold=1, date_added=4077861360, product_codes=(30,31,32), values= (9223372444854775807,9223372036812375244), additional_info= '{\"features\":[\"Snapdragon 900\",\"8.0-inch display\",\"Dual-camera new-system\"]}', vector= (-0.037795, 0.856278, 0.202892, -0.015595) WHERE id = 247; select * from tbl WHERE id = 247;"
––– output –––
+------+-------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+---------------------------------------+
| id   | model             | storage_capacity | color | release_year | price      | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                             | vector                                |
+------+-------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+---------------------------------------+
|  247 | iPhone 13 Pro Max |             1000 | titan |         2023 | 799.989990 |       699.989990 |    1 | 4077861360 | 30,31,32      | 9223372036812375244,9223372036854775807 | {"features":["Snapdragon 900","8.0-inch display","Dual-camera new-system"]} | -0.037795,0.856278,0.202892,-0.015595 |
+------+-------------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+---------------------------------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET additional_info= '{\"features\":[\"Snapdragon 900\",\"8.0-inch display\",\"Dual-camera new-system\"]}' WHERE id = 323; select * from tbl WHERE id =323;"
––– output –––
+------+------------------+------------------+---------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+-------------------------------------+
| id   | model            | storage_capacity | color         | release_year | price      | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                             | vector                              |
+------+------------------+------------------+---------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+-------------------------------------+
|  323 | Asus ROG Phone 5 |              256 | phantom black |         2021 | 999.989990 |       899.989990 |    0 | 3632367600 | 66,67,68      | 1723456764345678976,9223372036854775807 | {"features":["Snapdragon 900","8.0-inch display","Dual-camera new-system"]} | 0.071106,0.968278,0.311892,0.124594 |
+------+------------------+------------------+---------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -h0 -P9306 -e "Replace Into tbl Set price =15780.99, discounted_price =335.88 WHERE id = 335; select * from tbl WHERE id = 335;"
––– output –––
+------+-------------+------------------+--------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-------------------------------------------------------------------------+---------------------------------------+
| id   | model       | storage_capacity | color        | release_year | price        | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                         | vector                                |
+------+-------------+------------------+--------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-------------------------------------------------------------------------+---------------------------------------+
|  335 | LG G8 ThinQ |              128 | aurora black |         2019 | 15780.990234 |       335.880005 |    0 | 1194467680 | 99,100,101    | 2823456764345678976,9223372036854775807 | {"features":["Snapdragon 855","6.1-inch display","Dual-camera system"]} | -0.118894,0.778278,0.121892,-0.065406 |
+------+-------------+------------------+--------------+--------------+--------------+------------------+------+------------+---------------+-----------------------------------------+-------------------------------------------------------------------------+---------------------------------------+
––– input –––
curl -X POST "http://localhost:9308/tbl/_update/101" -H "Content-Type: application/json" -d '{"doc": {"model": "new-model", "color": "new-color"}}'; echo $?
––– output –––
{"_index":"tbl","updated":1}0
––– input –––
start_time=$(date +%s%3N) && for i in {1..5000}; do echo "REPLACE INTO tbl SET color = 'color_$i' WHERE id = ${i}01;"; done > /tmp/replace_dump && mysql -h0 -P9306 < /tmp/replace_dump > /dev/null && end_time=$(date +%s%3N) && export elapsed_time=$((end_time - start_time))
––– output –––
––– input –––
echo $elapsed_time
––– output –––
#!/[0-9]{4,5}/!#
––– input –––
mysql -h0 -P9306 -e "select count(*) from tbl WHERE regex (color, 'color_[0-9]+')"
––– output –––
+----------+
| count(*) |
+----------+
|     5000 |
+----------+
––– input –––
start_time2=$(date +%s%3N) && for i in {1..5000}; do echo "REPLACE INTO tbl (id, model, storage_capacity, color, release_year, price, discounted_price, sold, date_added, product_codes, values, additional_info, vector) VALUES (${i}101, 'iPhone 13 Pro', 256, 'silver${i}', 2021, 1099.99, 989.99, 'TRUE', '1591362342000', (1,2,3), (523456764345678976, 98765409877866654098, 1109876543450987650987), '{\"features\": [\"ProMotion display\", \"A15 Bionic chip\", \"Ceramic Shield front cover\"]}', (0.773448, 0.312478, 0.137971, 0.459821));"; done > /tmp/replace_dump && mysql -h0 -P9306 < /tmp/replace_dump > /dev/null && end_time2=$(date +%s%3N) && export elapsed_time2=$((end_time2 - start_time2))
––– output –––
––– input –––
echo $elapsed_time2
––– output –––
#!/[0-9]{3,4}/!#
––– input –––
mysql -h0 -P9306 -e "select count(*) from tbl WHERE regex (color, 'silver[0-9]+')"
––– output –––
+----------+
| count(*) |
+----------+
|     5000 |
+----------+
––– input –––
echo $((elapsed_time / elapsed_time2))
––– output –––
#!/[1-9]|1[0-2]/!#
––– input –––
mysql -v -h0 -P9306 -e "SHOW TABLES; create table abc(id, t1 text, t2 text indexed) engine='columnar'; insert into abc VALUES (1, 'abc', 'cde'); desc abc;"
––– output –––
--------------
SHOW TABLES
--------------
+-------+------+
| Index | Type |
+-------+------+
| tbl   | rt   |
+-------+------+
--------------
create table abc(id, t1 text, t2 text indexed) engine='columnar'
--------------
--------------
insert into abc VALUES (1, 'abc', 'cde')
--------------
--------------
desc abc
--------------
+-------+--------+----------------+
| Field | Type   | Properties     |
+-------+--------+----------------+
| id    | bigint | columnar       |
| t1    | text   | indexed stored |
| t2    | text   | indexed        |
+-------+--------+----------------+
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO abc SET t1 ='iPhone 15 PRO' WHERE id = 1;"
––– output –––
ERROR 1064 (42000) at line 1: Field t2 doesn't have stored property. Replace query can't be performed
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 16 PRO MAX' WHERE id > 105;"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET model ='iPhone 16 PRO MAX' WHERE id > 105'
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 17 PRO MAX' WHERE id = 'abs';"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET model ='iPhone 17 PRO MAX' WHERE id = 'abs''
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 18 PRO' WHERE id in (1,2,3);"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET model ='iPhone 18 PRO' WHERE id in (1,2,3)'
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET model ='iPhone 18 PRO' WHERE sold = 0;"
––– output –––
ERROR 1064 (42000) at line 1: P01: syntax error, unexpected SET, expecting VALUES near 'SET model ='iPhone 18 PRO' WHERE sold = 0'
––– input –––
mysql -h0 -P9306 -e "REPLACE INTO tbl SET id =777 WHERE id = 144; select * from tbl WHERE id = 144;"
––– output –––
+------+-----------------+------------------+--------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------+-------------------------------------+
| id   | model           | storage_capacity | color        | release_year | price      | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                    | vector                              |
+------+-----------------+------------------+--------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------+-------------------------------------+
|  144 | Sony Xperia XZ3 |               64 | forest green |         2018 | 899.989990 |       799.989990 |    1 | 3308512240 | 126,127,128   | 3723456764345678976,9223372036854775807 | {"features":["Snapdragon 845","6.0-inch display","Single camera"]} | 0.733448,0.272478,0.097971,0.419821 |
+------+-----------------+------------------+--------------+--------------+------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------+-------------------------------------+
test/clt-tests/core/show-version.rec
––– input –––
rm -f /var/log/manticore/searchd.log; searchd --stopwait > /dev/null; searchd; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; fi
––– output –––
- Manticore %{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})
+ Manticore 6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-%{YEAR}, Manticore Software LTD (https://manticoresearch.com)
- [#!/[0-9]{2}:[0-9]{2}.[0-9]{3}/!#] [#!/[0-9]+/!#] using config file '/etc/manticoresearch/manticore.conf' (%{NUMBER} chars)...
+ [59:19.874] [22] WARNING: Error initializing secondary index: daemon requires secondary library v15 (trying to load v14)
- starting daemon version '%{SEMVER} %{COMMITDATE}#!/(\sdev)?\s/!#(columnar %{SEMVER} %{COMMITDATE}) (secondary %{SEMVER} %{COMMITDATE}) (knn %{SEMVER} %{COMMITDATE})' ...
+ [59:19.874] [22] using config file '/etc/manticoresearch/manticore.conf' (273 chars)...
- listening on %{IPADDR}:9312 for sphinx and http(s)
+ starting daemon version '6.2.13 84fdb2574@24051613 dev (columnar 2.2.5 478fff2@240417) (knn 2.2.5 478fff2@240417)' ...
- listening on %{IPADDR}:9306 for mysql
+ listening on 127.0.0.1:9312 for sphinx and http(s)
- listening on %{IPADDR}:9308 for sphinx and http(s)
+ listening on 127.0.0.1:9306 for mysql
- Buddy started!
+ listening on 127.0.0.1:9308 for sphinx and http(s)
+ Buddy started!
––– input –––
mysql -h0 -P9306 -e "show version\G;"
––– output –––
*************************** 1. row ***************************
Component: Daemon
Version: %{SEMVER} %{COMMITDATE} dev
*************************** 2. row ***************************
Component: Columnar
Version: columnar %{SEMVER} %{COMMITDATE}
*************************** 3. row ***************************
- Component: Secondary
+ Component: KNN
- Version: secondary %{SEMVER} %{COMMITDATE}
+ Version: knn 2.2.5 478fff2@240417
*************************** 4. row ***************************
- Component: KNN
+ Component: Buddy
- Version: knn %{SEMVER} %{COMMITDATE}
+ Version: buddy v2.3.7
- *************************** 5. row ***************************
+
- Component: Buddy
- Version: buddy v%{SEMVER}
-

@PavelShilin89 PavelShilin89 mentioned this pull request May 22, 2024
@PavelShilin89 PavelShilin89 merged commit 1fa2bcd into master May 22, 2024
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ALTER distributed
3 participants