Skip to content

CALL AUTOCOMPLETE() sometimes produces a List<Map<String, String>>, sometimes List<Map<String, Int>> in JSON results #3351

Open
@Ocramius

Description

@Ocramius

Bug Description:

Given following SQL query:

CALL AUTOCOMPLETE('hello', 'my_index', 1 as append);

When using the /sql endpoint, Manticore will respond with data such as [{"query": "hello"}, {"query": "helloer"}]

When using a numeric value, things change:

CALL AUTOCOMPLETE('123', 'my_index', 1 as append);

When using the /sql endpoint, Manticore will respond with data such as [{"query": 123}, {"query": 12345}]

It seems like some auto-magic casting is occurring? Is that intentional?

Manticore Search Version:

7.4.6

Operating System Version:

irrelevant

Have you tried the latest development version?

No

Internal Checklist:

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

  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation reviewed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions