Opened 12 years ago

Last modified 8 years ago

#132 closed defect

Selecting struct component by name fails — at Version 6

Reported by: Dimitar Misev Owned by: uadhikari
Priority: major Milestone: 9.0.x
Component: qlparser Version: 8.3
Keywords: Cc: Peter Baumann, Marcus Sen
Complexity: Medium

Description (last modified by Dimitar Misev)

select c.red from multi as c

fails with "Struct selector is not valid." when a custom struct type is used, while selecting by number works:

select c.0 from multi as c

selecting from an RGBSet collection also works:

select sdom(c.red) from rgb as c

To reproduce the following script can be used:

#!/bin/bash

cat > /tmp/types.dl << EOF
struct mod { float Surface_Temperature, Surface_Pressure, Total_Ozone, Water_Vapor; };
typedef marray <mod, 2> arrayMod07;
typedef set<arrayMod07> setMod07;
EOF

rasdl -r /tmp/types.dl -i > /dev/null 2>&1

r="rasql --user rasadmin --passwd rasadmin"

$r -q 'drop collection test' > /dev/null 2>&1
$r -q 'create collection test setMod07'
$r -q 'insert into test values marray i in [0:2,0:2] values {0.5f,1.0f,2.0f,4.0f}'

$r -q 'select csv(test.Surface_Temperatur) from test' --out string

Change History (6)

comment:1 by Dimitar Misev, 12 years ago

Description: modified (diff)

comment:2 by Peter Baumann, 11 years ago

Milestone: Future

comment:3 by Marcus Sen, 10 years ago

Complexity: Very Hard

Is this really rasgeo component?

comment:4 by Marcus Sen, 10 years ago

I seem to have accidentally set the complexity to Very Hard. I don't know what it was before.

comment:5 by Dimitar Misev, 10 years ago

Complexity: Very HardMedium
Component: rasgeoqlparser

comment:6 by Dimitar Misev, 10 years ago

Description: modified (diff)
Milestone: Future9.0.x
Owner: set to uadhikari
Status: newassigned
Note: See TracTickets for help on using tickets.