arqvascobarbosa / axiis

Automatically exported from code.google.com/p/axiis
0 stars 0 forks source link

DataSet.aggregateData returns NaN when aggregating data nodes with just a single value #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Replace the 2008_Olympics.xml with the modified one attached
2.Run the HClusterStackExample
3.Put a debug point at dc.invalidateDisplayList();
4.Look at the aggregates output in the debugger (see screenshot attached) 
to see that the medal_count_avg = NaN for South Korea (which was modified 
to just have a single gold metal node)

What is the expected output? What do you see instead?
The expected would be the aggeration of the single node, but it returns NaN

What version of the product are you using? On what operating system?
I downloaded the May build version as well as R309 on Windows XP

Please provide any additional information below.

I have attached a screenshot of the debugger as well as the raw xml file 
used to simulate the condition.

Original issue reported on code.google.com by nprocto...@gmail.com on 25 Aug 2009 at 10:28

Attachments:

GoogleCodeExporter commented 8 years ago
thanks for submitting this bug report.  We are making significant changes to 
DataSet, with more strongly typed 
classes to support grouping and aggregation.  We will be sure to test for 
single node collections in 
aggregation.

Original comment by twgonza...@gmail.com on 25 Aug 2009 at 11:54

GoogleCodeExporter commented 8 years ago
These 'country' nodes should to be wrapped in a root 'countries' node for well 
formed XML (in the 
2008_Olympics example).

Aggregation is not functional if the XML has a root level node.

This becomes major in dealing with systems using XML typed objects.  

Original comment by jasonlst...@gmail.com on 27 Oct 2009 at 10:24

GoogleCodeExporter commented 8 years ago
I fixed this issue in response to a question on the google group, but I'm only 
noticing it here now. Marking it as closed. The fix can be found in the 
development 
branch.

Original comment by mvand...@gmail.com on 4 Dec 2009 at 1:29

GoogleCodeExporter commented 8 years ago
Hi there, woudl it possible to just post how you fix. 
The version you have online is actually quite different from the one I'm using 
and it
actually renders my application useless.
Thanks in advance for your time.
Wils

Original comment by wilsoned...@gmail.com on 3 Mar 2010 at 3:28