Opened 8 years ago

Closed 6 years ago

#1339 closed defect (fixed)

Rasql_Throw exception when incompatible casting

Reported by: Bang Pham Huu Owned by: bbell
Priority: major Milestone: 9.7
Component: rasql Version: development
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description

When creating a range constructor, if one of range element's type is not as same as other's type then it return an general exception.

SELECT encode({

(long) ( data.2 ) * 0.3555
, (long) ( data.2 )  * 255

}, "png", "nodata=null") from rgb as data
Executing retrieval query...rasdaman error 0: Exception:  ODMG General
aborting transaction...ok

More elaborating message will be help to identify the problem.

Change History (4)

comment:1 by Bang Pham Huu, 7 years ago

Milestone: 9.39.4

comment:2 by Bang Pham Huu, 6 years ago

Milestone: 9.49.6
Owner: set to bbell
Priority: minormajor
Status: newassigned

comment:3 by Dimitar Misev, 6 years ago

Milestone: 9.69.7

comment:4 by Dimitar Misev, 6 years ago

Resolution: fixed
Status: assignedclosed

With that query I get:

$ rasql -q 'select encode({(long) c.2 * 0.3555, (long) c.2 * 255}, "png", "nodata=null") from test_rgb2 as c'
rasql: rasdaman query tool v1.0, rasdaman 9.6.0.
Opening database RASBASE at localhost:7001... ok.
Executing retrieval query... rasdaman error 381: Execution error 381 in line 1, column 8, near token encode: Error in convertor of the selected data exchange format.
aborting transaction... ok.
rasql done.

and the logs provide more detail:

[FATAL] - 2018-06-28 15:10:43,032, /home/dimitar/rasdaman/community/src/conversion/gdal.cc:585: Can not handle bands of different types.
Note: See TracTickets for help on using tickets.