Opened 5 years ago

Closed 5 years ago

#2219 closed defect (fixed)

condense max/min on structs has unusual behavior

Reported by: Dimitar Misev Owned by: Dimitar Misev
Priority: major Milestone: 10.0
Component: qlparser Version: 9.8
Keywords: Cc: Peter Baumann, Vlad Merticariu
Complexity: Medium

Description

select encode(
condense min
over i in [0:1] 
using (<[0:1] {1c,2c}, {2c,1c}>)[i[0]]
, "csv")

results in "2 1"

select encode(
condense max
over i in [0:1] 
using (<[0:1] {1c,2c}, {2c,1c}>)[i[0]]
, "csv")

results in "1 2"

The results seem swapped.

Change History (2)

comment:1 by Dimitar Misev, 5 years ago

Owner: set to Dimitar Misev
Status: newassigned

comment:2 by Dimitar Misev, 5 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.