Skip to content

[BUG] SQL should ignore field which doesn't have type defined when SELECT * #398

Closed

Description

@penghuo

Describe the bug
SQL should ignore field which doesn't have type defined when SELECT *

To Reproduce

POST /empty-test-00001/_bulk
{ "index" : { "_index" : "empty-test-00001", "_id" : "1" } }
{ "l1": 1, "l2":{"l2": []}}
POST /_plugins/_sql
{
  "query" : "select * from empty-test-00001"
}

# Result
{
  "error": {
    "type": "IllegalStateException",
    "reason": "There was internal problem at backend",
    "details": "No type found for field: l2.l2."
  },
  "status": 503
}

Expected behavior
Return result without exception

Activity

  1. added
    bug
    and removed on Jan 26, 2022
  2. self-assigned this
    on Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugv1.3.0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions