This depends on the exact version of Avatica you are using, because it's
different in all released versions.

In this comment you can see an example of running UPSERT with 1.4 with the
JSON serializer (I think Phoenix 4.7 includes that version):

https://issues.apache.org/jira/browse/CALCITE-1050?focusedCommentId=15093324&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15093324

You can also try my Python module for talking to the server. With verbose
logging, it will print the exact JSON documents it's sending.

https://code.oxygene.sk/lukas/python-phoenixdb

Lukas


On Fri, Feb 5, 2016 at 5:16 PM, Steve Terrell <[email protected]> wrote:

> Does anyone have an example of how to upsert a row in a Phoenix table via
> the Avatica HTTP mechanism?
>
> The closest thing to documentation I can find are these two links:
>
>    -
>    
> https://community.hortonworks.com/questions/1565/phoenix-query-server-documentation.html
>    - https://calcite.apache.org/docs/avatica_json_reference.html
>
> I got the select example working, but cannot get an upsert to work.
>
> Thanks,
>     Steve
>

Reply via email to