You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2022/03/31 15:49:57 UTC
[GitHub] [incubator-linkis] GodfreyGuo opened a new issue #1851: [Bug] [dev-1.2.0]jdbc run error for mutil sqls
GodfreyGuo opened a new issue #1851:
URL: https://github.com/apache/incubator-linkis/issues/1851
### Search before asking
- [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
### Linkis Component
linkis-cg-engineConnplugin
### What happened + What you expected to happen
when run jdbc plugin with many sql like 'select * from a; select * from b', it run with error
### Relevent platform
linkis 1.0.3
dss1.0.1
jdbc
### Reproduction script
need fix it with follow codes in the below files:
1. linkis-computation-governance/linkis-computation-governance-common/src/main/scala/org/apache/linkis/governance/common/paser/CodeParser.scala
// add jdbc to change sql
def getType(codeType: String): CodeType = codeType.toLowerCase() match {
case "python" | "pyspark" | "py" => Python
case "sql" | "hql" | "psql" | "jdbc" => SQL
case "scala" => Scala
case "shell" | "sh" => Shell
case _ => Other
}
2. // linkis-engineconn-plugins/engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala
// in the init function add setCodeParse to SQLCodeParse
override def init(): Unit = {
setCodeParser(new SQLCodeParser)
super.init()
connectionManager.startRefreshKerberosLoginStatusThread()
}
### Anything else
this issue occur every time
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org