[jira] [Updated] (CASSANDRA-10532) Allow LWT operation on static column with only partition keys
[ https://issues.apache.org/jira/browse/CASSANDRA-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Hanna updated CASSANDRA-10532: - Labels: LWT (was: ) > Allow LWT operation on static column with only partition keys > - > > Key: CASSANDRA-10532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10532 > Project: Cassandra > Issue Type: Improvement > Components: CQL > Environment: C* 2.2.0 >Reporter: DOAN DuyHai >Assignee: Carl Yeksigian >Priority: Major > Labels: LWT > Fix For: 2.1.15, 2.2.7, 3.0.8, 3.8 > > > Schema > {code:sql} > CREATE TABLE IF NOT EXISTS achilles_embedded.entity_with_static_column( > id bigint, > uuid uuid, > static_col text static, > value text, > PRIMARY KEY(id, uuid)); > {code} > When trying to prepare the following query > {code:sql} > DELETE static_col FROM achilles_embedded.entity_with_static_column WHERE > id=:id_Eq IF static_col=:static_col; > {code} > I got the error *DELETE statements must restrict all PRIMARY KEY columns with > equality relations in order to use IF conditions, but column 'uuid' is not > restricted* > Since the mutation only impacts the static column and the CAS check is on the > static column, it makes sense to provide only partition key -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org
[jira] [Updated] (CASSANDRA-10532) Allow LWT operation on static column with only partition keys
[ https://issues.apache.org/jira/browse/CASSANDRA-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Yeksigian updated CASSANDRA-10532: --- Resolution: Fixed Fix Version/s: (was: 3.0.x) (was: 2.2.x) (was: 2.1.x) (was: 3.x) 3.0.8 3.8 2.2.7 2.1.15 Status: Resolved (was: Ready to Commit) Committed as [1d2d074|https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=commit;h=1d2d0749a8b72c4c8cdd5b85b210157e8d7d6a41]. > Allow LWT operation on static column with only partition keys > - > > Key: CASSANDRA-10532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10532 > Project: Cassandra > Issue Type: Improvement > Components: CQL > Environment: C* 2.2.0 >Reporter: DOAN DuyHai >Assignee: Carl Yeksigian > Fix For: 2.1.15, 2.2.7, 3.8, 3.0.8 > > > Schema > {code:sql} > CREATE TABLE IF NOT EXISTS achilles_embedded.entity_with_static_column( > id bigint, > uuid uuid, > static_col text static, > value text, > PRIMARY KEY(id, uuid)); > {code} > When trying to prepare the following query > {code:sql} > DELETE static_col FROM achilles_embedded.entity_with_static_column WHERE > id=:id_Eq IF static_col=:static_col; > {code} > I got the error *DELETE statements must restrict all PRIMARY KEY columns with > equality relations in order to use IF conditions, but column 'uuid' is not > restricted* > Since the mutation only impacts the static column and the CAS check is on the > static column, it makes sense to provide only partition key -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10532) Allow LWT operation on static column with only partition keys
[ https://issues.apache.org/jira/browse/CASSANDRA-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Lerer updated CASSANDRA-10532: --- Status: Ready to Commit (was: Patch Available) > Allow LWT operation on static column with only partition keys > - > > Key: CASSANDRA-10532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10532 > Project: Cassandra > Issue Type: Improvement > Components: CQL > Environment: C* 2.2.0 >Reporter: DOAN DuyHai >Assignee: Carl Yeksigian > Fix For: 2.1.x, 2.2.x, 3.0.x, 3.x > > > Schema > {code:sql} > CREATE TABLE IF NOT EXISTS achilles_embedded.entity_with_static_column( > id bigint, > uuid uuid, > static_col text static, > value text, > PRIMARY KEY(id, uuid)); > {code} > When trying to prepare the following query > {code:sql} > DELETE static_col FROM achilles_embedded.entity_with_static_column WHERE > id=:id_Eq IF static_col=:static_col; > {code} > I got the error *DELETE statements must restrict all PRIMARY KEY columns with > equality relations in order to use IF conditions, but column 'uuid' is not > restricted* > Since the mutation only impacts the static column and the CAS check is on the > static column, it makes sense to provide only partition key -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10532) Allow LWT operation on static column with only partition keys
[ https://issues.apache.org/jira/browse/CASSANDRA-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Yeksigian updated CASSANDRA-10532: --- Status: Patch Available (was: Open) Sorry this issue fell through the cracks. I pushed new branches, including a [3.7 branch|https://github.com/carlyeks/cassandra/commits/ticket/10532/3.7], and kicked off new CI runs. It looks like 2.2, 3.0, and trunk are missing dtests for me to run in CI /cc [~mshuler] [~philipthompson] > Allow LWT operation on static column with only partition keys > - > > Key: CASSANDRA-10532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10532 > Project: Cassandra > Issue Type: Improvement > Components: CQL > Environment: C* 2.2.0 >Reporter: DOAN DuyHai >Assignee: Carl Yeksigian > Fix For: 2.1.x, 2.2.x, 3.0.x, 3.x > > > Schema > {code:sql} > CREATE TABLE IF NOT EXISTS achilles_embedded.entity_with_static_column( > id bigint, > uuid uuid, > static_col text static, > value text, > PRIMARY KEY(id, uuid)); > {code} > When trying to prepare the following query > {code:sql} > DELETE static_col FROM achilles_embedded.entity_with_static_column WHERE > id=:id_Eq IF static_col=:static_col; > {code} > I got the error *DELETE statements must restrict all PRIMARY KEY columns with > equality relations in order to use IF conditions, but column 'uuid' is not > restricted* > Since the mutation only impacts the static column and the CAS check is on the > static column, it makes sense to provide only partition key -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10532) Allow LWT operation on static column with only partition keys
[ https://issues.apache.org/jira/browse/CASSANDRA-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Lerer updated CASSANDRA-10532: --- Reviewer: Benjamin Lerer > Allow LWT operation on static column with only partition keys > - > > Key: CASSANDRA-10532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10532 > Project: Cassandra > Issue Type: Improvement > Components: CQL > Environment: C* 2.2.0 >Reporter: DOAN DuyHai >Assignee: Carl Yeksigian > Fix For: 2.2.x > > > Schema > {code:sql} > CREATE TABLE IF NOT EXISTS achilles_embedded.entity_with_static_column( > id bigint, > uuid uuid, > static_col text static, > value text, > PRIMARY KEY(id, uuid)); > {code} > When trying to prepare the following query > {code:sql} > DELETE static_col FROM achilles_embedded.entity_with_static_column WHERE > id=:id_Eq IF static_col=:static_col; > {code} > I got the error *DELETE statements must restrict all PRIMARY KEY columns with > equality relations in order to use IF conditions, but column 'uuid' is not > restricted* > Since the mutation only impacts the static column and the CAS check is on the > static column, it makes sense to provide only partition key -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10532) Allow LWT operation on static column with only partition keys
[ https://issues.apache.org/jira/browse/CASSANDRA-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Lerer updated CASSANDRA-10532: --- Fix Version/s: 3.x 3.0.x 2.1.x > Allow LWT operation on static column with only partition keys > - > > Key: CASSANDRA-10532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10532 > Project: Cassandra > Issue Type: Improvement > Components: CQL > Environment: C* 2.2.0 >Reporter: DOAN DuyHai >Assignee: Carl Yeksigian > Fix For: 2.1.x, 2.2.x, 3.0.x, 3.x > > > Schema > {code:sql} > CREATE TABLE IF NOT EXISTS achilles_embedded.entity_with_static_column( > id bigint, > uuid uuid, > static_col text static, > value text, > PRIMARY KEY(id, uuid)); > {code} > When trying to prepare the following query > {code:sql} > DELETE static_col FROM achilles_embedded.entity_with_static_column WHERE > id=:id_Eq IF static_col=:static_col; > {code} > I got the error *DELETE statements must restrict all PRIMARY KEY columns with > equality relations in order to use IF conditions, but column 'uuid' is not > restricted* > Since the mutation only impacts the static column and the CAS check is on the > static column, it makes sense to provide only partition key -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10532) Allow LWT operation on static column with only partition keys
[ https://issues.apache.org/jira/browse/CASSANDRA-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-10532: - Issue Type: Improvement (was: Bug) > Allow LWT operation on static column with only partition keys > - > > Key: CASSANDRA-10532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10532 > Project: Cassandra > Issue Type: Improvement > Components: API > Environment: C* 2.2.0 >Reporter: DOAN DuyHai > > Schema > {code:sql} > CREATE TABLE IF NOT EXISTS achilles_embedded.entity_with_static_column( > id bigint, > uuid uuid, > static_col text static, > value text, > PRIMARY KEY(id, uuid)); > {code} > When trying to prepare the following query > {code:sql} > DELETE static_col FROM achilles_embedded.entity_with_static_column WHERE > id=:id_Eq IF static_col=:static_col; > {code} > I got the error *DELETE statements must restrict all PRIMARY KEY columns with > equality relations in order to use IF conditions, but column 'uuid' is not > restricted* > Since the mutation only impacts the static column and the CAS check is on the > static column, it makes sense to provide only partition key -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10532) Allow LWT operation on static column with only partition keys
[ https://issues.apache.org/jira/browse/CASSANDRA-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-10532: - Fix Version/s: 2.2.x > Allow LWT operation on static column with only partition keys > - > > Key: CASSANDRA-10532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10532 > Project: Cassandra > Issue Type: Improvement > Components: API > Environment: C* 2.2.0 >Reporter: DOAN DuyHai > Fix For: 2.2.x > > > Schema > {code:sql} > CREATE TABLE IF NOT EXISTS achilles_embedded.entity_with_static_column( > id bigint, > uuid uuid, > static_col text static, > value text, > PRIMARY KEY(id, uuid)); > {code} > When trying to prepare the following query > {code:sql} > DELETE static_col FROM achilles_embedded.entity_with_static_column WHERE > id=:id_Eq IF static_col=:static_col; > {code} > I got the error *DELETE statements must restrict all PRIMARY KEY columns with > equality relations in order to use IF conditions, but column 'uuid' is not > restricted* > Since the mutation only impacts the static column and the CAS check is on the > static column, it makes sense to provide only partition key -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10532) Allow LWT operation on static column with only partition keys
[ https://issues.apache.org/jira/browse/CASSANDRA-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sylvain Lebresne updated CASSANDRA-10532: - Assignee: Carl Yeksigian > Allow LWT operation on static column with only partition keys > - > > Key: CASSANDRA-10532 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10532 > Project: Cassandra > Issue Type: Improvement > Components: API > Environment: C* 2.2.0 >Reporter: DOAN DuyHai >Assignee: Carl Yeksigian > Fix For: 2.2.x > > > Schema > {code:sql} > CREATE TABLE IF NOT EXISTS achilles_embedded.entity_with_static_column( > id bigint, > uuid uuid, > static_col text static, > value text, > PRIMARY KEY(id, uuid)); > {code} > When trying to prepare the following query > {code:sql} > DELETE static_col FROM achilles_embedded.entity_with_static_column WHERE > id=:id_Eq IF static_col=:static_col; > {code} > I got the error *DELETE statements must restrict all PRIMARY KEY columns with > equality relations in order to use IF conditions, but column 'uuid' is not > restricted* > Since the mutation only impacts the static column and the CAS check is on the > static column, it makes sense to provide only partition key -- This message was sent by Atlassian JIRA (v6.3.4#6332)