Posted: Thu Jul 03, 2014 12:46 am Post subject: Cardinality with Index
Acolyte
Joined: 15 May 2013 Posts: 64
Hi,
I have requirement to count the occurence of Date field in the message and so I have the below statement in my ESQL code.
DECLARE count INTEGER CARDINALITY(InRef.NS1:XYZ.NS1:Date[]);
Though there is no warnings/errors during compile time but at the time of deployment I am encountering the below error:
" BIP2493E:
Illegal type for parameter '1' of the function 'CARDINALITY'. A list is required.
The expression supplying the parameter must evaluate to a value of a suitable type. The given expression cannot possibly do so.
Correct the syntax of your ESQL expression in node..."
The broker identifies the datatype as list with help of [] and so here the broker should have identified the statement under cardinality as list and the error shouldn't have been encountered but I am not sure why the error has been encountered.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum