Skip to content

Got error when filter with boolean field #603

@treecy

Description

@treecy
select *
from new_summary_daily-2018.01.22
-- is_published is a boolean type field
where is_published=true 

When I running this query I got null_pointer_exception error.

But if I change to

...
where is_published= 'true' 

It works well.

I know Elastice search allows you to pass a JSON true, so for the previous case maybe could use the following JSON

{
  "query": {
    "term": {
      "is_published": true 
    }
  }
}

I'm not sure if this is not supported yet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions