MarcosZyk commented on code in PR #11742:
URL: https://github.com/apache/iotdb/pull/11742#discussion_r1430840829
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/parser/ASTVisitor.java:
##########
@@ -3313,6 +3314,12 @@ public Statement
visitCreateSchemaTemplate(IoTDBSqlParser.CreateSchemaTemplateCo
List<CompressionType> compressors = new ArrayList<>();
for (IoTDBSqlParser.TemplateMeasurementClauseContext
templateClauseContext :
ctx.templateMeasurementClause()) {
+ if (templateClauseContext
+ .nodeNameWithoutWildcard()
+ .getText()
+ .equalsIgnoreCase(STRING_NULL)) {
+ throw new SemanticException("Device Template: measurement's name can
not be 'null'.");
Review Comment:
Refactor the error msg to "The name of a measurement in schema template
shall not be null."
--
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]