Opened 5 years ago
Closed 5 years ago
#2302 closed defect (duplicate)
Rasql - cannot use DEM as collection alias
Reported by: | Bang Pham Huu | Owned by: | apercov |
---|---|---|---|
Priority: | major | Milestone: | 10.0 |
Component: | server | Version: | 9.8 |
Keywords: | Cc: | Dimitar Misev, Vlad Merticariu, Peter Baumann | |
Complexity: | Medium |
Description
This will cause problem when one uses DEM
or dem
as collection iterator.
rasql -q 'select encode(DEM, "png") from test_mr as DEM' --out string error 300: Parsing error 300 in line 1, column 18: Unexpected name ,.
Change History (8)
comment:1 by , 5 years ago
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
comment:2 by , 5 years ago
…where do I find this information as a user? Do we have a list of all reserved words anywhere?
Also, the error message is inadequate: "unexpected name ,". Ideally, a user would see aka "Error: Rserved word forbidden in this position."
comment:3 by , 5 years ago
The list of reserved tokens is in qlparser/lex.ll. We could add to the docs in an appendix similar to https://doc.rasdaman.org/04_ql-guide.html#appendix-a-rasql-grammar
comment:4 by , 5 years ago
yes, could be generated automatically for rasql. But still needs transfer to WCPS, likely human effort saying "in addition to WCPS keywords, the following are reserved".
comment:5 by , 5 years ago
WCPS comes with its own list of tokens, IMO that would fit better under https://doc.rasdaman.org/05_geo-services-guide.html#wcps, wdyt?
comment:6 by , 5 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:8 by , 5 years ago
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
DEM is a function name (just like PNG(…)).
DEM LRPAR generalExp COMMA StringLit RRPAR