Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

HANA studio partitioning command

$
0
0

How does one state a partitioning in the HANA studio project ?

The examples in the HANA project studio help show how to define PK & indexes but partititoning is not covered

 

Example:

table.schemaName = "OPTIER_TRUNK";

table.tableType = COLUMNSTORE;

table.columns = [

{name = "REQUEST_INSTANCE_ID";     sqlType = BIGINT;   nullable=false;},

{name = "REQUEST_UUID";      sqlType = VARCHAR;  length=100; nullable=false; },

{name = "COMPOUND_REQUEST_INSTANCE_ID";  sqlType = BIGINT; },

{name = "ELAPSED_TIME";      sqlType = BIGINT; },

{name = "UOW_COUNT";       sqlType = BIGINT; },

{name = "START_TIME";       sqlType = TIMESTAMP; }

{name = "URL";         sqlType = VARCHAR;  length=4000; }

];

 

table.primaryKey.pkcolumns = ["REQUEST_INSTANCE_ID", "START_TIME"];

 

I want to partition by hash(START_TIME)

In "normal" SQL thats easy, but in the studio ... anyone?


Viewing all articles
Browse latest Browse all 3285

Trending Articles



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