Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] CheckIn: Fix bugzilla bug 124447 chart binding a data set which has a filter 'ToP N' can not been previewed.

-Summary:

CheckIn: Fix bugzilla bug 124447 chart binding a data set which has a filter 'ToP N' can not been previewed.

 

-Bugzilla Bug (s) Resolved:

Bugzilla bug 124447

 

-Description:

When use top/bottom N, the filter _expression_ will be populate with a handle of NEvaluator instance once and only once in each query. When use chart, for some reason they populate the result set from one query twice, this lead to the problem.

 

Change the code so that all the handles of top/bottom filter expressions are cleared before they leave CachedResultSet. The problem is fixed. A unit test case is added.


-Tests Description:
UnitTest

 

-Files Edited:

"/org.eclipse.birt.data/test/org/eclipse/birt/data/engine/api/MultiplePassTest.java"

"/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/CachedResultSet.java"

 

-Files Added:

"/org.eclipse.birt.data/test/org/eclipse/birt/data/engine/executor/cache/golden/CachedMultiplePassTest.testGroupFilteringSorting4.txt"

"/org.eclipse.birt.data/test/org/eclipse/birt/data/engine/api/golden/MultiplePassTest.testGroupFilteringSorting4.txt"

 

 

- Notes to Build Team:
- Notes to Developers:
- Notes to QA: 
 

It is strange that chart needs to populate ResultIterator twice from same query. Some enhancement may need.

 

- Notes to Documentation:

 

 


Back to the top