opensearch-project / opensearch-project/sql-odbc

[BUG] Tableau is incorrectly receiving non-null values as null from the ODBC driver

Open
#23 3 comments 0 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

Describe the bug
The TDVT smoke tests are failing due to all values of a query being null when the expected are not null. The issue has been isolated to the ODBC driver as a query to the OpenSearch sql plugin returns accurate non-null values.

To Reproduce
Steps to reproduce the behavior using ODBCTest:

  1. Execute SELECT staples.Discount FROM staples GROUP BY 1
  2. SQLSetStmtAttr
  • Attribute SQL_ATTR_ROW_ARRAY_SIZE
  • ValuePtr: 100
  1. SQLBindCol
  • Column Number: 21
  • Target Type: SQL_C_Double
  1. SQL fetch
  2. Actual Result: SQLDescribeCol returned: SQL_ERROR=-1

Screenshots
Actual results:
image
Expected results:
image

Host/Environment (please complete the following information):

  • OS: Windows 10
  • Version 21H1

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 failure with ODBCTest on Windows 10 using the provided SELECT, SQL_ATTR_ROW_ARRAY_SIZE, SQLBindCol, and fetch steps. Compare the ODBC driver's result with the OpenSearch SQL plugin and the expected non-null values; done means the Tableau/ODBC path returns the correct values and SQLDescribeCol no longer reports SQL_ERROR.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.