MarcosZyk commented on code in PR #11681:
URL: https://github.com/apache/iotdb/pull/11681#discussion_r1421899566


##########
iotdb-core/antlr/src/main/antlr4/org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4:
##########
@@ -210,7 +210,11 @@ countNodes
 
 // ---- Timeseries Where Clause
 devicesWhereClause
-    : WHERE deviceContainsExpression
+    : WHERE (deviceContainsExpression | templateEqualExpression)
+    ;
+
+templateEqualExpression
+    : TEMPLATE (operator_eq | OPERATOR_NEQ)  templateName=identifier

Review Comment:
   Why these two operators, "operator_eq" and "OPERATOR_NEQ", is different in 
character case? Make the code style consistent.



-- 
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]

Reply via email to