You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Earl Lapus <ea...@gmail.com> on 2018/03/27 23:58:20 UTC

Execute an external program

Hi All,

I may be over the edge here, but is there a way to execute an external
program if a new row is added or if an existing row is updated on a table?

Cheers,
Earl

-- 
There are seven words in this sentence.

Re: Execute an external program

Posted by Earl Lapus <ea...@gmail.com>.
On Wed, Mar 28, 2018 at 8:31 AM, Christophe Schmitz <
christophe@instaclustr.com> wrote:

>
> You probably want to check Cassandra triggers:
> http://cassandra.apache.org/doc/latest/cql/triggers.html
> You can write arbitrary code that is called for the DML against your table.
>
>
>
 Thanks, I'll check this out.

Re: Execute an external program

Posted by kurt greaves <ku...@instaclustr.com>.
Correct. Note that both triggers and CDC aren't widely used yet so be sure
to test.

On 28 March 2018 at 13:02, Earl Lapus <ea...@gmail.com> wrote:

>
> On Wed, Mar 28, 2018 at 8:39 AM, Jeff Jirsa <jj...@gmail.com> wrote:
>
>> CDC may also work for newer versions, but it’ll happen after the mutation
>> is applied
>>
>> --
>> Jeff Jirsa
>>
>>
> "after the mutation is applied" means after the query is executed?
>
>

Re: Execute an external program

Posted by Earl Lapus <ea...@gmail.com>.
On Wed, Mar 28, 2018 at 8:39 AM, Jeff Jirsa <jj...@gmail.com> wrote:

> CDC may also work for newer versions, but it’ll happen after the mutation
> is applied
>
> --
> Jeff Jirsa
>
>
"after the mutation is applied" means after the query is executed?

Re: Execute an external program

Posted by Jeff Jirsa <jj...@gmail.com>.
CDC may also work for newer versions, but it’ll happen after the mutation is applied 

-- 
Jeff Jirsa


> On Mar 27, 2018, at 5:31 PM, Christophe Schmitz <ch...@instaclustr.com> wrote:
> 
> Hi Earl,
> 
> You probably want to check Cassandra triggers:
> http://cassandra.apache.org/doc/latest/cql/triggers.html
> You can write arbitrary code that is called for the DML against your table.
> 
> Cheers,
> 
> Christophe
> 
> 
>> On 28 March 2018 at 10:58, Earl Lapus <ea...@gmail.com> wrote:
>> Hi All,
>> 
>> I may be over the edge here, but is there a way to execute an external program if a new row is added or if an existing row is updated on a table?
>> 
>> Cheers,
>> Earl
>> 
>> -- 
>> There are seven words in this sentence.
> 
> 
> 
> -- 
> Christophe Schmitz - VP Consulting
> AU: +61 4 03751980 / FR: +33 7 82022899
>     
> Read our latest technical blog posts here. This email has been sent on behalf of Instaclustr Pty. Limited (Australia) and Instaclustr Inc (USA). This email and any attachments may contain confidential and legally privileged information.  If you are not the intended recipient, do not copy or disclose its content, but please reply to this email immediately and highlight the error to the sender and then immediately delete the message.

Re: Execute an external program

Posted by Christophe Schmitz <ch...@instaclustr.com>.
Hi Earl,

You probably want to check Cassandra triggers:
http://cassandra.apache.org/doc/latest/cql/triggers.html
You can write arbitrary code that is called for the DML against your table.

Cheers,

Christophe


On 28 March 2018 at 10:58, Earl Lapus <ea...@gmail.com> wrote:

> Hi All,
>
> I may be over the edge here, but is there a way to execute an external
> program if a new row is added or if an existing row is updated on a table?
>
> Cheers,
> Earl
>
> --
> There are seven words in this sentence.
>



-- 

*Christophe Schmitz - **VP Consulting*

AU: +61 4 03751980 / FR: +33 7 82022899

<https://www.facebook.com/instaclustr>   <https://twitter.com/instaclustr>
<https://www.linkedin.com/company/instaclustr>

Read our latest technical blog posts here
<https://www.instaclustr.com/blog/>. This email has been sent on behalf
of Instaclustr Pty. Limited (Australia) and Instaclustr Inc (USA). This
email and any attachments may contain confidential and legally
privileged information.  If you are not the intended recipient, do not copy
or disclose its content, but please reply to this email immediately and
highlight the error to the sender and then immediately delete the message.