You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (Created) (JIRA)" <ji...@apache.org> on 2012/01/05 18:32:40 UTC

[jira] [Created] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

SelectStatement start/end key are not set correctly when a key alias is involved
--------------------------------------------------------------------------------

                 Key: CASSANDRA-3700
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
             Project: Cassandra
          Issue Type: Bug
            Reporter: Jonathan Ellis
            Assignee: Pavel Yaskevich


start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181413#comment-13181413 ] 

Jonathan Ellis commented on CASSANDRA-3700:
-------------------------------------------

EntityType is basically obsolete now isn't it?
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Pavel Yaskevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Yaskevich updated CASSANDRA-3700:
---------------------------------------

    Attachment: CASSANDRA-3700.patch
    
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis reopened CASSANDRA-3700:
---------------------------------------

      Assignee: Jonathan Ellis  (was: Pavel Yaskevich)

Ugh, we should actually continue to allow using KEY in 1.0.x.  Working on a patch for that and case-insensitivity for the aliases.
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>              Labels: cql
>             Fix For: 1.0.7
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181427#comment-13181427 ] 

Jonathan Ellis commented on CASSANDRA-3700:
-------------------------------------------

bq. why don't we just allow the key alias, and have this be KEY (which we already do) by default for CF created through thrift without a proper key_alias 

That makes a lot of sense to me.
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180584#comment-13180584 ] 

Jonathan Ellis commented on CASSANDRA-3700:
-------------------------------------------

My suggestion would be to have antlr just generate a list of expressions and let QueryProcessor determine which are for the key and which are for columns.
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181871#comment-13181871 ] 

Jonathan Ellis commented on CASSANDRA-3700:
-------------------------------------------

I guess that's okay, although we will probably want generalize IN to allow <column> IN (...) as well at some point.

+1 on this patch
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Pavel Yaskevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Yaskevich updated CASSANDRA-3700:
---------------------------------------

    Attachment:     (was: CASSANDRA-3700.patch)
    
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Pavel Yaskevich (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181414#comment-13181414 ] 

Pavel Yaskevich commented on CASSANDRA-3700:
--------------------------------------------

we will need it in the situation where KEY is involved, we probably can use default alias if it's guaranteed to be KEY tho...
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Pavel Yaskevich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Yaskevich updated CASSANDRA-3700:
---------------------------------------

    Attachment: CASSANDRA-3700.patch
    
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Pavel Yaskevich (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181682#comment-13181682 ] 

Pavel Yaskevich commented on CASSANDRA-3700:
--------------------------------------------

<key> IN (.., ..., ...) condition is treated directly without relaying on extractKeysFromColumns() so we still need this check in such case.
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181416#comment-13181416 ] 

Jonathan Ellis commented on CASSANDRA-3700:
-------------------------------------------

Right, it either has to be the key alias or KEY.
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-3700:
--------------------------------------

          Component/s: API
    Affects Version/s: 0.8.0
        Fix Version/s: 1.0.7
               Labels: cql  (was: )

This also affects 0.8, but if people haven't hit the problem there yet then they're probably not going to.  (And the workaround of "just use KEY instead" is straightforward.)  Let's fix this in 1.0+.
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.7
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Pavel Yaskevich (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181605#comment-13181605 ] 

Pavel Yaskevich commented on CASSANDRA-3700:
--------------------------------------------

updated patch with does not special-case KEY and removes EntityType.
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-3700:
--------------------------------------

    Attachment: 3700-case-insensitivity.txt
    
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>              Labels: cql
>             Fix For: 1.0.7
>
>         Attachments: 3700-case-insensitivity.txt, CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-3700.
---------------------------------------

    Resolution: Fixed
      Assignee: Pavel Yaskevich  (was: Jonathan Ellis)

committed
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.7
>
>         Attachments: 3700-case-insensitivity.txt, CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-3700:
--------------------------------------

    Affects Version/s:     (was: 0.8.0)
                       0.8.1
    
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.7
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Jonathan Ellis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181673#comment-13181673 ] 

Jonathan Ellis commented on CASSANDRA-3700:
-------------------------------------------

I think this is obsolete now (in QP.process) since we use the "realKeyAlias" in WhereClause now to check if in fact an identifier is a key reference:

{code}
.               if (select.getKeys().size() > 0)
                    validateKeyAlias(metadata, select.getKeyAlias());
{code}
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Sylvain Lebresne (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181420#comment-13181420 ] 

Sylvain Lebresne commented on CASSANDRA-3700:
---------------------------------------------

Is there a real advantage to allow the use of key alias *or* KEY. That is, why don't we just allow the key alias, and have this be KEY (which we already do) by default for CF created through thrift without a proper key_alias (case that is hopefully bound to disappear). The fact that we reserve KEY (and key too I believe) is kind of limiting in that you cannot use KEY for some other column.
Besides, the KEY notation will be slightly less meaningful post-2474 because it will not necessarily correspond to the primary key anymore (i.e, it may correspond only to the first column column that compose the PRIMARY KEY).
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Pavel Yaskevich
>              Labels: cql
>             Fix For: 1.0.8
>
>         Attachments: CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-3700) SelectStatement start/end key are not set correctly when a key alias is involved

Posted by "Pavel Yaskevich (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183465#comment-13183465 ] 

Pavel Yaskevich commented on CASSANDRA-3700:
--------------------------------------------

+1
                
> SelectStatement start/end key are not set correctly when a key alias is involved
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3700
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3700
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.8.1
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>              Labels: cql
>             Fix For: 1.0.7
>
>         Attachments: 3700-case-insensitivity.txt, CASSANDRA-3700.patch
>
>
> start/end key are set by antlr in WhereClause, but this depends on the "KEY" keyword.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira