Opened 7 years ago

Closed 7 years ago

#1677 closed defect (fixed)

RasdaPy_Error parsing result from count_cells()

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

With this query

select count_cells( test_grey2 >-1) from test_grey2

return exception in RasdaPy

  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 483, in _execute_read
    return self._get_next_element()
  File "/home/rasdaman/.local/lib/python2.7/site-packages/rasdapy/core.py", line 562, in _get_next_element
    metadata.spatial_domain))
  File "/home/rasdaman/.local/lib/python2.7/site-packages/rasdapy/utils.py", line 212, in convert_data_stream_from_bin
    temp = convert_data_from_bin(dtype["type"], data)
  File "/home/rasdaman/.local/lib/python2.7/site-packages/rasdapy/utils.py", line 117, in convert_data_from_bin
    result = struct.unpack("L", data)
error: unpack requires a string argument of length 8

with rasql, it returns

Query result collection has 1 element(s):
  Result element 1: 1

Change History (2)

comment:1 by Bang Pham Huu, 7 years ago

Same error with this query

select condense + over x in [1:100000] using 1s

comment:2 by Bang Pham Huu, 7 years ago

Resolution: fixed
Status: newclosed

will be fixed in the patch for ticket:1685

Note: See TracTickets for help on using tickets.