Opened 9 years ago

Closed 8 years ago

#1218 closed defect (invalid)

WCPS1.5_Inconsitence when query out interval between scalar and expression

Reported by: Bang Pham Huu Owned by:
Priority: major Milestone: 9.3
Component: petascope Version: development
Keywords: wcps 2.0, error, expression, outbound, error Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

WCPS query, with WCPS 2.0 will throw an exception if slicing is scalar t(30)

for c in (eobstest) return encode(max(c[t(30),Lat(20.5:35.1), Long(10.5:75.3)]), "csv")

throw an exception

petascope.wcps2.error.managed.processing.OutOfBoundsSubsettingException : Invalid subsetting coordinates: 30:30 for axis t.

but with slicing is expression t(0+30)

for c in (eobstest) return encode(max(c[t(0+30),Lat(20.5:35.1), Long(10.5:75.3)]), "csv")

it will returns Rasql query

SELECT encode( max_cells(c[0 + 30,-29:100,81:109]) , "csv" ) FROM eobstest AS c

with values 0

An exception should be throw as the axis slicing is invalid (outside [0,5])

Change History (2)

comment:1 by Bang Pham Huu, 9 years ago

this ticket need also to wait http://rasdaman.org/ticket/1239 when it can calculate the expression, e.g t(0+30) = 30 which is outside of bounding (0,5) and will throw an exception, then need only to add a test case.

comment:2 by Bang Pham Huu, 8 years ago

Milestone: 10.09.3
Resolution: invalid
Status: newclosed

In WCPS 1.5, we don't support the numeric interval expression (e.g: c[i(1+1)]), close ticket.

Note: See TracTickets for help on using tickets.