Skip to content

Commit

Permalink
code format spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
casionone committed Oct 7, 2023
1 parent 5950d61 commit c97d2da
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ class ConfigurationTest {
Assertions.assertFalse(Configuration.isAdmin("HaDooop"))
}


@Test private[conf] def testFormatValue(): Unit = {
val confvalue = CommonVars[Int]("linkis.test.error.conf", 456).getValue
Assertions.assertTrue(123 == confvalue)
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import org.apache.linkis.engineplugin.trino.password.{
import org.apache.linkis.engineplugin.trino.socket.SocketChannelSocketFactory
import org.apache.linkis.engineplugin.trino.utils.{TrinoCode, TrinoSQLHook}
import org.apache.linkis.governance.common.paser.SQLCodeParser
import org.apache.linkis.governance.common.utils.JobUtils
import org.apache.linkis.manager.common.entity.resource.{
CommonNodeResource,
LoadResource,
Expand Down Expand Up @@ -80,7 +81,6 @@ import scala.collection.JavaConverters._
import com.google.common.cache.{Cache, CacheBuilder}
import io.trino.client._
import okhttp3.OkHttpClient
import org.apache.linkis.governance.common.utils.JobUtils

class TrinoEngineConnExecutor(override val outputPrintLimit: Int, val id: Int)
extends ConcurrentComputationExecutor(outputPrintLimit) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,30 @@ public Message list(
/** Method list should not contain subjob, which may cause performance problems. */
@ApiOperation(value = "listundonetasks", notes = "list undone tasks", response = Message.class)
@ApiImplicitParams({
@ApiImplicitParam(name = "startDate", required = false, dataType = "Long", value = "start date"),
@ApiImplicitParam(name = "endDate", required = false, dataType = "Long", value = "end date"),
@ApiImplicitParam(name = "status", required = false, dataType = "String", value = "status"),
@ApiImplicitParam(name = "pageNow", required = false, dataType = "Integer", value = "page now"),
@ApiImplicitParam(name = "pageSize", required = false, dataType = "Integer", value = "page size"),
@ApiImplicitParam(name = "startTaskID", required = false, dataType = "Long", value = "start task id"),
@ApiImplicitParam(name = "engineType", required = false, dataType = "String", value = "engine type"),
@ApiImplicitParam(name = "creator", required = false, dataType = "String", value = "creator")
@ApiImplicitParam(
name = "startDate",
required = false,
dataType = "Long",
value = "start date"),
@ApiImplicitParam(name = "endDate", required = false, dataType = "Long", value = "end date"),
@ApiImplicitParam(name = "status", required = false, dataType = "String", value = "status"),
@ApiImplicitParam(name = "pageNow", required = false, dataType = "Integer", value = "page now"),
@ApiImplicitParam(
name = "pageSize",
required = false,
dataType = "Integer",
value = "page size"),
@ApiImplicitParam(
name = "startTaskID",
required = false,
dataType = "Long",
value = "start task id"),
@ApiImplicitParam(
name = "engineType",
required = false,
dataType = "String",
value = "engine type"),
@ApiImplicitParam(name = "creator", required = false, dataType = "String", value = "creator")
})
@RequestMapping(path = "/listundonetasks", method = RequestMethod.GET)
public Message listundonetasks(
Expand Down

0 comments on commit c97d2da

Please sign in to comment.