Opened 8 years ago

Closed 8 years ago

#1119 closed defect (fixed)

adjust rasql type definition syntax to rasdl syntax

Reported by: Peter Baumann Owned by: George Merticariu
Priority: critical Milestone: 9.2
Component: qlparser Version: development
Keywords: Cc: Dimitar Misev
Complexity: Easy

Description (last modified by Peter Baumann)

The rasql "create type" syntax is incompatible with all other syntax items in rasdaman, it needs to work exactly as in rasdl.

Change History (6)

comment:1 by George Merticariu, 8 years ago

Should this complement the existing syntax to also support the rasdl syntax?

comment:2 by Peter Baumann, 8 years ago

yes. The other syntax we can leave, but I will not advertise it now in the QL Guide. We first need to have more comprehensive support for SQL/MDA.

comment:3 by Peter Baumann, 8 years ago

Description: modified (diff)

comment:4 by George Merticariu, 8 years ago

The rasdl syntax should be mirrored exactly in rasql? Please see example below.

./rasql -q 'struct RGBPixel { char red, char green, char blue}'
./rasql -q 'typedef marray <RGBPixel, 2> RGBImage'
./rasql -q 'typedef set <RGBImage> RGBSet'

comment:5 by Dimitar Misev, 8 years ago

The above doesn't look very good.. I'd vote for create type rather than typedef.

comment:6 by George Merticariu, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.