opensearch-project / opensearch-project/sql-odbc

[BUG] Using Power BI with aliased indices

Open
#63 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
10
Forks
25
PR merge metrics
No merged PRs in 30d

Description

What is the bug?
We have been trying to connect Power BI to our OpenSearch domains but are having troubles with using aliased indexes.

This looks to be down to SHOW tables LIKE %; reporting an instance of the alias for every index that is using it. This in itself is handled by Power BI, but then when you try to connect to the aliased index/table Power BI reports an error 'Expression.Error: The key matched more than one row in the table.'

Can you offer any guidance?

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Make a new OpenSearch data source:
    image

Select one of the instances of the aliased index
image
3. See error
image

What is the expected behavior?
Ideally the aliased index should only show up once in the list of indices, but even if it does selecting it should continue and not show an error.

What is your host/environment?

  • OS: Windows 10
  • Version: OpenSearch 1.3, but same behavior on OpenSearch 2.7
    Driver version: signed_opensearch-sql-odbc-win64-1.1.0.1.msi
  • Plugins: Nothing added just the standard AWS managed OpenSearch

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.

Research direction

Start by reproducing the SHOW tables LIKE % result with aliased indices, then follow the OpenSearch ODBC catalog behavior used by Power BI when selecting an aliased table. Done means each alias appears once and selecting it no longer produces the “key matched more than one row” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.