Opened 8 years ago
Last modified 6 years ago
#1342 closed defect
Rasql_Cannot use range name with different coverages — at Version 1
Reported by: | Bang Pham Huu | Owned by: | Sulav Timilsina |
---|---|---|---|
Priority: | critical | Milestone: | 9.7 |
Component: | qlparser | Version: | development |
Keywords: | Cc: | Dimitar Misev | |
Complexity: | Medium |
Description (last modified by )
irr_cube_2 coverage has 2 ranges (b1, b2)
but when use c.b1 or c.b2 it has error
SELECT encode((c.b1)[0:10,0:20,0], "PNG") FROM irr_cube_2 AS c' rasql: rasdaman query tool v1.0, rasdaman v9.2.1-gff4f8d4 -- generated on 10.05.2016 14:57:56. opening database RASBASE at localhost:7001...ok Executing retrieval query... rasdaman error 370: Execution error 370 in line 1, column 17, near token .: Struct selector is not valid. aborting transaction...ok
If change to band index, it also can run with irr_cube_2
SELECT encode((c.0)[0:10,0:20,0], "PNG") FROM irr_cube_2 AS c
To reproduce:
rasql -q "create collection a RGBSet" --user rasadmin --passwd rasadmin rasql -q 'insert into a values marray i in [0:1,0:1] values {0c,0c,0c}' --user rasadmin --passwd rasadmin rasql -q 'select c.red from a as c'
The last command should not throw an error.
You have to look at where the error is thrown (grep for 370 in rasdaman and try to trace all places where it's thrown) and try to find the issue.
It could be in the query language parser code, source:qlparser/lex.ll and source:qlparser/oql.yy
Change History (1)
comment:1 by , 8 years ago
Component: | rasql → qlparser |
---|---|
Description: | modified (diff) |
Owner: | changed from | to
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.