private RegionExecutionResult checkQuotaBeforeCreatingTimeSeries(
        final ISchemaRegion schemaRegion, final PartialPath path, final int size) {
      try {
        schemaRegion.checkSchemaQuota(path, size);
      } catch (final SchemaQuotaExceededException e) {
        return RegionExecutionResult.create(
            false, e.getMessage(), RpcUtils.getStatus(e.getErrorCode(), e.getMessage()));
      }
      return null;
    }
Check the quota before creating time series.

@return null if the quota is not exceeded, otherwise return the execution result.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/executor/RegionWriteExecutor.java