Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#157 closed defect (fixed)

array constant for rgb not working

Reported by: j.yu Owned by: nkolev
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 Changed 5 years ago by dmisev

  • Owner changed from misev to dmisev
  • Status changed from new to assigned

comment:2 Changed 4 years ago by pbaumann

  • Milestone set to 9.0

comment:3 Changed 4 years ago by dmisev

  • Owner changed from dmisev to nkolev

@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 Changed 4 years ago by nkolev

  • Complexity set to Medium
  • Resolution set to fixed
  • Status changed from assigned to closed

comment:5 Changed 4 years ago by abeccati

  • Milestone changed from 9.0 to 8.4.2
Note: See TracTickets for help on using tickets.