Opened 8 months ago

Last modified 2 months ago

#1373 assigned defect

Rasql_Using only the first set types if have multiple same structure types

Reported by: bphamhuu Owned by: dmisev
Priority: major Milestone: 9.4
Component: rasql Version: development
Keywords: Cc: dmisev, vmerticariu, stimilsina
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 dmisev 8 months ago.

Download all attachments as: .zip

Change History (6)

Changed 8 months ago by dmisev

comment:1 follow-up: Changed 8 months ago by 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:2 in reply to: ↑ 1 Changed 8 months ago by bphamhuu

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 Changed 7 months ago by bphamhuu

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 Changed 4 months ago by bphamhuu

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

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

comment:5 Changed 2 months ago by dmisev

  • Milestone changed from 9.3 to 9.4
Note: See TracTickets for help on using tickets.