cancel
Showing results for 
Search instead for 
Did you mean: 

HANA Calculation view: Projection changes DATE to SECONDDATE

roland_bouman
Contributor
0 Kudos

Hi all, working on SAP HANA SP12; Eclipse Oxygen with latest SAP Developement Tools.

I want to create a CUBE Calculation view with star join. The data foundation (fact) is a another calculation view, which has a column of the DATE datatype which I want to use to join to my Date dimension.

The Date dimension is also a calculation view of the DIMENSION type, subtype: Time variety, having a Date granularity. This gives me a calculation view having a DATE_SQL column, which is of the DATE type. I want to use this column to link to my data foundation.

Now the trouble starts. In my top-level CUBE calculation view, I created a projection node on my Fact calcview, which I then connect to the Star Join Node. I also dragged my Date dimension calcview into the star join. But I cannot make the join because of this error:

"Model inconsistency. Create Scenario failed: Datatype seconddate(8) of DATE_SQL does not match to datatype daydate(4) of attribute DATE_SQL "

The data type of the columns in both underlying calc views is DATE, so it should be fine to join them. But it turns out that, for some reason, the projection on my fact calcview uses SECONDDATE rather than DATE for the DATE column. I cannot seem to be able to change the data type in my projection.

Thoughts or suggestions?

Accepted Solutions (1)

Accepted Solutions (1)

lbreddemann
Active Contributor
0 Kudos

Can you provide more details on the base tables and the calculation views?

I was not able to reproduce this ad-hoc - the modeler didn't allow the join between the seconddate and daydate column.

What you can do anyhow is to have a calculated column in the aggregation of your fact table that converts the seconddate into daydate.

roland_bouman
Contributor
0 Kudos

Hi Lars, thanks for the reply!

I tried to retrace my steps but it seems I cannot reproduce them anymore. Most likely, I was not paying attention. Sorry to bother.

Cheers and best regards,

Roland.

Answers (1)

Answers (1)

roland_bouman
Contributor
0 Kudos

Hi Lars, thanks for the reply!


I tried to retrace my steps but it seems I cannot reproduce them anymore. Most likely, I was not paying attention. Sorry to bother.


Cheers and best regards,

Roland.