Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Cannot set primitive value even if type is primitive in SearchArguments #18

@patduin

Description

@patduin

Consider the following failing unit test example for SearchArgumentFactoryTest:

 @Test
  public void primitiveBoolean() throws Exception {
    Fields booleanField = new Fields("A", boolean.class);
    SearchArgumentFactory.Builder.checkValueTypes(booleanField, true);
  }

It will fail because the primitive will be autoboxed in all operator methods of SearchArgumentFactory to an Object. Making the checkValueTypes(...) throw an exception. It works if you use hive's search args directly (probably because it is less strict in the checking).

Same holds for other primitive types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions