linxt20 commented on code in PR #11681:
URL: https://github.com/apache/iotdb/pull/11681#discussion_r1426321702
##########
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:
Fixed.
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/common/header/ColumnHeaderConstant.java:
##########
@@ -49,6 +49,8 @@ private ColumnHeaderConstant() {
public static final String DEADBAND = "Deadband";
public static final String DEADBAND_PARAMETERS = "DeadbandParameters";
public static final String IS_ALIGNED = "IsAligned";
+ public static final String Template = "Template";
Review Comment:
Fixed.
--
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]