Skip to content

Uppercased table names fix#4415

Merged
Nick-S-2018 merged 5 commits into
masterfrom
uppercased-table-names-fix
Apr 14, 2026
Merged

Uppercased table names fix#4415
Nick-S-2018 merged 5 commits into
masterfrom
uppercased-table-names-fix

Conversation

@Nick-S-2018
Copy link
Copy Markdown
Collaborator

Type of Change (select one):

  • Bug fix
  • New feature
  • Documentation update

Description of the Change:

Related Issue (provide the link):

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 30, 2026

Linux debug test results

1 182 tests   1 118 ✅  56m 33s ⏱️
    1 suites     64 💤
    1 files        0 ❌

Results for commit 8255bb7.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 30, 2026

Linux release test results

1 182 tests   1 118 ✅  16m 27s ⏱️
    1 suites     64 💤
    1 files        0 ❌

Results for commit 8255bb7.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 30, 2026

Linux release MCL test results

1 183 tests   1 162 ✅  18m 19s ⏱️
    1 suites     21 💤
    1 files        0 ❌

Results for commit 7fab087.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/http-interface/sql-endpoint test/clt-tests/http-interface/sql-mode-raw-endpoint test/clt-tests/http-interface/test-concurrent-requests-to-buddy test/clt-tests/http-interface/test-content-type-header-daemon-only test/clt-tests/http-interface/test-content-type-header-with-buddy test/clt-tests/http-interface/test-distributed-inserts test/clt-tests/http-interface/test-fuzzy-search-sql-endpoint test/clt-tests/http-interface/test-inserts test/clt-tests/http-interface/test-manticore-handling-id test/clt-tests/indexer/test-max-iops
✅ OK: 9
❌ Failed: 1
⏳ Duration: 57s
👉 Check Action Results for commit 7ac6b6c

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/http-interface/test-inserts.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test1 (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');"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (1, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '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));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (2, 'Galaxy S21 Ultra', 128, 'black', 2021, 1199.99, 1099.99, 0, '1609459200000', (4,5,6), (1234567890123456789, 9876543210987654321), '{\"features\": [\"Dynamic AMOLED 2X\", \"Exynos 2100\", \"108MP camera\"]}', (0.5, 0.4, 0.3, 0.2));"; echo $?
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "test1", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7, 8, 9], "values": [987654321987654321, 123456789123456789], "additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]}, "vector": [0.8, 0.6, 0.4, 0.2]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "TEST1", "id": 6, "doc": {"model": "Fairphone 5", "storage_capacity": 256, "color": "blue", "release_year": 2023, "price": 749.99, "discounted_price": 699.99, "sold": false, "date_added": 1693526400000, "product_codes": [10,11], "values": [112233445566778899, 998877665544332211], "additional_info": {"features": ["Modular design", "Extended support"]}, "vector": [0.3, 0.1, 0.7, 0.9]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"table": "TEST1", "query": {"equals": {"field": "id", "value": 6}}}' | jq '.hits.hits[0]._id=="6"'
––– output –––
- true
+ false
––– input –––
mysql -P9306 -h0 -e "SHOW TABLES LIKE 't_s%';"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
| id   | model            | storage_capacity | color  | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                                   | vector                              |
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|    2 | Galaxy S21 Ultra |              128 | black  |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}                   | 0.500000,0.400000,0.300000,0.200000 |
|    3 | Pixel 6          |              128 | white  |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}          | 0.800000,0.600000,0.400000,0.200000 |
- |    1 | iPhone 13 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 |
+ |    6 | Fairphone 5      |              256 | blue   |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                                | 0.300000,0.100000,0.700000,0.900000 |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
+ |    1 | iPhone 13 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 –––
curl -s -X POST http://localhost:9308/replace -d '{"table": "test1", "id": 1, "doc": {"model": "iPhone 13 Pro Max", "storage_capacity": 512, "color": "gold", "release_year": 2021, "price": 1299.99, "discounted_price": 1199.99, "sold": true, "date_added": 1591362342000, "product_codes": [7, 8, 9], "values": [1234567890123456789, 9876543210987654321], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Improved battery life"]}, "vector": [0.9, 0.8, 0.7, 0.6]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
- |    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
- |    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
+ |    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
+ |    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
+ +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
echo -e '{"index":{"_index":"test1","_id":4}}\n{"id":4,"model":"iPhone 14","storage_capacity":256,"color":"black","release_year":2022,"price":999.99,"discounted_price":899.99,"sold":1,"date_added":1661990400,"product_codes":[19,20,21],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["A16 Bionic","Dynamic Island"]},"vector":[0.1,0.2,0.3,0.4]}\n{"index":{"_index":"test1","_id":5}}\n{"id":5,"model":"Pixel 7","storage_capacity":128,"color":"white","release_year":2022,"price":699.99,"discounted_price":649.99,"sold":0,"date_added":1661990400,"product_codes":[16,17,18],"values":[223344556677889900,998877665544332211],"additional_info":{"features":["Tensor G2","120Hz display"]},"vector":[0.4,0.5,0.6,0.7]}' > bulk.json; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @bulk.json http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
- |    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
+ |    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
- |    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
+ |    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
- |    4 | iPhone 14         |              256 | black |         2022 |  999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                     | {"features":["A16 Bionic","Dynamic Island"]}                                 | 0.100000,0.200000,0.300000,0.400000 |
+ |    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
- |    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
+ |    4 | iPhone 14         |              256 | black |         2022 |  999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                     | {"features":["A16 Bionic","Dynamic Island"]}                                 | 0.100000,0.200000,0.300000,0.400000 |
- |    5 | Pixel 7           |              128 | white |         2022 |  699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211   | {"features":["Tensor G2","120Hz display"]}                                   | 0.400000,0.500000,0.600000,0.700000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
+ |    5 | Pixel 7           |              128 | white |         2022 |  699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211   | {"features":["Tensor G2","120Hz display"]}                                   | 0.400000,0.500000,0.600000,0.700000 |
+ +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "test1", "id": 1}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "TEST1", "id": 2}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ +------+-------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | id   | model            | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                          | vector                              |
+ | id   | model       | storage_capacity | color | release_year | price      | discounted_price | sold | date_added | product_codes | values                                | additional_info                                                          | vector                              |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ +------+-------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- |    2 | Galaxy S21 Ultra |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}          | 0.500000,0.400000,0.300000,0.200000 |
+ |    3 | Pixel 6     |              128 | white |         2021 | 599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- |    4 | iPhone 14        |              256 | black |         2022 |  999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                     | {"features":["A16 Bionic","Dynamic Island"]}                             | 0.100000,0.200000,0.300000,0.400000 |
+ |    4 | iPhone 14   |              256 | black |         2022 | 999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                   | {"features":["A16 Bionic","Dynamic Island"]}                             | 0.100000,0.200000,0.300000,0.400000 |
- |    3 | Pixel 6          |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
+ |    6 | Fairphone 5 |              256 | blue  |         2023 | 749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211 | {"features":["Modular design","Extended support"]}                       | 0.300000,0.100000,0.700000,0.900000 |
- |    5 | Pixel 7          |              128 | white |         2022 |  699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211   | {"features":["Tensor G2","120Hz display"]}                               | 0.400000,0.500000,0.600000,0.700000 |
+ |    5 | Pixel 7     |              128 | white |         2022 | 699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]}                               | 0.400000,0.500000,0.600000,0.700000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ +------+-------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -P9306 -h0 -e "DROP TABLE test1;"; echo $?
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "show tables;"; echo $?
––– output –––
OK

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 30, 2026

