New issue 34 by stevebourke: table query failing with DATA column
http://code.google.com/p/casacore/issues/detail?id=34
What steps will reproduce the problem?
1. Open the attached MS
2. perform a query on it including the DATA column
3. access the sub-table DATA column
What is the expected output? What do you see instead?
Access to the DATA column is expected but get the following error:
File "error_test.py", line 14, in <module>
data = subt.getcol('DATA')
File "/opt/pyrap/python/pyrap.tables-0.3.0_r308-py2.6-linux-i686.egg/pyrap/tables/table.py",
line 856, in getcol
return self._getcol (columnname, startrow, nrow, rowincr)
RuntimeError: ArrayBase::Array(const IPosition&) - Negative shape
What version of the product are you using? On what operating system?
13463, linux 32bit
Please provide any additional information below.
Attached is a pyrap script that demonstrates the issue. The same
happens in casapy using the tb toolkit so I think the problem is in
casacore rather than pyrap.
Attachments:
error_test.py 298 bytes
sb1.ms.tgz 6.5 MB
Comment #1 on issue 34 by gervandiepen: table query failing with DATA column
http://code.google.com/p/casacore/issues/detail?id=34
(No comment was entered for this change.)
I think adding a sortcolumn solves the problem even the sort column isn't
part of the select.
Comment #3 on issue 34 by gervandiepen: table query failing with DATA column
http://code.google.com/p/casacore/issues/detail?id=34
It appeared that the data in the TSM of this MS were not stored
sequentially. In such a case TSMDataColumn::accessColumnCells did not
behave correctly.