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

Unexpected Nested Query Result[BUG] #270

Open
ghost opened this issue Nov 8, 2021 · 1 comment
Open

Unexpected Nested Query Result[BUG] #270

ghost opened this issue Nov 8, 2021 · 1 comment
Labels
tdvt Tableau test framework

Comments

@ghost
Copy link

ghost commented Nov 8, 2021

Describe the bug
The result of a query is different when that same query becomes a part of a nested query.

Or for query issues:

  1. Run the query 'SELECT Customer Name FROM staples GROUP BY 1 LIMIT 1'
  2. See correct output with type keyword
  3. Run the query 'SELECT* FROM (SELECT Customer Name FROM staples GROUP BY 1 LIMIT 1)'
  4. See unexpected result with type Double

Expected behavior
The outputs are the same if the queries are grouped by the column name. However, the two queries should still have the same output regardless of grouping as the query in step 1 has an expected output.

Screenshots
Expected output:
image
Actual ouput:
image

@ghost ghost added Beta bug Something isn't working untriaged labels Nov 8, 2021
@chloe-zh
Copy link
Contributor

I am not able to reproduce this error, instead I think the behavior is proper:

POST _plugins/_sql
{
  "query": "SELECT * FROM (SELECT FlightNum FROM opensearch_dashboards_sample_data_flights GROUP BY 1 LIMIT 1) as flights"
}

# result:
{
  "schema": [
    {
      "name": "FlightNum",
      "type": "keyword"
    }
  ],
  "datarows": [
    [
      "00882F6"
    ]
  ],
  "total": 1,
  "size": 1,
  "status": 200
}

@chloe-zh chloe-zh removed Beta untriaged bug Something isn't working labels Nov 13, 2021
@joshuali925 joshuali925 added the tdvt Tableau test framework label Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tdvt Tableau test framework
Projects
None yet
Development

No branches or pull requests

2 participants