Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 251178

Summary: JoinDataSet unable to read output column for joined parameterized DataSet
Product: z_Archived Reporter: Nattapong Sirilappanich <natta>
Component: BIRTAssignee: Lin Zhu <lzhu>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: bluesoldier, joel, kroll, lchen, lzhu, suwits, zqian
Version: 2.3.1   
Target Milestone: 2.3.2   
Hardware: PC   
OS: Windows XP   
Whiteboard: Obsolete
Attachments:
Description Flags
The sample Join Data Set which is unusable because no column available
none
Corrected Report Design
none
design with two datasets and a join dataset none

Description Nattapong Sirilappanich CLA 2008-10-17 00:01:53 EDT
Created attachment 115337 [details]
The sample Join Data Set which is unusable because no column available

Build ID: M20080911-1700

Steps To Reproduce:
1.Create Empty Report
2.Create Sample Data Source
3.Create 2 Data Sets and each Data Set have at least one parameter
4.Create Join Data Set on 2 Data Set created on step 3.



More information:
The Join Data Set on Step 4 will unusable because it's unable to determine an output column.
Comment 1 Lin Zhu CLA 2008-10-20 01:24:14 EDT
Hi There,

Can you have a try of latest BIRT?

There are some problem exists in your attached report design. I've made the correction and the report can be now previewed w/o problem.

Please see my attachment.

Thanks.
Lin
Comment 2 Lin Zhu CLA 2008-10-20 01:25:08 EDT
Created attachment 115536 [details]
Corrected Report Design
Comment 3 Nattapong Sirilappanich CLA 2008-10-20 02:39:48 EDT
(In reply to comment #2)
> Created an attachment (id=115536) [details]
> Corrected Report Design 

Hi.

The corrected rptdesign is working.
About the latest BIRT, do you mean the latest build ?
If that's the case, it may takes me a while because my working site has limited bandwidth for downloading.

Thanks & Regards
Comment 4 Lin Zhu CLA 2008-10-20 02:48:25 EDT
Hi There, 

As far as the correct rptdesign is working, that would be fine.

What I curious about is that how the original report design (which is incorrect) is created. Can you stably re-create such a report design? If that is the case we may need further investigation.

Thanks.
Lin
Comment 5 Nattapong Sirilappanich CLA 2008-10-20 03:21:31 EDT
(In reply to comment #4)
> Hi There, 
> As far as the correct rptdesign is working, that would be fine.
> What I curious about is that how the original report design (which is
> incorrect) is created. Can you stably re-create such a report design? If that
> is the case we may need further investigation.
> Thanks.
> Lin

I'll try my best to describe the step i created this rptdesign.

1. File->New->Report->Finish
2. Right click on Data Sources->New Data source->Next->Finish
3. Right click on Report Parameters->New Parameter->Enter name as "maxCredit"->Select data type as "Float"->OK
4. Repeat step 3 with different name and data type as "status" and "String"
5. Right click on Data Sets->New Data set->Next
6. Paste this SQL "select *
from CLASSICMODELS.CUSTOMERS
where CLASSICMODELS.CUSTOMERS.CREDITLIMIT <= ?" without double quote.
7. Click Finish->Click Parameters->Click param_1->Edit->Change "Linked to report parameter" to "maxCredit"->OK
8. Repeat step 5.
9. Paste this SQL "select *
from CLASSICMODELS.ORDERS
where CLASSICMODELS.ORDERS.STATUS = ?" without double quote.
10. Click Finish->Click Paramter->Click param_1->Edit->Change "Linked to report parameter" to "status"->OK
11. Right click on Data Sets->New Joint Data set
12. Left topmost combo box choose "Data Set"
13. Right topmost combo box choose "Data Set1"
14. Left list box choose "customerNumber"
15. Right list box choose "customerNumber"
16. Finish->OK

After Click "OK" on step 16, the problem can be observed.
Comment 6 Lin Zhu CLA 2008-10-20 04:44:22 EDT
Hi There,

I cannot reproduce problem with BUILD 20081006 so later. I've also tried to use BUILD 20080916 but the problem still does not appear. 

Can you try a download from eclipse website for latest build to see if that still happens in your environment?

Thanks.
Lin
Comment 7 Nattapong Sirilappanich CLA 2008-10-20 05:03:05 EDT
(In reply to comment #6)
> Hi There,
> I cannot reproduce problem with BUILD 20081006 so later. I've also tried to use
> BUILD 20080916 but the problem still does not appear. 
> Can you try a download from eclipse website for latest build to see if that
> still happens in your environment?
> Thanks.
> Lin
Hi.

I'll try to download it from IES website but it usually takes me whole day to complete so i will let you know when it's finished.

I don't know what build i'm using but in Help->Software Updates shows almost every BIRT plug-in is 2.3.1.v20080630 (except oda jdbc profile ...) so i assumes it's build 20080630.

If you have sometime, please try on this build.

Thanks & Regards.
Comment 8 Nattapong Sirilappanich CLA 2008-10-21 03:12:52 EDT
Tested on BIRT SDK-2_3_2 build N20081010
No sign of this problem.

Seem like the last distro packed in www.eclipse.org/downloads and package IES 3.4.1 can reproduce this bug.

Test environment is Vista 64 bits SP1 Thai.
Comment 9 Lin Zhu CLA 2008-10-28 04:09:53 EDT
As in latest birt build the problem cannot be reproduced, mark the bug as fixed.
Comment 10 Liwen Chen CLA 2008-11-19 01:00:09 EST
Verified in build 2.3.2.v20081117
Comment 11 joel sherriff CLA 2009-02-13 17:15:11 EST
Created attachment 125698 [details]
design with two datasets and a join dataset
Comment 12 joel sherriff CLA 2009-02-13 17:17:38 EST
I'm having the same problem with 2.3.2RC2 - I've attached the design.  To reproduce I created the two datasets and joined them.  The resulting 

            <structure name="cachedMetaData"/>

tag is empty.
Comment 13 joel sherriff CLA 2009-02-13 18:39:57 EST
correction - this problem does seem fixed, after re-installing everything it seems fine.  except that when I create a chart against the resulting dataset, eclipse crashes :-(
Comment 14 Kevin A. Roll CLA 2009-06-08 12:27:58 EDT
I'm having a similar problem in BIRT 2.5.0 (BIRT Framework 2.5.0.v20090603-9ODS6GD6DotWJgPXFaYge), and I see the same empty cachedMetaData tag that Joel reported above. I have not yet been able to reproduce it using the sample data source, but the problem is occurring in my production report. My report contains two data sets from different JDBC data sources, one of which contains a report parameter. The joint data set shows no output columns. If I unlink the parameter in the first data set from the report parameter then the joint data set works OK and shows columns.