#157 closed defect (fixed)
array constant for rgb not working
Reported by: | Jinsongdi Yu | Owned by: | Nikolche Kolev |
---|---|---|---|
Priority: | major | Milestone: | 8.4.2 |
Component: | qlparser | Version: | 8.3 |
Keywords: | array constant | Cc: | |
Complexity: | Medium |
Description
According to the syntax of ql-guide.pdf, the syntax of array constant is as below:
< mintervalExpr
scalarList_0 ;
… ;
scalarList_n ;
where scalarList is defined as a comma separated list of literals:
scalar_0, scalar_1,… ;
scalarLit : complexLit
| atomicLit
complexLit : { scalarLitList }
| struct { scalarLitList }
However, the below query works
rasql -q "select <[0:0,0:0] struct{1c,1c,1c}> from mr"
and this one does not work
rasql -q "select <[0:1,0:1] struct{1c,1c,1c}, struct{1c,1c,1c};struct{1c,1c,1c},struct{1c,1c,1c}> from mr"
Change History (5)
comment:1 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 12 years ago
Milestone: | → 9.0 |
---|
comment:3 by , 12 years ago
Owner: | changed from | to
---|
comment:4 by , 12 years ago
Complexity: | → Medium |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
comment:5 by , 11 years ago
Milestone: | 9.0 → 8.4.2 |
---|
Note:
See TracTickets
for help on using tickets.
@Nikolce
The goal of this task is to make the following query work fine (1):
You'll most likely need to fix the query parser in source:qlparser/oql.yy
You should figure out which rule parses this query (most importantly the "<[0:0,0:0] struct{1c,1c,1c}>" part), and then fix it to parse the above query too: