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)

script_error.sh (1.4 KB ) - added by Dimitar Misev 8 years ago.

Download all attachments as: .zip

Change History (10)

by Dimitar Misev, 8 years ago

Attachment: script_error.sh added

comment:1 by Dimitar Misev, 8 years ago

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.

in reply to:  1 comment:2 by Bang Pham Huu, 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 Bang Pham Huu, 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 Bang Pham Huu, 8 years ago

Owner: set to Dimitar Misev
Status: newassigned

this problem need to be fixed in rasql so http://rasdaman.org/ticket/1342 can be fixed later.

comment:5 by Dimitar Misev, 8 years ago

Milestone: 9.39.4

comment:6 by Dimitar Misev, 7 years ago

Owner: changed from Dimitar Misev to bbell

comment:7 by Bang Pham Huu, 7 years ago

Milestone: 9.49.6

comment:8 by Dimitar Misev, 7 years ago

Milestone: 9.69.7

comment:9 by Dimitar Misev, 6 years ago

Resolution: fixed
Status: assignedclosed

This is duplicate of #1342 actually, technically it's the same bug.

Note: See TracTickets for help on using tickets.