manticoresoftware / manticoresoftware/manticoresearch

GitHub#60 ⁃ Facet aliasing conflict

Open
#60 6 comments 0 reactions 1 assignee View on GitHub

@tomatolog is already working on this.

Since Dec 12, 2018.

bug To Do
Dominant language
C++
Stars
12k
Forks
642
Avg merge
3d 12h
Merged PRs (30d)
47

Description

id | name | cities(mva) | work_city_id(int)

MySQL [(none)]> SELECT * FROM rt_index WHERE work_city_id > 0 LIMIT 0, 45 FACET work_city_id AS cities ORDER BY COUNT(*) DESC LIMIT 0, 999;
ERROR 1064 (42000): index rt_index: alias ‘cities’ must be unique (conflicts with another alias)

When I replace * with columns concatenated (SELECT id, name, cities, work_city_id FROM rt_index WHERE work_city_id > 0 LIMIT 0, 45 FACET work_city_id AS cities ORDER BY COUNT(*) DESC LIMIT 0, 999;) , all good.

Contributor guide

Open the contributing guide

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.