Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Oct 26, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Oct 26, 2021

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
@ghost
Copy link

ghost commented Oct 26, 2021

I'm looking into this issue.

@chloe-zh
Copy link
Contributor

Hi @guiangumpac thanks for reporting this issue, I also tried to reproduce this issue in my local cluster but the symptom is different. Actually the query engine has not supported array type, instead it always pick the first value in the array. We need to support array type in the query engine to fix this issue.

@kylepbit
Copy link

@chloe-zh - I'm curious why the array type would be needed here, the reference to SQL_ATTR_ROW_ARRAY_SIZE above refers to the size of the fetch to be done in the ODBC driver, but to my knowledge there is no array type involved in terms of data types within the query?

@dai-chen dai-chen transferred this issue from opensearch-project/sql Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: No status
Development

No branches or pull requests

3 participants