Opened 8 years ago

Closed 8 years ago

#1221 closed defect (fixed)

WCPS1.5_Parsing error when using count operator to compare the value from scalar expression

Reported by: Bang Pham Huu Owned by:
Priority: major Milestone: 10.0
Component: undecided Version: development
Keywords: WCPS 2.0, parse error, count value Cc: Dimitar Misev, Alex Dumitru, Vlad Merticariu
Complexity: Medium

Description

WCPS query when count() > scalar expression ( 3 + 5)

for c in (eobstest) return encode(
count(c[Lat(20.5:35.1),t(0:0), Long(10.5:75.3)]  > ( 3 +  5)), "csv")

with WCPS 1.0 will returns

select csv(count_cells(((c[0:0,-29:100,80:110])>((3)+(5))))) from eobstest AS c where oid(c)=46081

with value {355}

while WCPS 1.5 will throw an exception

<ows:Exception exceptionCode="RuntimeError">
<ows:ExceptionText>Runtime error while processing request</ows:ExceptionText>
</ows:Exception>
<ows:Exception exceptionCode="RuntimeError">
<ows:ExceptionText>java.lang.NullPointerException : null</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

Change History (2)

comment:1 by Bang Pham Huu, 8 years ago

Milestone: 9.210.0

comment:2 by Bang Pham Huu, 8 years ago

Resolution: fixed
Status: newclosed

Patch was accepted, close ticket.

Note: See TracTickets for help on using tickets.