Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8076

SAP HANA Data Types ("SYS"."DATA_TYPES") and Calculation Views

$
0
0

Dear experts,

 

I'm trying to create a calculation view using native SQL and have come across an issue:

creating the calculation scenario works like a charm but when I try to generate the corresponding column view I get the following error message:

 

[129]: transaction rolled back by an internal error: exception 1000012: Undefined typeCode:247

 

After trying minor changes in the calculation scenario I found out that the problem is using a negative sql type in the final aggregation node (-9 for nvarchar). This value comes from the view "SYS"."VIEW_COLUMNS" and is also the one used for nvarchar in "SYS"."DATA_TYPES"...

 

When creating the same view as a graphical calculation view I noticed that the value used for nvarchar is 37. Replacing all the -9 entries by 37 worked fine, however I have no clue where this 37 comes from - there is no such entry in "SYS"."DATA_TYPES".

Is there some other system view where one can find the value used in the graphical view? Or maybe an overview of all available SQL types somewhere?

 

Thanks in advance,

Jordan


Viewing all articles
Browse latest Browse all 8076

Trending Articles



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