Opened 11 years ago
Closed 11 years ago
#409 closed defect (worksforme)
RASJ: use of converter in RASQL query generates error
Reported by: | Dirk Daems | Owned by: | Dimitar Misev |
---|---|---|---|
Priority: | major | Milestone: | 8.4.4 |
Component: | java | Version: | 8.4 |
Keywords: | Cc: | Peter Baumann | |
Complexity: | Medium |
Description
The use of the inv_tiff() converter in a RASQL query executed using the RASJ API generates an error. However, If I add the same TIFF file using the same commands via the RASQL command-line client, the file is uploaded correct.
org.odmg.QueryException: Execution error 381 in line 1, column 34, near token inv_tiff: Error in convertor of the selected data exchange format. at rasj.odmg.RasOQLQuery.execute(RasOQLQuery.java:238) at CreateCollection.main(CreateCollection.java:42)
Added a simple Java class which contains the code causing the issue described above.
Attachments (1)
Change History (4)
by , 11 years ago
Attachment: | CreateCollection.java added |
---|
comment:1 by , 11 years ago
Cc: | added |
---|---|
Status: | new → accepted |
comment:2 by , 11 years ago
Milestone: | → 8.4.4 |
---|
comment:3 by , 11 years ago
Resolution: | → worksforme |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
In the patch I submitted for #408 I included a test case for this, see source:java/src/tests/UpdateTest.java
Basically the problem is that the MDD interval should be 1D (e.g. 0 : file size in bytes), and the type should be 1D as well (GreyString). This is because when the tiff file is read by rasdaman it's still just an array of bytes encoded in some format, not an array understandable by rasdaman. Only after it's decoded by the tiff converter it can get the proper type and domain.