on 06-01-2014 9:12 AM
Hi everybody,
I am relatively new to HANA and I have a question that most probably you will easily answer. Here is my problem...
I want to get some statistics regarding my tables and their columns (like histograms, etc). I came across a table named STATISTICS, which actually contains all the information I need. However, it's empty! So my question is...
How can I populate the statistics table in SAP HANA?
Thank you in advance for your assistance.
Regards,
Kanellos
Hi Kanellos
currently (SP7/SP8) SAP HANA doesn't collect statistics for "owned" tables, so there won't be any entries present in the system table.
It is possible to gather statistics for virtual tables that actually are present in remote databases, though.
Note that the query optimizers in SAP HANA don't require stored table/column statistics - they sample current values during the execution.
If you just want to learn about your data, then using the data preview against a table is pretty useful. It can show you data type, basic desc. stats and you can plot distribution and correlation between columns.
- Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lars,
Thank you for your fast reply.
The "open definition" view is quite helpful indeed, but I would rather inspect these results in a tabular format for all the tables I am interested in at a glance. Does HANA computes these statistics in an adhoc fashion when I am opening the "open definition" view or are they stored somewhere in a data dictionary table/view?
Thanks,
Kanellos
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.