Skip to content

ParitionKey required on sum #8

@mregni

Description

@mregni

Hi, thanks for the nice store procedure!

One quick question. I'm using this one on a shared CosmosDB with partition key 'pk', when I query my db with the following code I get an error:

"System.Private.CoreLib: Exception while executing function: Horizontal. Microsoft.Azure.DocumentDB.Core: PartitionKey value must be supplied for this operation."

Any idea how I can fix this?

string cubeConfigString = @"{
        cubeConfig: {
        groupBy: 'startDateTime', 
        field: 'timeserie', 
        f: 'sum'
    }, 
    filterQuery: 'SELECT * FROM c'
}";
Object cubeConfig = JsonConvert.DeserializeObject<Object>(cubeConfigString);
var result = await client.ExecuteStoredProcedureAsync<dynamic>(uri + "/sprocs/cube", cubeConfig);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions