Opened 6 years ago

Closed 6 years ago

#1674 closed defect (fixed)

RasdaPy_Error parsing result from array constants

Reported by: Bang Pham Huu Owned by:
Priority: major Milestone: 9.5
Component: rasdapy Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

Rasql queries

rasql -q 'select < [0:2,0:4] 0, 1, 2, 3, 4; 1, 2, 3, 4, 5; 2, 3, 4, 5, 6 > from test_mr' --out hex
rasql: rasdaman query tool v1.0, rasdaman v9.5.0-beta1-g83e5ca18.
opening database RASBASE at localhost:7001...ok
Executing retrieval query...ok
Query result collection has 1 element(s):

  Result object 1:  0  0  0  0  1  0  0  0  2  0  0  0  3  0  0  0  4  0  0  0  1  0  0  0  2  0  0  0  3  0  0  0  4  0  0  0  5  0  0  0  2  0  0  0  3  0  0  0  4  0  0  0  5  0  0  0  6  0  0  0 

Run queries by RasdaPy

select < [0:2,0:4] 0, 1, 2, 3, 4; 1, 2, 3, 4, 5; 2, 3, 4, 5, 6 > from test_mr

  File "/home/rasdaman/.local/lib/python2.7/site-packages/rasdapy/core.py", line 435, in eval
    return self._execute_read()
  File "/home/rasdaman/.local/lib/python2.7/site-packages/rasdapy/core.py", line 481, in _execute_read
    return self._get_next_collection()
  File "/home/rasdaman/.local/lib/python2.7/site-packages/rasdapy/core.py", line 530, in _get_next_collection
    metadata.spatial_domain)))
  File "/home/rasdaman/.local/lib/python2.7/site-packages/rasdapy/utils.py", line 192, in convert_data_stream_from_bin
    temp = convert_data_from_bin(dtype["type"], data[i: i + dtsize])
  File "/home/rasdaman/.local/lib/python2.7/site-packages/rasdapy/utils.py", line 119, in convert_data_from_bin
    result = struct.unpack("l", data)
error: unpack requires a string argument of length 8

Change History (1)

comment:1 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: newclosed

will be fixed in the patch for ticket:1685

Note: See TracTickets for help on using tickets.