public static void validateModelName(String modelName) {
    if (modelName.length() < 2 || modelName.length() > 64) {
      throw new SemanticException("Model name should be 2-64 characters");
    } else if (modelName.startsWith("_")) {
      throw new SemanticException("Model name should not start with '_'");
    } else if (!modelName.matches("^[-\\w]*$")) {
      throw new SemanticException("ModelName can only contain letters, numbers, and underscores");
    }
  }
Check and set datatype, encoding, compressor.

@throws SemanticException if encoding or dataType meets error handling
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/parser/ASTVisitor.java