>From Vijay Sarathy <[email protected]>:
Vijay Sarathy has uploaded this change for review. (
https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17440 )
Change subject: [ASTERIXDB-3147][COMP] Internal Error with multiple hints
......................................................................
[ASTERIXDB-3147][COMP] Internal Error with multiple hints
Change-Id: I3baf4a480aa002f703141376c02ff3a8cd0c8155
---
M asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
1 file changed, 13 insertions(+), 1 deletion(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb
refs/changes/40/17440/1
diff --git a/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
b/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
index c7ded7b..eda67bb 100644
--- a/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
+++ b/asterixdb/asterix-lang-sqlpp/src/main/javacc/SQLPP.jj
@@ -3688,7 +3688,10 @@
);
while (hintToken != null) {
annotation = parseExpressionAnnotation(hintToken);
- annotationList.add(annotation);
+ if (annotation != null) {
+ // annotation may be null if hints are malformed
+ annotationList.add(annotation);
+ }
hintToken = hintToken.specialToken;
if (hintToken != null) {
SourceLocation sourceLoc = getSourceLocation(hintToken);
--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17440
To unsubscribe, or for help writing mail filters, visit
https://asterix-gerrit.ics.uci.edu/settings
Gerrit-Project: asterixdb
Gerrit-Branch: neo
Gerrit-Change-Id: I3baf4a480aa002f703141376c02ff3a8cd0c8155
Gerrit-Change-Number: 17440
Gerrit-PatchSet: 1
Gerrit-Owner: Vijay Sarathy <[email protected]>
Gerrit-MessageType: newchange