Issue 34 in casacore: table query failing with DATA column

0 views
Skip to first unread message

casa...@googlecode.com

unread,
Dec 3, 2010, 7:53:42 AM12/3/10
to casacor...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

casa...@googlecode.com

unread,
Dec 14, 2010, 3:55:15 AM12/14/10
to casacor...@googlegroups.com
Updates:
Status: Started

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.)

casa...@googlecode.com

unread,
Dec 14, 2010, 3:59:17 AM12/14/10
to casacor...@googlegroups.com

Comment #2 on issue 34 by stevebourke: table query failing with DATA column
http://code.google.com/p/casacore/issues/detail?id=34

I think adding a sortcolumn solves the problem even the sort column isn't
part of the select.

casa...@googlecode.com

unread,
Dec 14, 2010, 7:00:17 AM12/14/10
to casacor...@googlegroups.com
Updates:
Status: Fixed
Owner: gervandiepen

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.


Reply all
Reply to author
Forward
0 new messages