Partition key not set in Event hub output


i have following query in stream analytics:

select p2.gatewayid gatewayid,p2.deviceid, 'powerminute' property , p2.time, p2.value 
output1 powerreading p2 timestamp time ...

"output1" configured output event hub , have set "partition key column" gatewayid. yet, when @ messages in event hub, partitionkey null. message in event hub json , contains gatewayid element expected. ideas why partition key not set?

and follow-up: message event hub array, contains 1 item, in cases, e.g. after stopping job , restarting start time being "last stopped time", there more 1 item in array. in test case gatewayid same, if there more 1 gatewayid in array, how partitionkey selected? reason doesn't work , there way fix it?

do mean eventdata.partitionkey value in output event hub messages ? long gatewayid values being used hash , distribute events different eh partitions, need partitionkey set reason ? 

this design way asa sends data output eh . when configure asa eh partitionkey - best write throughput, asa doesn't use eh client partitioning , spraying events different partitions (eh client needs partitionkey set distribution) , internally hashes partitionkey , distributes events parallel eh senders write each partition directly. 

to avoid ambiguous behavior in arrays, please try explicitly specify item need use partitionkey ( see getarrayelement). 

cheers !


[disclaimer] posting provided "as is" no warranties, , confers no rights. user assumes all.



Microsoft Azure  >  Azure Stream Analytics



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'