diff --git a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/interceptor/impl/SQLLimitEntranceInterceptor.scala b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/interceptor/impl/SQLLimitEntranceInterceptor.scala index 7a53da1fab..d7e761247a 100644 --- a/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/interceptor/impl/SQLLimitEntranceInterceptor.scala +++ b/linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/interceptor/impl/SQLLimitEntranceInterceptor.scala @@ -17,6 +17,7 @@ package org.apache.linkis.entrance.interceptor.impl +import org.apache.linkis.common.log.LogUtils import org.apache.linkis.entrance.conf.EntranceConfiguration import org.apache.linkis.entrance.interceptor.EntranceInterceptor import org.apache.linkis.governance.common.entity.job.JobRequest @@ -27,11 +28,11 @@ class SQLLimitEntranceInterceptor extends EntranceInterceptor { private val LIMIT_CREATORS = EntranceConfiguration.SQL_LIMIT_CREATOR.getValue override def apply(task: JobRequest, logAppender: java.lang.StringBuilder): JobRequest = { - /*val (user, creator) = LabelUtil.getUserCreator(task.getLabels) + val (user, creator) = LabelUtil.getUserCreator(task.getLabels) if (! LIMIT_CREATORS.contains(creator)) { logAppender.append(LogUtils.generateWarn(s"The code you submit will not be limited by the limit \n") ) return task - }*/ + } val codeType = { val codeType = LabelUtil.getCodeType(task.getLabels) if (null != codeType) {