I am looking to combine multiple upsert requests into one request and pass it to the phoenix query server.
I am sending the following json to upsert one record
POST https://tishihdiphoenix.azurehdinsight.net/hbasephoenix/
HTTP/1.1
request: {
"request":"prepareAndExecute",
"connectionId":"000000-0000-0000-00000001",
"sql":"UPSERT INTO Table ( col1 ) VALUES ( value1 ):100"
}
Authorization: Basic YWRtaW46Tm9tb3JlTm9tb3JlIT0x
Host: tishihdiphoenix.azurehdinsight.net
Content-Length: 0
Connection: Keep-Alive
I want to be able to send in multiple upsert statements with different values in one json. I looked at the avatica roadmap and its mentioned that we can call composite RPC's by Execute-Fetch.
http://calcite.apache.org/docs/avatica_roadmap.html
I was hoping to get an example on how to do this as there is no execute-fetch example in the documentation.