cancel
Showing results for 
Search instead for 
Did you mean: 

Calculated column in Graphical view cast to wrong data type causing joins to fail

aj_shaik
Explorer
0 Kudos

Hi All,

Can anybody help me understand why HANA is behaving wrong for the following case.

1. In a Graphical Calculate view, created a calculated column which checks for null value and returns 0 when null or the actual column value of type BIGINT.

2. The runtime object in _SYS_BIC is getting Decimal data type, which is causing issue in the joins when used in other views. When I choose data type as Integer it is conversting correct. However, I need it in BIGINT format.

3. Cannot use in join column. Please note that this error has occured when refactored the view to new package. Ironically the view in old package get deployed with any errors and I can also see the data.

4. I have tried, deleting the _SYS_BIC runtime views and deploy, dint work.

5. Workaround by casting the calculated columns to "Double" and return type as Double. The view was sucessfully activated and can see type as expected.

SAP HANA Studio Version: 2.2.13

SAP HANA SPS 11.

- Why is the above formula data type is decimal although it is defined as BIGINT.?

- If there is any resolution to resolve this issue?

Thank you for your help.

Ajaz

aj_shaik
Explorer
0 Kudos

Hi Florian,

Thank you for your time, I have updated the screens. Let me know if you dont see them.

Kind Regards,

Ajaz

Accepted Solutions (0)

Answers (0)