maedhroz commented on code in PR #1962:
URL: https://github.com/apache/cassandra/pull/1962#discussion_r1039946762


##########
src/antlr/Parser.g:
##########
@@ -73,6 +80,19 @@ options {
         return marker;
     }
 
+    public RowDataReference.Raw newRowDataReference(Selectable.RawIdentifier 
tuple, Selectable.Raw selectable)
+    {
+        if (!isParsingTxn)
+            throw new IllegalStateException();

Review Comment:
   I should also probably make this a `SyntaxException` while I'm at it...how 
about this?
   
   ```
   throw new SyntaxException("Cannot create a row data reference unless parsing 
a transaction");
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to