Linq: short and sbyte parameters fail for constant on Where expressions

Description

The following fails using the CQL expression visitor, when the parameter is constant:

It does not fail when the parameter is a field:

The underlying cause is that the expression tree generated by the runtime is:

  • For the first case, a binary expression containing a constant value on the right side of type int32 (instead of int16).

  • For the second case, a binary expression containing a unary expression on the right side wit h a int16 operand.

Environment

None

Activity

Show:
Arthur Landim
August 26, 2016, 7:59 PM

Create integration tests at Cassandra.IntegrationTests.Linq.LinqMethods.Where to emulate the issue and fix.

Done

Assignee

Unassigned

Reporter

Jorge Bay Gondra

Labels

None

Reproduced in

None

PM Priority

None

Fix versions

External issue ID

None

Doc Impact

None

Reviewer

None

Pull Request

None

Epic Link

None

Sprint

C# P-ENG-TRIAGE

Pull Requests

None

Size

None

Components

Priority

Major