Opened 9 years ago

Closed 9 years ago

#1206 closed defect (fixed)

WCPS1.5_Wrong iterator of coverage constructor from WCPS query to Rasql query

Reported by: Bang Pham Huu Owned by:
Priority: major Milestone: 10.0
Component: petascope Version: development
Keywords: WCPS 2.0, test_wcps, wrong iterator, coverage constructor Cc: Dimitar Misev, Alex Dumitru, Vlad Merticariu
Complexity: Medium

Description

test wcps "79-range_on_t_axis-t335.test" with query

for c in (eobstest)
return encode(
  coverage averagesOverTime
  over $T t(0:2)
  values ( avg(c[t($T:$T + 1)] ) ),
"csv")

Iterator in Marray from [0:2] is converted to only [0:1] in Rasql from WCPS 2.0

SELECT encode(MARRAY T in [0:1] VALUES 
(  avg_cells(c[T[0]:T[0] + 1,*:*,*:*])  ) , "csv" ) FROM eobstest AS c

instead of correct convert to iterator [0:2] as in Rasql from WCPS 1.0

select csv(marray i_i in [0:2] values 
avg_cells(c[i_i[0]:(i_i[0])+(1),*:*,*:*])) from eobstest AS c where oid(c)=46081

Change History (5)

comment:1 by Dimitar Misev, 9 years ago

Seems like the same issue as in #1207 (http://rasdaman.org/ticket/1207#comment:1)

comment:2 by Bang Pham Huu, 9 years ago

I think it is different as this ticket is just -1 from iterator instead of creating a random interval as in ticket 1207.

comment:3 by Dimitar Misev, 9 years ago

Yes you're right.

comment:4 by Bang Pham Huu, 9 years ago

Milestone: 9.210.0
Summary: WCPS2.0_Wrong iterator of coverage constructor from WCPS query to Rasql queryWCPS1.5_Wrong iterator of coverage constructor from WCPS query to Rasql query

comment:5 by Bang Pham Huu, 9 years ago

Resolution: fixed
Status: newclosed

Patch was accepted, close ticket.

Note: See TracTickets for help on using tickets.