manticoresoftware / manticoresoftware/manticoresearch-python

`UtilsApi` will return MVA type list value as string

Open
#14 5 comments 0 reactions 1 assignee View on GitHub

@Nick-S-2018 is already working on this.

Since Apr 29, 2024.

Dominant language
Python
Stars
62
Forks
6
PR merge metrics
No merged PRs in 30d

Description

According to your document:
https://manual.manticoresearch.com/Creating_a_table/Data_types#Multi-value-integer-(MVA)
We will be able to obtain a list for MVA type value.

However, by using UtilsApi to query the index, it won't act as the same:

>>> utilsApi.sql('CREATE TABLE products(title text, product_codes multi)')
[{'total': 0, 'error': '', 'warning': ''}]
>>> utilsApi.sql('select * from products')[0]['columns']
[{'id': {...}}, {'product_codes': {...}}, {'title': {...}}]
>>> utilsApi.sql('select * from products')[0]['columns'][1]
{'product_codes': {'type': 'string'}}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.