Opened 9 years ago
Closed 8 years ago
#1227 closed defect (fixed)
Rasql_should throw appropriate exception if encode in unsupported format
Reported by: | Bang Pham Huu | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 9.3 |
Component: | rasql | Version: | development |
Keywords: | Cc: | Dimitar Misev, Alex Dumitru | |
Complexity: | Medium |
Description
WCPS query
for c in (rgb) return encode( exp((c.1)[ i(000:400), j(000:450) ]/ 100000) , "ccccc")
with Rasql from WCPS 1.0 it will returns error
<ows:Exception exceptionCode="SemanticError"> <ows:ExceptionText> Error evaluating rasdaman query: 'select ccccc(exp((((c).1[0:400,-107:343])/(100000)))) from rgb AS c where oid(c)=45057 </ows:ExceptionText> </ows:Exception> <ows:Exception exceptionCode="RasdamanRequestFailed"> <ows:ExceptionText> Error evaluating rasdaman query: 'select ccccc(exp((((c).1[0:400,-107:343])/(100000)))) from rgb AS c where oid(c)=45057 </ows:ExceptionText> </ows:Exception> <ows:Exception exceptionCode="RuntimeError"> <ows:ExceptionText> org.odmg.QueryException : Parsing error 300 in line 1, column 13: Unexpected name (. </ows:ExceptionText>
with Rasql from WCPS 2.0 it will returns error
<ows:Exception exceptionCode="SemanticError"> <ows:ExceptionText> Error evaluating rasdaman query: 'SELECT encode(exp( ( c.1 ) [0:400,-107:343] / 100000 ), "ccccc" ) FROM rgb AS c </ows:ExceptionText> </ows:Exception> <ows:Exception exceptionCode="RasdamanRequestFailed"> <ows:ExceptionText> Error evaluating rasdaman query: 'SELECT encode(exp( ( c.1 ) [0:400,-107:343] / 100000 ), "ccccc" ) FROM rgb AS c </ows:ExceptionText> </ows:Exception> <ows:Exception exceptionCode="RuntimeError"> <ows:ExceptionText> org.odmg.QueryException : Unexpected internal server error. </ows:ExceptionText> </ows:Exception>
It should throw an exception like "cannot encode in "ccccc", the supported encoding is "png", "csv", "tiff", "hdf", "netcdf", …. and it will help to know what types of encoding which Rasdaman supports now.
Change History (1)
comment:1 by , 8 years ago
Milestone: | 10.0 → 9.3 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
It looks like it was fixed, close ticket