Opened 8 years ago
Closed 6 years ago
#1373 closed defect (fixed)
Rasql_Using only the first set types if have multiple same structure types
Reported by: | Bang Pham Huu | Owned by: | bbell |
---|---|---|---|
Priority: | major | Milestone: | 9.7 |
Component: | rasql | Version: | development |
Keywords: | Cc: | Dimitar Misev, Vlad Merticariu, Sulav Timilsina | |
Complexity: | Medium |
Description
In case of having multiple types (base, mdd, set) with same structure (i.e: band numbers, data type) but different band names.
e.g: type1 (char b1, char b2, char b3)
type2 (char b3, char b2, char b1)
when creating collection "Create collection test_1 type2" and using dbinfo(), it will return the band names from type1 not type2.
baseType": "marray <struct { char b1, char b2, char b3 }, [*:*,*:*]>",
In the attachment is a script to reproduce the error and more detail with error, see in here http://rasdaman.org/ticket/1342#comment:9
Attachments (1)
Change History (10)
by , 8 years ago
Attachment: | script_error.sh added |
---|
follow-up: 2 comment:1 by , 8 years ago
comment:2 by , 8 years ago
I also have this problem before, but after I built the new version, it was gone.
Replying to dmisev:
I adapted the test script a bit.
I'm getting this output:
Create first type Create second type Create a collection based on type_2 (note: it should be in order: b3, b2, b1) Check the band names of the test coverage { "oid": "86529", "baseType": "marray <struct { char , char , char }>", "tileNo": "1", "totalSize": "3", "tiling": { "tilingScheme": "aligned", "tileSize": "4194304", "tileConfiguration": "[0:*,0:*]" }, "index": { "type": "rpt_index", "PCTmax": "4096", "PCTmin": "2048" } } Expected output: 0, 1, 2 rasdaman error 370: Execution error 370 in line 1, column 13, near token .: Struct selector is not valid. rasdaman error 370: Execution error 370 in line 1, column 13, near token .: Struct selector is not valid. rasdaman error 370: Execution error 370 in line 1, column 13, near token .: Struct selector is not valid.
comment:3 by , 8 years ago
I think the error in #comment:2 is not fixed, current version show this error again with the script as when show dbinfo of collection, the bands are null instead of (char b3, char b2, char b1)
"baseType": "marray <struct { char , char , char }>",
comment:4 by , 8 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
this problem need to be fixed in rasql so http://rasdaman.org/ticket/1342 can be fixed later.
comment:5 by , 8 years ago
Milestone: | 9.3 → 9.4 |
---|
comment:6 by , 7 years ago
Owner: | changed from | to
---|
comment:7 by , 7 years ago
Milestone: | 9.4 → 9.6 |
---|
comment:8 by , 7 years ago
Milestone: | 9.6 → 9.7 |
---|
comment:9 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This is duplicate of #1342 actually, technically it's the same bug.
I adapted the test script a bit.
I'm getting this output: