File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed 
test/unit/org/apache/cassandra/cql3 Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ K_LABEL:       L A B E L;
236236K_DROPPED:      D R O P P E D;
237237K_COLUMN:       C O L U M N;
238238K_RECORD:       R E C O R D;
239- K_ANN_OF :       A N N WS +  O F ;
239+ K_ANN :          A N N ;
240240
241241//  Case- insensitive alpha characters
242242fragment A:  (' a'  |' A'  );
Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ orderByClause[List<Ordering.Raw> orderings]
465465    @init{ 
466466        Ordering.Direction direction =  Ordering.Direction.ASC;
467467    } 
468-     :  c= cident (K_ANN_OF  t= term)? (K_ASC | K_DESC {  direction =  Ordering.Direction.DESC; } )?
468+     :  c= cident (K_ANN K_OF  t= term)? (K_ASC | K_DESC {  direction =  Ordering.Direction.DESC; } )?
469469    { 
470470        Ordering.Raw.Expression expr =  (t ==  null)
471471            ? new Ordering.Raw.SingleColumn(c)
@@ -2087,7 +2087,7 @@ basic_unreserved_keyword returns [String str]
20872087        | K_DROPPED 
20882088        | K_COLUMN 
20892089        | K_RECORD 
2090-         | K_ANN_OF  
2090+         | K_ANN  
20912091        | K_OFFSET 
20922092        | K_DETERMINISTIC 
20932093        | K_MONOTONIC 
Original file line number Diff line number Diff line change 3232
3333import  org .apache .cassandra .exceptions .SyntaxException ;
3434import  org .apache .cassandra .service .StorageService ;
35+ import  org .assertj .core .api .Assertions ;
3536
3637/** 
3738 * This class tests all keywords which took a long time. Hence it was split into multiple 
@@ -47,6 +48,12 @@ public abstract class KeywordTestBase extends CQLTester
4748                                                  })
4849                                                  .collect (Collectors .toList ());
4950
51+     static 
52+     {
53+         // ensure that ANN is a separate keyword, so it's included on this tests (see CNDB-12733) 
54+         Assertions .assertThat (keywords ).contains (new  Object []{"ANN" , false });
55+     }
56+     
5057    public  static  Collection <Object []> getKeywordsForSplit (int  split , int  totalSplits )
5158    {
5259        return  Sets .newHashSet (Lists .partition (KeywordTestBase .keywords , KeywordTestBase .keywords .size () / totalSplits )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments