Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Duplicate records are omitted in the projection node

$
0
0

Hi Experts,

 

 

We are facing issue data issues in graphical calculation view.Duplicate records are omitted in the projection node.

 

We are using one calculation view into another one. CalculationView (CV1) has the detailed data which we are aggregating in CalculationView(CV2).

 

CV1 view gives the output as 3 records for a particular filter, but when projected in CV2(projecting only few columns) we get only 2 distinct records. The other identical record is omitted which is resulting in wrong aggregation of data.

 

When debugged the CV1, we observed the issue is while using inner joins in CV1. Below is sample of the join:

 

Table A :

 

ColA1ColA2ColA3ColA4ColA5Measure1Measure2
A11A12A13A14A151020
A31A32A33A34A352030

 

Table B: (Output of another Calculation view which is used in the join)

 

ColB1ColB2ColB3ColB4ColB5
A11B12B13B14B15
A11B12B13B14B25
A31B32B33B34B35

 

We have used inner join between ColA1 and ColB11 with cardinality as blank.(Even tried with cardinality n:m)

 

The output of the join node is:

 

ColA1ColA2ColA3ColA4ColA5ColB2ColB3ColB4ColB5Measure1Measure2
A11A12A13A14A15B12B13B14B151020
A11A12A13A14A25B12B13B14B251020
A31A32A33A34A35B32B33B34B3520

30

 

But if i select few columns (executed SQL script in SQL console at the particular node), we notice only distinct records:

 

ColA1ColA2ColA5ColB2ColB3ColB4Measure1Measure2
A11A12A15B12B13B141020
A31A32A35B32B33B342030

 

Whereas we expect all the records, even duplicate ones. The output of this node is sent to higher nodes of the calculation view and many other business logic is applied.

 

Are we missing anything here?

 

Any help is greatly appreciated.

 

Thanks in advance.

 

Regards,

Priyanka


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>