on ‎2014 Mar 18 1:18 PM
Request clarification before answering.
Hey Jurgen,
As Andreas mentioned, you are close now. Your PA is working fine with HANA.The error is of HANA and nothing to do with Apriori or SAP PA.
You get that error when you hit the upper limit of the datatype on column "NUMERONOTAVENDA" since you are using SUM aggregation.
Alter the table column datatype to higher (say DOUBLE), or you can try another workaround with datatype conversion function (TO_DOUBLE)
eg: convert the column type to double using TO_DOUBLE(NUMERONOTAVENDA) while creating the analytic view
See if it works and let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know if there exists such a document that will tell you difference between different kind of aggregations but I can explain with an example , but the blog below should help you
If you have a dataset like below:
| Product | Customer | Transaction Id | Value |
| P1 | C1 | 1001 | 300 |
| P1 | C1 | 1002 | 400 |
| P1 | C1 | 1003 | 500 |
| P1 | C2 | 1004 | 600 |
| P1 | C2 | 1005 | 100 |
| P2 | C1 | 1006 | 750 |
| P2 | C2 | 1007 | 800 |
If you create a view with only Product and Customer, the data for different aggregations appears as below:
SUM
| P1 | C1 | 1200 |
| P1 | C2 | 700 |
| P2 | C1 | 750 |
| P2 | C2 | 800 |
MIN
| P1 | C1 | 300 |
| P1 | C2 | 100 |
| P2 | C1 | 750 |
| P2 | C2 | 800 |
MAX
| P1 | C1 | 500 |
| P1 | C2 | 600 |
| P2 | C1 | 750 |
| P2 | C2 | 800 |
COUNT
| P1 | C1 | 3 |
| P1 | C2 | 2 |
| P2 | C1 | 1 |
| P2 | C2 | 1 |
Hope you get it.
Regarding change in data type, do it at the table and view both to avoid any issue (if space is not a constraint for you)
Hi Bimal, thank you so much for your explanation about the different types of aggregations!
I'm thinking about using the following SQL Command:
ALTER TABLE "ABC"."INTEGER" ALTER (COL_NUMERONOTAVENDA DOUBLE);
Where the table name is: ABC, the format of the collumn I want to change is INTEGER
The collumn I want to change is named as NUMERONOTAVENDA
and the new format is DOUBLE
Am I doing it right?
Can I execute this command?
Regards!
The statement looks correct to me. This will help you.
SAP HANA Reference: ALTER TABLE
First I would say, change the column type in view. Ideally it should work.
If it does not than goto Table and modify it.
Try both and see which one works for you.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.