Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

"all shards fail" error when functions/operators are applied to null-value field #308

Closed
chloe-zh opened this issue Nov 28, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@chloe-zh
Copy link
Member

Example index:

{"index":{"_index": "people", "_id":"1"}}
{"account_number":1,"balance":39225,"firstname":"Amber","lastname":"Duke","age":32,"gender":"M"}
{"index":{"_index": "people", "_id":"2"}}
{"account_number":6,"balance":5686,"firstname":"Hattie","lastname":"Bond","age":36,"gender":"M"}
{"index":{"_index": "people", "_id":"3"}}
{"account_number":13,"balance":32838,"firstname":"Nanette","age":28,"gender":"F"}
{"index":{"_index": "people", "_id":"4"}}
{"account_number":18,"firstname":"Dale","lastname":"Adams","age":33,"gender":"M"}

Example query 1:

SELECT abs(balance) FROM people

Expected result:

abs(balance)
39225
5686
32838
NULL

Actual output:

{
  "error": {
    "reason": "There was internal problem at backend",
    "details": "all shards failed",
    "type": "SearchPhaseExecutionException"
  },
  "status": 500
}

Example query 2:

SELECT substring(lastname, 1, 3) FROM people

Expected result:

{
  "error": {
    "reason": "There was internal problem at backend",
    "details": "all shards failed",
    "type": "SearchPhaseExecutionException"
  },
  "status": 500
}

Actual result:

substring(lastname, 1, 3)
Duk
Bon
Null
Ada
@chloe-zh chloe-zh added the bug Something isn't working label Nov 28, 2019
@chloe-zh chloe-zh self-assigned this Nov 28, 2019
@dai-chen
Copy link
Member

Related: #144

@chloe-zh
Copy link
Member Author

Related: #320

@dai-chen
Copy link
Member

bugbash-April-2020 automation moved this from todo to Done Jul 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

3 participants