[
https://issues.apache.org/jira/browse/PHOENIX-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Taylor updated PHOENIX-2909:
----------------------------------
Description:
We could potentially recognize updates to the same column in a SQL statement
and compile them into either a check and put or increment call.
For example, the following could use increment or a get/put under row lock to
perform the row update atomically
{code}
UPSERT INTO my_table(pk1, pk2, counter) SELECT pk1, pk2, counter + 1 FROM
my_table;
{code}
was:We could potentially recognize updates to the same column in a SQL
statement and compile them into either a check and put or increment call.
> Support compilation to atomic increment for non transactional tables
> --------------------------------------------------------------------
>
> Key: PHOENIX-2909
> URL: https://issues.apache.org/jira/browse/PHOENIX-2909
> Project: Phoenix
> Issue Type: Bug
> Reporter: James Taylor
>
> We could potentially recognize updates to the same column in a SQL statement
> and compile them into either a check and put or increment call.
> For example, the following could use increment or a get/put under row lock to
> perform the row update atomically
> {code}
> UPSERT INTO my_table(pk1, pk2, counter) SELECT pk1, pk2, counter + 1 FROM
> my_table;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)