mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-2.0' into cassandra-2.1
Conflicts: CHANGES.txt
This commit is contained in:
commit
477a0a28b5
|
|
@ -109,6 +109,7 @@ Merged from 1.2:
|
|||
* Non-droppable verbs shouldn't be dropped from OTC (CASSANDRA-6980)
|
||||
* Shutdown batchlog executor in SS#drain() (CASSANDRA-7025)
|
||||
* Fix batchlog to account for CF truncation records (CASSANDRA-6999)
|
||||
* Fix CQLSH parsing of functions and BLOB literals (CASSANDRA-7018)
|
||||
|
||||
|
||||
2.0.6
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ;
|
|||
<quotedName> ::= /"([^"]|"")*"/ ;
|
||||
<float> ::= /-?[0-9]+\.[0-9]+/ ;
|
||||
<uuid> ::= /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ ;
|
||||
<blobLiteral> ::= /0x[0-9a-f]+/ ;
|
||||
<wholenumber> ::= /[0-9]+/ ;
|
||||
<identifier> ::= /[a-z][a-z0-9_]*/ ;
|
||||
<colon> ::= ":" ;
|
||||
|
|
@ -182,10 +183,15 @@ JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ;
|
|||
| <float>
|
||||
| <uuid>
|
||||
| <boolean>
|
||||
| <blobLiteral>
|
||||
| <functionName> <functionArguments>
|
||||
;
|
||||
|
||||
<functionArguments> ::= "(" ( <term> ( "," <term> )* )? ")"
|
||||
;
|
||||
|
||||
<tokenDefinition> ::= token="TOKEN" "(" <term> ( "," <term> )* ")"
|
||||
| <stringLiteral>
|
||||
| <term>
|
||||
;
|
||||
<value> ::= <term>
|
||||
| <collectionLiteral>
|
||||
|
|
@ -207,6 +213,9 @@ JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ;
|
|||
<mapLiteral> ::= "{" <term> ":" <term> ( "," <term> ":" <term> )* "}"
|
||||
;
|
||||
|
||||
<functionName> ::= <identifier>
|
||||
;
|
||||
|
||||
<statementBody> ::= <useStatement>
|
||||
| <selectStatement>
|
||||
| <dataChangeStatement>
|
||||
|
|
@ -582,13 +591,13 @@ syntax_rules += r'''
|
|||
;
|
||||
<selectStatement> ::= "SELECT" <selectClause>
|
||||
"FROM" cf=<columnFamilyName>
|
||||
("WHERE" <whereClause>)?
|
||||
("ORDER" "BY" <orderByClause> ( "," <orderByClause> )* )?
|
||||
("LIMIT" limit=<wholenumber>)?
|
||||
( "WHERE" <whereClause> )?
|
||||
( "ORDER" "BY" <orderByClause> ( "," <orderByClause> )* )?
|
||||
( "LIMIT" limit=<wholenumber> )?
|
||||
;
|
||||
<whereClause> ::= <relation> ("AND" <relation>)*
|
||||
<whereClause> ::= <relation> ( "AND" <relation> )*
|
||||
;
|
||||
<relation> ::= [rel_lhs]=<cident> ("=" | "<" | ">" | "<=" | ">=") <term>
|
||||
<relation> ::= [rel_lhs]=<cident> ( "=" | "<" | ">" | "<=" | ">=" ) <term>
|
||||
| token="TOKEN" "(" [rel_tokname]=<cident>
|
||||
( "," [rel_tokname]=<cident> )*
|
||||
")" ("=" | "<" | ">" | "<=" | ">=") <tokenDefinition>
|
||||
|
|
@ -601,7 +610,10 @@ syntax_rules += r'''
|
|||
<selector> ::= [colname]=<cident>
|
||||
| "WRITETIME" "(" [colname]=<cident> ")"
|
||||
| "TTL" "(" [colname]=<cident> ")"
|
||||
| <functionName> <selectionFunctionArguments>
|
||||
;
|
||||
<selectionFunctionArguments> ::= "(" ( <selector> ( "," <selector> )* )? ")"
|
||||
;
|
||||
<orderByClause> ::= [ordercol]=<cident> ( "ASC" | "DESC" )?
|
||||
;
|
||||
'''
|
||||
|
|
|
|||
Loading…
Reference in New Issue