You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/03/05 09:04:29 UTC
[incubator-linkis] 16/18: Support to remove the limit #1573
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
commit a9a9767cc1c4d55644ca970522b91ede8103404f
Author: peacewong <wp...@gmail.com>
AuthorDate: Sat Mar 5 16:06:13 2022 +0800
Support to remove the limit #1573
---
.../entrance/interceptor/impl/SQLLimitEntranceInterceptor.scala | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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 7a53da1..d7e7612 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) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org