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] Select * return null for unexpanded object field #1235

Open
dai-chen opened this issue Jan 6, 2023 · 0 comments
Open

[BUG] Select * return null for unexpanded object field #1235

dai-chen opened this issue Jan 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dai-chen
Copy link
Collaborator

dai-chen commented Jan 6, 2023

What is the bug?

SELECT * statement returns null for unexpanded object field.

How can one reproduce the bug?

POST http://localhost:9200/object-test/_doc/
{
  "account.name.first": "John"
}

POST http://localhost:9200/_plugins/_sql
{
  "query": "SELECT * FROM object-test"
}
{
  "schema": [
    {
      "name": "account",
      "type": "object"
    }
  ],
  "datarows": [
    [
      null
    ]
  ],
  "total": 1,
  "size": 1,
  "status": 200
}

What is the expected behavior?

Return the same result as SELECT account.name.first.

What is your host/environment?

  • OpenSearch: main branch

Do you have any additional context?

The root cause maybe the same as described here: #1135 (comment)

@dai-chen dai-chen added the bug Something isn't working label Jan 6, 2023
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
None yet
Development

No branches or pull requests

1 participant