Windows test results

1 154 tests   1 090 ✅  1h 6m 21s ⏱️
    1 suites     64 💤
    1 files        0 ❌

Results for commit 8255bb7.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/http-interface/sql-endpoint test/clt-tests/http-interface/sql-mode-raw-endpoint test/clt-tests/http-interface/test-concurrent-requests-to-buddy test/clt-tests/http-interface/test-content-type-header-daemon-only test/clt-tests/http-interface/test-content-type-header-with-buddy test/clt-tests/http-interface/test-distributed-inserts test/clt-tests/http-interface/test-fuzzy-search-sql-endpoint test/clt-tests/http-interface/test-inserts test/clt-tests/http-interface/test-manticore-handling-id test/clt-tests/indexer/test-max-iops
✅ OK: 9
❌ Failed: 1
⏳ Duration: 54s
👉 Check Action Results for commit 7ac6b6c

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/http-interface/test-inserts.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test1 (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');"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (1, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '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));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (2, 'Galaxy S21 Ultra', 128, 'black', 2021, 1199.99, 1099.99, 0, '1609459200000', (4,5,6), (1234567890123456789, 9876543210987654321), '{\"features\": [\"Dynamic AMOLED 2X\", \"Exynos 2100\", \"108MP camera\"]}', (0.5, 0.4, 0.3, 0.2));"; echo $?
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "test1", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7, 8, 9], "values": [987654321987654321, 123456789123456789], "additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]}, "vector": [0.8, 0.6, 0.4, 0.2]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "TEST1", "id": 6, "doc": {"model": "Fairphone 5", "storage_capacity": 256, "color": "blue", "release_year": 2023, "price": 749.99, "discounted_price": 699.99, "sold": false, "date_added": 1693526400000, "product_codes": [10,11], "values": [112233445566778899, 998877665544332211], "additional_info": {"features": ["Modular design", "Extended support"]}, "vector": [0.3, 0.1, 0.7, 0.9]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"table": "TEST1", "query": {"equals": {"field": "id", "value": 6}}}' | jq '.hits.hits[0]._id=="6"'
––– output –––
- true
+ false
––– input –––
mysql -P9306 -h0 -e "SHOW TABLES LIKE 't_s%';"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
| id   | model            | storage_capacity | color  | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                                   | vector                              |
+------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|    2 | Galaxy S21 Ultra |              128 | black  |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}                   | 0.500000,0.400000,0.300000,0.200000 |
|    3 | Pixel 6          |              128 | white  |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}          | 0.800000,0.600000,0.400000,0.200000 |
- |    1 | iPhone 13 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 |
+ |    6 | Fairphone 5      |              256 | blue   |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                                | 0.300000,0.100000,0.700000,0.900000 |
- +------+------------------+------------------+--------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
+ |    1 | iPhone 13 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 –––
curl -s -X POST http://localhost:9308/replace -d '{"table": "test1", "id": 1, "doc": {"model": "iPhone 13 Pro Max", "storage_capacity": 512, "color": "gold", "release_year": 2021, "price": 1299.99, "discounted_price": 1199.99, "sold": true, "date_added": 1591362342000, "product_codes": [7, 8, 9], "values": [1234567890123456789, 9876543210987654321], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Improved battery life"]}, "vector": [0.9, 0.8, 0.7, 0.6]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
- |    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
- |    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
+ |    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
+ |    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
+ +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
echo -e '{"index":{"_index":"test1","_id":4}}\n{"id":4,"model":"iPhone 14","storage_capacity":256,"color":"black","release_year":2022,"price":999.99,"discounted_price":899.99,"sold":1,"date_added":1661990400,"product_codes":[19,20,21],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["A16 Bionic","Dynamic Island"]},"vector":[0.1,0.2,0.3,0.4]}\n{"index":{"_index":"test1","_id":5}}\n{"id":5,"model":"Pixel 7","storage_capacity":128,"color":"white","release_year":2022,"price":699.99,"discounted_price":649.99,"sold":0,"date_added":1661990400,"product_codes":[16,17,18],"values":[223344556677889900,998877665544332211],"additional_info":{"features":["Tensor G2","120Hz display"]},"vector":[0.4,0.5,0.6,0.7]}' > bulk.json; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @bulk.json http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
- |    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
+ |    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
- |    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
+ |    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
- |    4 | iPhone 14         |              256 | black |         2022 |  999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                     | {"features":["A16 Bionic","Dynamic Island"]}                                 | 0.100000,0.200000,0.300000,0.400000 |
+ |    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
- |    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
+ |    4 | iPhone 14         |              256 | black |         2022 |  999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                     | {"features":["A16 Bionic","Dynamic Island"]}                                 | 0.100000,0.200000,0.300000,0.400000 |
- |    5 | Pixel 7           |              128 | white |         2022 |  699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211   | {"features":["Tensor G2","120Hz display"]}                                   | 0.400000,0.500000,0.600000,0.700000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
- +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
+ |    5 | Pixel 7           |              128 | white |         2022 |  699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211   | {"features":["Tensor G2","120Hz display"]}                                   | 0.400000,0.500000,0.600000,0.700000 |
+ +------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "test1", "id": 1}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "TEST1", "id": 2}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ +------+-------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- | id   | model            | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                          | vector                              |
+ | id   | model       | storage_capacity | color | release_year | price      | discounted_price | sold | date_added | product_codes | values                                | additional_info                                                          | vector                              |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ +------+-------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
- |    2 | Galaxy S21 Ultra |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}          | 0.500000,0.400000,0.300000,0.200000 |
+ |    3 | Pixel 6     |              128 | white |         2021 | 599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321 | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
- |    4 | iPhone 14        |              256 | black |         2022 |  999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                     | {"features":["A16 Bionic","Dynamic Island"]}                             | 0.100000,0.200000,0.300000,0.400000 |
+ |    4 | iPhone 14   |              256 | black |         2022 | 999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                   | {"features":["A16 Bionic","Dynamic Island"]}                             | 0.100000,0.200000,0.300000,0.400000 |
- |    3 | Pixel 6          |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]} | 0.800000,0.600000,0.400000,0.200000 |
+ |    6 | Fairphone 5 |              256 | blue  |         2023 | 749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211 | {"features":["Modular design","Extended support"]}                       | 0.300000,0.100000,0.700000,0.900000 |
- |    5 | Pixel 7          |              128 | white |         2022 |  699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211   | {"features":["Tensor G2","120Hz display"]}                               | 0.400000,0.500000,0.600000,0.700000 |
+ |    5 | Pixel 7     |              128 | white |         2022 | 699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211 | {"features":["Tensor G2","120Hz display"]}                               | 0.400000,0.500000,0.600000,0.700000 |
- +------+------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
+ +------+-------------+------------------+-------+--------------+------------+------------------+------+------------+---------------+---------------------------------------+--------------------------------------------------------------------------+-------------------------------------+
––– input –––
mysql -P9306 -h0 -e "DROP TABLE test1;"; echo $?
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "show tables;"; echo $?
––– output –––
OK

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/http-interface/sql-endpoint test/clt-tests/http-interface/sql-mode-raw-endpoint test/clt-tests/http-interface/test-concurrent-requests-to-buddy test/clt-tests/http-interface/test-content-type-header-daemon-only test/clt-tests/http-interface/test-content-type-header-with-buddy test/clt-tests/http-interface/test-distributed-inserts test/clt-tests/http-interface/test-fuzzy-search-sql-endpoint test/clt-tests/http-interface/test-inserts test/clt-tests/http-interface/test-manticore-handling-id test/clt-tests/indexer/test-max-iops
✅ OK: 9
❌ Failed: 1
⏳ Duration: 56s
👉 Check Action Results for commit 883ca66

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/http-interface/test-inserts.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test1 (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');"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (1, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '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));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (2, 'Galaxy S21 Ultra', 128, 'black', 2021, 1199.99, 1099.99, 0, '1609459200000', (4,5,6), (1234567890123456789, 9876543210987654321), '{\"features\": [\"Dynamic AMOLED 2X\", \"Exynos 2100\", \"108MP camera\"]}', (0.5, 0.4, 0.3, 0.2));"; echo $?
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "test1", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7, 8, 9], "values": [987654321987654321, 123456789123456789], "additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]}, "vector": [0.8, 0.6, 0.4, 0.2]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "TEST1", "id": 6, "doc": {"model": "Fairphone 5", "storage_capacity": 256, "color": "blue", "release_year": 2023, "price": 749.99, "discounted_price": 699.99, "sold": false, "date_added": 1693526400000, "product_codes": [10,11], "values": [112233445566778899, 998877665544332211], "additional_info": {"features": ["Modular design", "Extended support"]}, "vector": [0.3, 0.1, 0.7, 0.9]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"table": "TEST1", "query": {"equals": {"id": 6}}}' | jq '.hits.hits[0]._id==6'
––– output –––
- false
+ true
––– input –––
mysql -P9306 -h0 -e "SHOW TABLES LIKE 't_s%';"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"table": "test1", "id": 1, "doc": {"model": "iPhone 13 Pro Max", "storage_capacity": 512, "color": "gold", "release_year": 2021, "price": 1299.99, "discounted_price": 1199.99, "sold": true, "date_added": 1591362342000, "product_codes": [7, 8, 9], "values": [1234567890123456789, 9876543210987654321], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Improved battery life"]}, "vector": [0.9, 0.8, 0.7, 0.6]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
echo -e '{"index":{"_index":"test1","_id":4}}\n{"id":4,"model":"iPhone 14","storage_capacity":256,"color":"black","release_year":2022,"price":999.99,"discounted_price":899.99,"sold":1,"date_added":1661990400,"product_codes":[19,20,21],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["A16 Bionic","Dynamic Island"]},"vector":[0.1,0.2,0.3,0.4]}\n{"index":{"_index":"test1","_id":5}}\n{"id":5,"model":"Pixel 7","storage_capacity":128,"color":"white","release_year":2022,"price":699.99,"discounted_price":649.99,"sold":0,"date_added":1661990400,"product_codes":[16,17,18],"values":[223344556677889900,998877665544332211],"additional_info":{"features":["Tensor G2","120Hz display"]},"vector":[0.4,0.5,0.6,0.7]}' > bulk.json; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @bulk.json http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
|    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
|    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
|    4 | iPhone 14         |              256 | black |         2022 |  999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                     | {"features":["A16 Bionic","Dynamic Island"]}                                 | 0.100000,0.200000,0.300000,0.400000 |
- |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                          | 0.300000,0.100000,0.700000,0.900000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
|    5 | Pixel 7           |              128 | white |         2022 |  699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211   | {"features":["Tensor G2","120Hz display"]}                                   | 0.400000,0.500000,0.600000,0.700000 |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "test1", "id": 1}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "TEST1", "id": 2}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "DROP TABLE test1;"; echo $?
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "show tables;"; echo $?
––– output –––
OK

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/http-interface/sql-endpoint test/clt-tests/http-interface/sql-mode-raw-endpoint test/clt-tests/http-interface/test-concurrent-requests-to-buddy test/clt-tests/http-interface/test-content-type-header-daemon-only test/clt-tests/http-interface/test-content-type-header-with-buddy test/clt-tests/http-interface/test-distributed-inserts test/clt-tests/http-interface/test-fuzzy-search-sql-endpoint test/clt-tests/http-interface/test-inserts test/clt-tests/http-interface/test-manticore-handling-id test/clt-tests/indexer/test-max-iops
✅ OK: 9
❌ Failed: 1
⏳ Duration: 56s
👉 Check Action Results for commit 4c0bfad

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/http-interface/test-inserts.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test1 (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');"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (1, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '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));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (2, 'Galaxy S21 Ultra', 128, 'black', 2021, 1199.99, 1099.99, 0, '1609459200000', (4,5,6), (1234567890123456789, 9876543210987654321), '{\"features\": [\"Dynamic AMOLED 2X\", \"Exynos 2100\", \"108MP camera\"]}', (0.5, 0.4, 0.3, 0.2));"; echo $?
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "test1", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7, 8, 9], "values": [987654321987654321, 123456789123456789], "additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]}, "vector": [0.8, 0.6, 0.4, 0.2]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "TEST1", "id": 6, "doc": {"model": "Fairphone 5", "storage_capacity": 256, "color": "blue", "release_year": 2023, "price": 749.99, "discounted_price": 699.99, "sold": false, "date_added": 1693526400000, "product_codes": [10,11], "values": [112233445566778899, 998877665544332211], "additional_info": {"features": ["Modular design", "Extended support"]}, "vector": [0.3, 0.1, 0.7, 0.9]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"table": "TEST1", "query": {"equals": {"id": 6}}}' | jq '.hits.hits[0]._id==6'
––– output –––
- false
+ true
––– input –––
mysql -P9306 -h0 -e "SHOW TABLES LIKE 't_s%';"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"table": "test1", "id": 1, "doc": {"model": "iPhone 13 Pro Max", "storage_capacity": 512, "color": "gold", "release_year": 2021, "price": 1299.99, "discounted_price": 1199.99, "sold": true, "date_added": 1591362342000, "product_codes": [7, 8, 9], "values": [1234567890123456789, 9876543210987654321], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Improved battery life"]}, "vector": [0.9, 0.8, 0.7, 0.6]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
echo -e '{"index":{"_index":"test1","_id":4}}\n{"id":4,"model":"iPhone 14","storage_capacity":256,"color":"black","release_year":2022,"price":999.99,"discounted_price":899.99,"sold":1,"date_added":1661990400,"product_codes":[19,20,21],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["A16 Bionic","Dynamic Island"]},"vector":[0.1,0.2,0.3,0.4]}\n{"index":{"_index":"test1","_id":5}}\n{"id":5,"model":"Pixel 7","storage_capacity":128,"color":"white","release_year":2022,"price":699.99,"discounted_price":649.99,"sold":0,"date_added":1661990400,"product_codes":[16,17,18],"values":[223344556677889900,998877665544332211],"additional_info":{"features":["Tensor G2","120Hz display"]},"vector":[0.4,0.5,0.6,0.7]}' > bulk.json; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @bulk.json http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
|    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
|    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
|    4 | iPhone 14         |              256 | black |         2022 |  999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                     | {"features":["A16 Bionic","Dynamic Island"]}                                 | 0.100000,0.200000,0.300000,0.400000 |
- |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                          | 0.300000,0.100000,0.700000,0.900000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
|    5 | Pixel 7           |              128 | white |         2022 |  699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211   | {"features":["Tensor G2","120Hz display"]}                                   | 0.400000,0.500000,0.600000,0.700000 |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "test1", "id": 1}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "TEST1", "id": 2}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "DROP TABLE test1;"; echo $?
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "show tables;"; echo $?
––– output –––
OK

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/http-interface/sql-endpoint test/clt-tests/http-interface/sql-mode-raw-endpoint test/clt-tests/http-interface/test-concurrent-requests-to-buddy test/clt-tests/http-interface/test-content-type-header-daemon-only test/clt-tests/http-interface/test-content-type-header-with-buddy test/clt-tests/http-interface/test-distributed-inserts test/clt-tests/http-interface/test-fuzzy-search-sql-endpoint test/clt-tests/http-interface/test-inserts test/clt-tests/http-interface/test-manticore-handling-id test/clt-tests/indexer/test-max-iops
✅ OK: 9
❌ Failed: 1
⏳ Duration: 58s
👉 Check Action Results for commit d74f4f3

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/http-interface/test-inserts.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test1 (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');"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (1, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '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));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (2, 'Galaxy S21 Ultra', 128, 'black', 2021, 1199.99, 1099.99, 0, '1609459200000', (4,5,6), (1234567890123456789, 9876543210987654321), '{\"features\": [\"Dynamic AMOLED 2X\", \"Exynos 2100\", \"108MP camera\"]}', (0.5, 0.4, 0.3, 0.2));"; echo $?
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "test1", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7, 8, 9], "values": [987654321987654321, 123456789123456789], "additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]}, "vector": [0.8, 0.6, 0.4, 0.2]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "TEST1", "id": 6, "doc": {"model": "Fairphone 5", "storage_capacity": 256, "color": "blue", "release_year": 2023, "price": 749.99, "discounted_price": 699.99, "sold": false, "date_added": 1693526400000, "product_codes": [10,11], "values": [112233445566778899, 998877665544332211], "additional_info": {"features": ["Modular design", "Extended support"]}, "vector": [0.3, 0.1, 0.7, 0.9]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"table": "TEST1", "query": {"equals": {"id": 6}}}' | jq '.hits.hits[0]._id==6'
––– output –––
- false
+ true
––– input –––
mysql -P9306 -h0 -e "SHOW TABLES LIKE 't_s%';"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"table": "test1", "id": 1, "doc": {"model": "iPhone 13 Pro Max", "storage_capacity": 512, "color": "gold", "release_year": 2021, "price": 1299.99, "discounted_price": 1199.99, "sold": true, "date_added": 1591362342000, "product_codes": [7, 8, 9], "values": [1234567890123456789, 9876543210987654321], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Improved battery life"]}, "vector": [0.9, 0.8, 0.7, 0.6]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
- |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                          | 0.300000,0.100000,0.700000,0.900000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
|    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
|    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
echo -e '{"index":{"_index":"test1","_id":4}}\n{"id":4,"model":"iPhone 14","storage_capacity":256,"color":"black","release_year":2022,"price":999.99,"discounted_price":899.99,"sold":1,"date_added":1661990400,"product_codes":[19,20,21],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["A16 Bionic","Dynamic Island"]},"vector":[0.1,0.2,0.3,0.4]}\n{"index":{"_index":"test1","_id":5}}\n{"id":5,"model":"Pixel 7","storage_capacity":128,"color":"white","release_year":2022,"price":699.99,"discounted_price":649.99,"sold":0,"date_added":1661990400,"product_codes":[16,17,18],"values":[223344556677889900,998877665544332211],"additional_info":{"features":["Tensor G2","120Hz display"]},"vector":[0.4,0.5,0.6,0.7]}' > bulk.json; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @bulk.json http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
|    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
|    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
|    4 | iPhone 14         |              256 | black |         2022 |  999.989990 |       899.989990 |    1 | 1661990400 | 19,20,21      | 1234567890123456789                     | {"features":["A16 Bionic","Dynamic Island"]}                                 | 0.100000,0.200000,0.300000,0.400000 |
- |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                          | 0.300000,0.100000,0.700000,0.900000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
|    5 | Pixel 7           |              128 | white |         2022 |  699.989990 |       649.989990 |    0 | 1661990400 | 16,17,18      | 223344556677889900,998877665544332211   | {"features":["Tensor G2","120Hz display"]}                                   | 0.400000,0.500000,0.600000,0.700000 |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "test1", "id": 1}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "TEST1", "id": 2}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "DROP TABLE test1;"; echo $?
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "show tables;"; echo $?
––– output –––
OK

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/http-interface/sql-endpoint test/clt-tests/http-interface/sql-mode-raw-endpoint test/clt-tests/http-interface/test-concurrent-requests-to-buddy test/clt-tests/http-interface/test-content-type-header-daemon-only test/clt-tests/http-interface/test-content-type-header-with-buddy test/clt-tests/http-interface/test-distributed-inserts test/clt-tests/http-interface/test-fuzzy-search-sql-endpoint test/clt-tests/http-interface/test-inserts test/clt-tests/http-interface/test-manticore-handling-id test/clt-tests/indexer/test-max-iops
✅ OK: 9
❌ Failed: 1
⏳ Duration: 60s
👉 Check Action Results for commit 5d11102

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/http-interface/test-inserts.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test1 (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');"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (1, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '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));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (2, 'Galaxy S21 Ultra', 128, 'black', 2021, 1199.99, 1099.99, 0, '1609459200000', (4,5,6), (1234567890123456789, 9876543210987654321), '{\"features\": [\"Dynamic AMOLED 2X\", \"Exynos 2100\", \"108MP camera\"]}', (0.5, 0.4, 0.3, 0.2));"; echo $?
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "test1", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7, 8, 9], "values": [987654321987654321, 123456789123456789], "additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]}, "vector": [0.8, 0.6, 0.4, 0.2]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "TEST1", "id": 6, "doc": {"model": "Fairphone 5", "storage_capacity": 256, "color": "blue", "release_year": 2023, "price": 749.99, "discounted_price": 699.99, "sold": false, "date_added": 1693526400000, "product_codes": [10,11], "values": [112233445566778899, 998877665544332211], "additional_info": {"features": ["Modular design", "Extended support"]}, "vector": [0.3, 0.1, 0.7, 0.9]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"table": "TEST1", "query": {"equals": {"id": 6}}}' | jq '.hits.hits[0]._id==6'
––– output –––
- false
+ true
––– input –––
mysql -P9306 -h0 -e "SHOW TABLES LIKE 't_s%';"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"table": "test1", "id": 1, "doc": {"model": "iPhone 13 Pro Max", "storage_capacity": 512, "color": "gold", "release_year": 2021, "price": 1299.99, "discounted_price": 1199.99, "sold": true, "date_added": 1591362342000, "product_codes": [7, 8, 9], "values": [1234567890123456789, 9876543210987654321], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Improved battery life"]}, "vector": [0.9, 0.8, 0.7, 0.6]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
- |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                          | 0.300000,0.100000,0.700000,0.900000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
|    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
|    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
echo -e '{"index":{"_index":"test1","_id":4}}\n{"id":4,"model":"iPhone 14","storage_capacity":256,"color":"black","release_year":2022,"price":999.99,"discounted_price":899.99,"sold":1,"date_added":1661990400,"product_codes":[19,20,21],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["A16 Bionic","Dynamic Island"]},"vector":[0.1,0.2,0.3,0.4]}\n{"index":{"_index":"test1","_id":5}}\n{"id":5,"model":"Pixel 7","storage_capacity":128,"color":"white","release_year":2022,"price":699.99,"discounted_price":649.99,"sold":0,"date_added":1661990400,"product_codes":[16,17,18],"values":[223344556677889900,998877665544332211],"additional_info":{"features":["Tensor G2","120Hz display"]},"vector":[0.4,0.5,0.6,0.7]}' > bulk.json; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @bulk.json http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "test1", "id": 1}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "TEST1", "id": 2}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "DROP TABLE test1;"; echo $?
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "show tables;"; echo $?
––– output –––
OK

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/mysqldump/maria/no-mcl-multi64 test/clt-tests/mysqldump/maria/pq-table-mysqldump test/clt-tests/mysqldump/maria/random-1m-dump-restore test/clt-tests/performance/concurrent-load-search-stats-validation test/clt-tests/performance/test-json-disk_chunks test/clt-tests/performance/test-optimisation-and-update test/clt-tests/performance/test-show-table-tbl-name-status test/clt-tests/replication/fatal-invalid-port test/clt-tests/replication/test-auto-embeddings-replication test/clt-tests/replication/test-cluster-creation-without-replication
✅ OK: 9
❌ Failed: 1
⏳ Duration: 343s
👉 Check Action Results for commit 5d11102

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/replication/test-auto-embeddings-replication.rec
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "drop table if exists t;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create table t (f text, v float_vector knn_type='hnsw' hnsw_similarity='COSINE' model_name='sentence-transformers/all-MiniLM-L6-v2' from='f');"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: error adding table 't': prealloc: Failed to download model weights
+ 1
––– input –––
mysql -h0 -P1306 -e "create cluster c;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "alter cluster c add t;"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: unknown or wrong type of table 't'
+ 1
––– input –––
mysql -h0 -P2306 -e "join cluster c at '127.0.0.1:1312';"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "insert into c:t(id,f) values(1,'bread');"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 't' absent
+ 1
––– input –––
mysql -E -h0 -P2306 -e "debug wait c status 2 like 'state' option 'timeout'=30;" | awk '/Value:/{print $2}'
––– output –––
- 2
+ 0
––– input –––
mysql -E -h0 -P2306 -e "select id, f from c:t order by id asc;" | awk '/f:/{print $2}'
––– output –––
- bread
+ ERROR 1064 (42000) at line 1: unknown local table(s) 't' in search request
––– input –––
mysql -h0 -P1306 -e "insert into c:t(id,f, v) values(10,'aaps', (0.1, 0.2));"; echo $?
––– output –––
- ERROR 1064 (42000) at line 1: attribute 'v' has model_name=sentence-transformers/all-MiniLM-L6-v2 specified, but vector contents with 2 values is provided
+ ERROR 1064 (42000) at line 1: table 't' absent
1
––– input –––
mysql -h0 -P1306 -e "insert into c:t(id,f, v) values(11,'not related text presented for testing', (-0.02887810952961445,-0.014508943073451519,0.06253206729888916,0.006139140110462904,0.007788040209561586,-0.029897022992372513,0.004299835301935673,-0.02102580852806568,-0.07824035733938217,-0.04040408879518509,-0.04838048294186592,-0.0078645721077919,0.010616137646138668,0.004826101940125227,-0.062401119619607925,0.07758325338363647,0.0104198744520545,0.0028890324756503105,-0.11988074332475662,-0.09860166907310486,0.025224801152944565,-0.00991450808942318,-0.05856771767139435,0.014609863981604576,0.005707146134227514,0.024516092613339424,0.0820961520075798,0.05104028061032295,-0.014301222749054432,-0.06978834420442581,0.051312025636434555,-0.0773017480969429,0.05717596784234047,0.03005439229309559,-0.06304150074720383,0.06810582429170609,-0.09292984753847122,0.006180487107485533,0.033087845891714096,0.01436525210738182,-0.0019107428379356861,-0.11795717477798462,0.036489419639110565,0.003296283772215247,0.07273916900157928,0.12453976273536682,-0.05751297250390053,-0.019802575930953026,-0.03427072986960411,0.06344299018383026,-0.0916014313697815,-0.013950333930552006,-0.016918571665883064,-0.027785340324044228,-0.06570874154567719,0.04672783613204956,0.016895921900868416,0.026192206889390945,0.00987544097006321,0.0047765751369297504,0.020895836874842644,-0.0705636665225029,-0.022132378071546555,-0.0324690006673336,0.05870749428868294,0.0021685678511857986,-0.043411076068878174,0.07814154028892517,-0.019831260666251183,-0.08912009000778198,-0.04109704867005348,0.05572393164038658,-0.0074473218992352486,0.015599397011101246,0.04969257488846779,-0.003387113567441702,0.022838285192847252,-0.020863434299826622,0.0694182813167572,-0.02072182483971119,-0.08121015131473541,-0.017036229372024536,-0.046413592994213104,0.09961981326341629,0.01960965059697628,-0.05294061452150345,-0.051695119589567184,0.018813325092196465,-0.0276397205889225,-0.034315574914216995,0.00913374125957489,-0.04280592501163483,0.022342398762702942,-0.05029156059026718,-0.03839508444070816,0.059815049171447754,0.013032465241849422,-0.14764592051506042,-0.005115848500281572,0.11305969953536987,-0.08993944525718689,0.08440786600112915,-0.0020546468440443277,-0.03318164497613907,0.04759039729833603,-0.03706233203411102,0.011276835575699806,0.00043600198114290833,0.07980957627296448,-0.15789221227169037,-0.07920952141284943,-0.02279348485171795,0.0539841502904892,-0.0818084329366684,-0.00291087431833148,-0.010869033634662628,0.004449532367289066,0.04457550495862961,-0.007860267534852028,0.023657092824578285,-0.020765071734786034,-0.02642984874546528,0.020103735849261284,0.1111338809132576,0.028429243713617325,-0.0725877657532692,-0.0678577795624733,1.8544020314946612e-33,-0.03472018986940384,-0.06150643527507782,-0.03177795186638832,0.03646891564130783,0.01958777941763401,-0.11167877912521362,0.01035370584577322,-0.0479571558535099,0.01566443033516407,0.008931931108236313,-0.05269512161612511,0.006171927321702242,0.03202659636735916,-0.006528966128826141,0.09422576427459717,-0.012561697512865067,0.04291675239801407,0.09155222773551941,0.02544848434627056,-0.025248372927308083,0.05366683751344681,0.011495773680508137,0.04045502096414566,-0.024824194610118866,-0.019793512299656868,0.03673143684864044,0.04070700332522392,0.02240411750972271,-0.010609647259116173,0.02108629047870636,0.07546887546777725,0.056149739772081375,-0.01266847550868988,0.023099826648831367,0.033572424203157425,0.0018432731740176678,-0.01756606251001358,0.060724057257175446,0.04019973427057266,0.0187228973954916,-0.034152500331401825,-0.034975096583366394,0.05602458491921425,-0.01720142364501953,-0.04200385883450508,-0.005915438756346703,0.04974375665187836,-0.06926773488521576,-0.027901772409677505,0.0007827704539522529,0.04093310236930847,-0.0445101372897625,-0.04872944578528404,-0.002661655191332102,0.08892837166786194,0.12077690660953522,-0.031700246036052704,0.008966736495494843,-0.020614879205822945,-0.04214325174689293,0.09248723089694977,0.012272832915186882,0.03789548575878143,0.0721842497587204,-0.028616590425372124,0.020248470827937126,0.0842500627040863,0.030446691438555717,0.011253142729401588,0.020550614222884178,0.02559511736035347,0.03574708104133606,0.03422650322318077,-0.0746365413069725,0.05465991050004959,0.037171103060245514,0.05248453840613365,0.002069835551083088,-0.008089751936495304,-0.011679762043058872,-0.12151028215885162,-0.008391043171286583,-0.014654085040092468,-0.054292161017656326,0.06412038207054138,-0.05077509954571724,0.0580800399184227,-0.01631723903119564,-0.01568209007382393,0.04950840398669243,-0.09341369569301605,0.023440195247530937,0.09112592786550522,0.00047929398715496063,-0.08850732445716858,-1.9623214127787707e-33,-0.12491357326507568,0.020150018855929375,0.03034389577805996,0.11277838796377182,0.034695543348789215,-0.011876045726239681,-0.06076759099960327,-0.011039776727557182,0.02729235216975212,0.10424460470676422,-0.001800763071514666,-0.008416797965765,0.06515590846538544,0.02585623413324356,-0.05551620572805405,0.07288996875286102,-0.010547428391873837,-0.03874387964606285,-0.00592134241014719,0.08981339633464813,-0.036455925554037094,0.04666841775178909,-0.021836930885910988,-0.016903260722756386,-0.011249814182519913,-0.019797921180725098,-0.017575707286596298,0.0004202927812002599,-0.05519506707787514,0.011089515872299671,0.030541645362973213,-0.02105090580880642,-0.0651649683713913,0.05198892205953598,-0.033706434071063995,0.006662809755653143,-0.026725811883807182,0.006605037488043308,-0.035417590290308,0.11581236124038696,0.011658085510134697,0.027106603607535362,-0.13228893280029297,-0.007210239302366972,-0.026874540373682976,-0.07146837562322617,-0.025904450565576553,0.03189704194664955,0.04362832009792328,-0.05089547485113144,-0.016457589343190193,-0.0020786665845662355,0.034416407346725464,-0.07606993615627289,-0.0384371243417263,0.09190164506435394,-0.0023519210517406464,-0.03578750416636467,0.0174117274582386,0.07065414637327194,-0.05423733592033386,-0.1115489974617958,0.034914083778858185,0.009716940112411976,0.017698979005217552,0.02325839176774025,-0.023224983364343643,0.08413097262382507,-0.05165207386016846,-0.04000084102153778,0.05087630823254585,0.031228039413690567,-0.007687970530241728,0.013114201836287975,0.009889479726552963,-0.06657213717699051,-0.04740755632519722,-0.045509014278650284,-0.016498880460858345,-0.05309320613741875,0.0233579371124506,-0.05407179892063141,0.02378183975815773,0.061486922204494476,0.016216298565268517,0.039252132177352905,0.022517172619700432,-0.013490748591721058,0.02116474136710167,-0.054400794208049774,0.0016664628637954593,0.08511592447757721,0.0061784167774021626,0.026095809414982796,-0.05038367956876755,-1.5553007770563454e-8,0.0017935795476660132,-0.06964796036481857,0.10214224457740784,-0.013182144612073898,0.0788150355219841,0.030127938836812973,-0.09085867553949356,0.06065487489104271,-0.02620915323495865,0.009598396718502045,0.021433483809232712,0.015229065902531147,0.006221206393092871,0.037634145468473434,-0.019239604473114014,0.01714528165757656,0.004608516115695238,0.022722238674759865,0.011902491562068462,0.009837309829890728,0.0965832769870758,0.01768278144299984,0.05329291522502899,-0.042203258723020554,0.04997896030545235,-0.06958130747079849,0.022804096341133118,0.04385494440793991,-0.01289377547800541,0.04677840694785118,-0.03932027146220207,0.06900487095117569,-0.0089718047529459,-0.00459922244772315,0.11239369213581085,0.11475653201341629,0.029179617762565613,-0.05705489590764046,-0.022557003423571587,0.028765123337507248,-0.055568233132362366,0.03479662165045738,-0.10511929541826248,-0.0041320896707475185,0.07684381306171417,0.024079209193587303,0.012334967032074928,-0.13599443435668945,0.01641032285988331,-0.005830815527588129,0.016982978209853172,0.05224009230732918,0.0589921697974205,0.059258945286273956,0.07644383609294891,0.01571839489042759,0.10470645874738693,-0.022268055006861687,0.008824847638607025,0.046184878796339035,-0.0035121834371238947,0.04443963244557381,-0.0010735581163316965,-0.08990925550460815));"; echo $?
––– output –––
- 0
+ ERROR 1064 (42000) at line 1: table 't' absent
+ 1
––– input –––
mysql -E -h0 -P2306 -e "debug wait c status 3 like 'state' option 'timeout'=10;" | awk '/Value:/{print $2}'
––– output –––
- 3
+ 0
––– input –––
mysql -E -h0 -P2306 -e "select id, f from c:t order by id asc;"
––– output –––
- *************************** 1. row ***************************
+ ERROR 1064 (42000) at line 1: unknown local table(s) 't' in search request
- id: 1
-  f: bread
- *************************** 2. row ***************************
- id: 11
-  f: not related text presented for testing
––– input –––
mysql -h0 -P1306 -e "alter cluster c drop t;"
––– output –––
+ ERROR 1064 (42000) at line 1: unknown or wrong type of table 't'
––– input –––
mysql -h0 -P1306 -e "drop table t;"
––– output –––
+ ERROR 1064 (42000) at line 1: DROP TABLE failed: unknown table 't'

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/http-interface/sql-endpoint test/clt-tests/http-interface/sql-mode-raw-endpoint test/clt-tests/http-interface/test-concurrent-requests-to-buddy test/clt-tests/http-interface/test-content-type-header-daemon-only test/clt-tests/http-interface/test-content-type-header-with-buddy test/clt-tests/http-interface/test-distributed-inserts test/clt-tests/http-interface/test-fuzzy-search-sql-endpoint test/clt-tests/http-interface/test-inserts test/clt-tests/http-interface/test-manticore-handling-id test/clt-tests/indexer/test-max-iops
✅ OK: 9
❌ Failed: 1
⏳ Duration: 59s
👉 Check Action Results for commit 5a31abc

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/http-interface/test-inserts.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
apt-get install -y jq > /dev/null; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test1;"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test1 (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');"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (1, 'iPhone 13 Pro', 256, 'silver', 2021, 1099.99, 989.99, 1, '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));"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test1 VALUES (2, 'Galaxy S21 Ultra', 128, 'black', 2021, 1199.99, 1099.99, 0, '1609459200000', (4,5,6), (1234567890123456789, 9876543210987654321), '{\"features\": [\"Dynamic AMOLED 2X\", \"Exynos 2100\", \"108MP camera\"]}', (0.5, 0.4, 0.3, 0.2));"; echo $?
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "test1", "id": 3, "doc": {"model": "Pixel 6", "storage_capacity": 128, "color": "white", "release_year": 2021, "price": 599.99, "discounted_price": 549.99, "sold": false, "date_added": 1630454400000, "product_codes": [7, 8, 9], "values": [987654321987654321, 123456789123456789], "additional_info": {"features": ["Smooth display", "Google Tensor chip", "AI-powered camera"]}, "vector": [0.8, 0.6, 0.4, 0.2]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/insert -d '{"table": "TEST1", "id": 6, "doc": {"model": "Fairphone 5", "storage_capacity": 256, "color": "blue", "release_year": 2023, "price": 749.99, "discounted_price": 699.99, "sold": false, "date_added": 1693526400000, "product_codes": [10,11], "values": [112233445566778899, 998877665544332211], "additional_info": {"features": ["Modular design", "Extended support"]}, "vector": [0.3, 0.1, 0.7, 0.9]}}' | jq '.created == true'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/search -d '{"table": "TEST1", "query": {"equals": {"id": 6}}}' | jq '.hits.hits[0]._id==6'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "SHOW TABLES LIKE 't_s%';"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/replace -d '{"table": "test1", "id": 1, "doc": {"model": "iPhone 13 Pro Max", "storage_capacity": 512, "color": "gold", "release_year": 2021, "price": 1299.99, "discounted_price": 1199.99, "sold": true, "date_added": 1591362342000, "product_codes": [7, 8, 9], "values": [1234567890123456789, 9876543210987654321], "additional_info": {"features": ["ProMotion display", "A15 Bionic chip", "Improved battery life"]}, "vector": [0.9, 0.8, 0.7, 0.6]}}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
| id   | model             | storage_capacity | color | release_year | price       | discounted_price | sold | date_added | product_codes | values                                  | additional_info                                                              | vector                              |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|    3 | Pixel 6           |              128 | white |         2021 |  599.989990 |       549.989990 |    0 | 2661794816 | 7,8,9         | 123456789123456789,987654321987654321   | {"features":["Smooth display","Google Tensor chip","AI-powered camera"]}     | 0.800000,0.600000,0.400000,0.200000 |
- |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                          | 0.300000,0.100000,0.700000,0.900000 |
+ |    6 | Fairphone 5       |              256 | blue  |         2023 |  749.989990 |       699.989990 |    0 | 1309285376 | 10,11         | 112233445566778899,998877665544332211   | {"features":["Modular design","Extended support"]}                           | 0.300000,0.100000,0.700000,0.900000 |
|    1 | iPhone 13 Pro Max |              512 | gold  |         2021 | 1299.989990 |      1199.989990 |    1 | 2224442480 | 7,8,9         | 1234567890123456789                     | {"features":["ProMotion display","A15 Bionic chip","Improved battery life"]} | 0.900000,0.800000,0.700000,0.600000 |
|    2 | Galaxy S21 Ultra  |              128 | black |         2021 | 1199.989990 |      1099.989990 |    0 | 3141431296 | 4,5,6         | 1234567890123456789,9223372036854775807 | {"features":["Dynamic AMOLED 2X","Exynos 2100","108MP camera"]}              | 0.500000,0.400000,0.300000,0.200000 |
+------+-------------------+------------------+-------+--------------+-------------+------------------+------+------------+---------------+-----------------------------------------+------------------------------------------------------------------------------+-------------------------------------+
––– input –––
echo -e '{"index":{"_index":"test1","_id":4}}\n{"id":4,"model":"iPhone 14","storage_capacity":256,"color":"black","release_year":2022,"price":999.99,"discounted_price":899.99,"sold":1,"date_added":1661990400,"product_codes":[19,20,21],"values":[1234567890123456789,9876543210987654321],"additional_info":{"features":["A16 Bionic","Dynamic Island"]},"vector":[0.1,0.2,0.3,0.4]}\n{"index":{"_index":"test1","_id":5}}\n{"id":5,"model":"Pixel 7","storage_capacity":128,"color":"white","release_year":2022,"price":699.99,"discounted_price":649.99,"sold":0,"date_added":1661990400,"product_codes":[16,17,18],"values":[223344556677889900,998877665544332211],"additional_info":{"features":["Tensor G2","120Hz display"]},"vector":[0.4,0.5,0.6,0.7]}' > bulk.json; echo $?
––– output –––
OK
––– input –––
curl -s -H 'Content-type: application/x-ndjson' --data-binary @bulk.json http://localhost:9308/_bulk | jq '.items[] | {index: .index.result, id: .index._id}'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "test1", "id": 1}' | jq '.result'
––– output –––
OK
––– input –––
curl -s -X POST http://localhost:9308/delete -d '{"table": "TEST1", "id": 2}' | jq '.result'
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "select * from test1;"
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "DROP TABLE test1;"; echo $?
––– output –––
OK
––– input –––
mysql -P9306 -h0 -e "show tables;"; echo $?
––– output –––
OK

@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/mcl/auto-embeddings-endpoints test/clt-tests/mcl/auto-embeddings-error-handling test/clt-tests/mcl/auto-embeddings-from-vector-check test/clt-tests/mcl/auto-embeddings-hnsw-configs test/clt-tests/mcl/auto-embeddings-jina-remote test/clt-tests/mcl/auto-embeddings-json-api test/clt-tests/mcl/auto-embeddings-knn-select-scenarios test/clt-tests/mcl/auto-embeddings-model-provider-validation test/clt-tests/mcl/auto-embeddings-openai-remote test/clt-tests/mcl/auto-embeddings-parameter-combinations
✅ OK: 9
❌ Failed: 1
⏳ Duration: 127s
👉 Check Action Results for commit ef45f61

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/mcl/auto-embeddings-jina-remote.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd --stopwait > /dev/null; stdbuf -oL searchd ${SEARCHD_ARGS:-} > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 'accepting connections' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Accepting connections!'; else echo 'Timeout or failed!'; fi
––– output –––
OK
––– input –––
cosine_similarity() {
    local file1="$1" file2="$2"

    awk '
    NR==FNR { a[NR]=$1; suma2+=$1*$1; next }
    {
        dot += a[FNR]*$1
        sumb2 += $1*$1
    }
    END {
        print dot / (sqrt(suma2) * sqrt(sumb2))
    }' "$file1" "$file2"
}
––– output –––
OK
––– input –––
export -f cosine_similarity
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_invalid_model (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/invalid-model-name-12345' FROM = 'title') " 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_valid_model_no_api_key (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/jina-embeddings-v2-base-en' FROM = 'title') " 2>&1
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_jina_remote (title TEXT, content TEXT, description TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/jina-embeddings-v4' FROM = 'title, content' API_KEY='${JINA_API_KEY}') "; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -E -e "SHOW CREATE TABLE test_jina_remote"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_jina_remote (id, title, content, description) VALUES(1, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'advanced AI research')"; echo $?
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "SELECT COUNT(*) as record_count FROM test_jina_remote WHERE id=1"
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "INSERT INTO test_jina_remote (id, title, content, description) VALUES(2, 'machine learning algorithms', 'deep neural networks and artificial intelligence', 'different description')"

mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_remote WHERE id=1" | \
    grep -v embedding | \
    sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
    grep -E '^[0-9]+(\.[0-9]+)?$' | \
    awk '{printf "%.5f\n", $1}' > /tmp/vector1.txt

mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_remote WHERE id=2" | \
    grep -v embedding | \
    sed 's/[0-9]\+\(\.[0-9]\+\)\?/\n&\n/g' | \
    grep -E '^[0-9]+(\.[0-9]+)?$' | \
    awk '{printf "%.5f\n", $1}' > /tmp/vector2.txt

SIMILARITY=$(cosine_similarity /tmp/vector1.txt /tmp/vector2.txt)

echo "Cosine similarity: $SIMILARITY"

RESULT=$(awk -v sim="$SIMILARITY" 'BEGIN {
    if (sim > 0.99)
        print "SUCCESS: Same FROM fields produce similar vectors (similarity: " sim ")"
    else
        print "FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: " sim ")"
}')

echo "$RESULT"

rm -f /tmp/vector1.txt /tmp/vector2.txt
––– output –––
- Cosine similarity: #!/(1|0\.[0-9]+)/!#
+ ERROR 1064 (42000) at line 1: Failed to send request to remote model
- SUCCESS: Same FROM fields produce similar vectors (similarity: #!/(1|0\.[0-9]+)/!#)
+ Cosine similarity: -nan
+ FAIL: Different vectors (FROM does not include description field and should not change generated vector value) (similarity: -nan)
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_jina_title_only (title TEXT, content TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/jina-embeddings-v4' FROM = 'title' API_KEY='${JINA_API_KEY}') "; mysql -h0 -P9306 -e "INSERT INTO test_jina_title_only (id, title, content) VALUES(1, 'machine learning algorithms', 'completely different content here')"; MD5_MULTI=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_remote WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); MD5_SINGLE=$(mysql -h0 -P9306 -e "SELECT embedding FROM test_jina_title_only WHERE id=1" | grep -v embedding | md5sum | awk '{print $1}'); echo "multi_field_md5: $MD5_MULTI"; echo "single_field_md5: $MD5_SINGLE"; if [ "$MD5_MULTI" != "$MD5_SINGLE" ]; then echo "SUCCESS: Different FROM specifications produce different vectors"; else echo "INFO: FROM field comparison result"; fi
––– output –––
OK
––– input –––
mysql -h0 -P9306 -e "CREATE TABLE test_jina_invalid_field (title TEXT, embedding FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME = 'jina/text-embedding-ada-002' FROM = 'nonexistent_field') " 2>&1
––– output –––
OK
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_jina_no_from'" | grep -q test_jina_no_from; then mysql -h0 -P9306 -e "INSERT INTO test_jina_no_from (id, title, embedding) VALUES(1, 'test title', '(0.1, 0.2, 0.3, 0.4, 0.5)')"; echo "insert_result: $?"; else echo "insert_result: skipped (table not created)"; fi
––– output –––
OK
––– input –––
if mysql -h0 -P9306 -e "SHOW TABLES LIKE 'test_jina_no_from'" | grep -q test_jina_no_from; then mysql -h0 -P9306 -e "SHOW CREATE TABLE test_jina_no_from"; else echo "table_structure: skipped (table not created)"; fi
––– output –––
OK
––– input –––
if [ -n "$JINA_API_KEY" ] && [ "$JINA_API_KEY" != "dummy_key_for_testing" ]; then echo "API key is available for testing"; else echo "API key not available - using dummy for error testing"; fi
––– output –––
OK

also enhance test 278 to cover the feature
Normalize table names http

add test 424

ref: #4007
@klirichek klirichek force-pushed the uppercased-table-names-fix branch from 7c386e1 to 6440d73 Compare April 9, 2026 08:34
@github-actions
Copy link
Copy Markdown
Contributor

clt

❌ CLT tests in test/clt-tests/buddy-plugins/test-fuzzy-search test/clt-tests/buddy-plugins/test-fuzzy-trailing-semicolon test/clt-tests/buddy-plugins/test-inconsistent-comunication-with-buddy test/clt-tests/buddy-plugins/test-prometheus-exporter test/clt-tests/buddy-plugins/test-skipping-plugin-loading test/clt-tests/bugs/1335-test-issue test/clt-tests/bugs/3037-secondary-indexes-bug test/clt-tests/bugs/3247-rt-save-disk-chunk-race test/clt-tests/bugs/3428-test-having-total-found test/clt-tests/bugs/3481-http-update-distributed-table-wrong-cluster-crash
✅ OK: 10
❌ Failed: 1
⏳ Duration: 197s
👉 Check Action Results for commit 72546a8

Failed tests:

🔧 Edit failed tests in UI:

test/clt-tests/bugs/3247-rt-save-disk-chunk-race.rec
––– input –––
export INSTANCE=1
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
export INSTANCE=2
––– output –––
OK
––– input –––
mkdir -p /var/{run,lib,log}/manticore-${INSTANCE}
––– output –––
OK
––– input –––
stdbuf -oL searchd -c test/clt-tests/base/searchd-with-flexible-ports.conf > /dev/null
––– output –––
OK
––– input –––
if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore-${INSTANCE}/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore-${INSTANCE}/searchd.log; fi
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "CREATE TABLE t2 ( id bigint, f1 text, f2 text, idd bigint, tag bigint ) optimize_cutoff='4' rt_mem_limit='64M';"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "create cluster test;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "alter cluster test add t2;"
––– output –––
OK
––– input –––
manticore-load --quiet --port=1306 --batch-size=1000 --threads=2 --total=500000 --load="replace INTO test:t2(idd,tag,f1) VALUES(<increment>,<int/1/100>,'<text/10/100>')" --together --batch-size=1000 --threads=2 --total=500000 --load="replace INTO test:t2(idd,tag,f1) VALUES(<increment>,<int/1/100>,'<text/10/100>')" --together --batch-size=1000 --threads=2 --total=500000 --load="replace INTO test:t2(idd,tag,f1) VALUES(<increment>,<int/1/100>,'<text/10/100>')" --together --batch-size=1000 --threads=2 --total=500000 --load="replace INTO test:t2(idd,tag,f1) VALUES(<increment>,<int/1/100>,'<text/10/100>')" > /dev/null 2>&1
––– output –––
OK
––– input –––
manticore-load --quiet --port=1306 --batch-size=1000 --threads=2 --total=500000 --load="replace INTO test:t2(idd,tag,f1) VALUES(<increment>,<int/1/100>,'<text/10/100>')" --together --batch-size=1000 --threads=2 --total=500000 --load="replace INTO test:t2(idd,tag,f1) VALUES(<increment>,<int/1/100>,'<text/10/100>')" --together --batch-size=1000 --threads=2 --total=500000 --load="replace INTO test:t2(idd,tag,f1) VALUES(<increment>,<int/1/100>,'<text/10/100>')" --together --batch-size=1000 --threads=2 --total=500000 --load="replace INTO test:t2(idd,tag,f1) VALUES(<increment>,<int/1/100>,'<text/10/100>')" > /dev/null 2>&1 &
––– output –––
OK
––– input –––
timeout 10 bash -c 'while ! pgrep -f "manticore-load.*1306" > /dev/null; do sleep 0.1; done'
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "join cluster test at '127.0.0.1:1312';"
––– output –––
OK
––– input –––
timeout 30 bash -c 'while ! mysql -h0 -P2306 -e "SHOW TABLES;" 2>/dev/null | grep -q "t2"; do sleep 1; done'
––– output –––
OK
––– input –––
mysql -h0 -P2306 -e "SHOW TABLES;"
––– output –––
OK
––– input –––
mysql -h0 -P1306 -e "insert into test:t2(id,idd,tag,f1) values(900000001,900000001,777,'join-cluster-sst-ok')"
––– output –––
OK
––– input –––
timeout 30 bash -c "while ! mysql -N -h0 -P2306 -e \"select count(*) from t2 where idd=900000001\" 2>/dev/null | grep -qx 1; do sleep 1; done"
––– output –––
OK
––– input –––
mysql -sN -h0 -P2306 -e "select count(*) from t2 where idd=900000001"
––– output –––
+------+
- |    1 |
+ | 1    |
+------+
––– input –––
pkill -f manticore-load
––– output –––
OK

Copy link
Copy Markdown
Contributor

@klirichek klirichek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added couple of ubertests in advance. They cover introduced code cases.
The things are NOT fixed (and wasn't tested yet) - using join via http. If desired, it can be extracted to separate case, since 'join' itself is not an easy feature.

This PR desirable to merge without squash, since it includes commits which make sequental independent changes.

@Nick-S-2018 Nick-S-2018 merged commit f65fb69 into master Apr 14, 2026
94 of 96 checks passed
@Nick-S-2018 Nick-S-2018 deleted the uppercased-table-names-fix branch April 14, 2026 10:09
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.

3 participants