Opened 2 years ago

Closed 17 months ago

#877 closed defect (fixed)

Modulo operation does not respect null values

Reported by: vliaukevich Owned by: dmisev
Priority: major Milestone: 9.1.x
Component: catalogmgr Version: development
Keywords: Cc: dmisev
Complexity: Medium

Description

Modulo division interprets nulls as regular values.
Definition of the collection:

typedef marray <char, 2> NullValueArrayTest;
typedef set <NullValueArrayTest> null values [5:7] NullValueSetTest;

Values (the third value is null):

$ rasql  -q 'select csv(x) from values as x' --out string --quiet
{1},{2},{5}

Modulo operation:

$ rasql  -q 'select csv( mod(x, 2) ) from values as x' --out string --quiet
{1},{0},{1}

The correct output should be:

{1}, {0}, {5} 

Change History (3)

comment:1 Changed 21 months ago by dmisev

  • Milestone set to 9.2

comment:2 Changed 17 months ago by dmisev

  • Milestone changed from 9.2 to 9.1.x

Patch submitted.

comment:3 Changed 17 months ago by dmisev

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.