Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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 Dimitar Misev, 12 years ago

Owner: changed from misev to Dimitar Misev
Status: newassigned

comment:2 by Peter Baumann, 12 years ago

Milestone: 9.0

comment:3 by Dimitar Misev, 12 years ago

Owner: changed from Dimitar Misev to Nikolche Kolev

@Nikolce

The goal of this task is to make the following query work fine (1):

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"

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:

rasql -q "select <[0:0,0:0] struct{1c,1c,1c}> from mr"

comment:4 by Nikolche Kolev, 12 years ago

Complexity: Medium
Resolution: fixed
Status: assignedclosed

comment:5 by abeccati, 12 years ago

Milestone: 9.08.4.2
Note: See TracTickets for help on using tickets.