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/07/03 13:46:18 UTC

[incubator-linkis] branch dev-1.2.0 updated: [feature] #2348 jdbc engine support trino (#2392)

This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.2.0
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git


The following commit(s) were added to refs/heads/dev-1.2.0 by this push:
     new 31d9a1abd [feature] #2348 jdbc engine support trino (#2392)
31d9a1abd is described below

commit 31d9a1abdd7e707da63502e2c81bcadf0162ba78
Author: huapan123456 <11...@qq.com>
AuthorDate: Sun Jul 3 21:46:14 2022 +0800

    [feature] #2348 jdbc engine support trino (#2392)
---
 .../manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/linkis-engineconn-plugins/engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala b/linkis-engineconn-plugins/engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala
index 4a84fb154..ae49fee7b 100644
--- a/linkis-engineconn-plugins/engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala
+++ b/linkis-engineconn-plugins/engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executer/JDBCEngineConnExecutor.scala
@@ -180,6 +180,7 @@ class JDBCEngineConnExecutor(override val outputPrintLimit: Int, val id: Int) ex
         while (count < outputPrintLimit && resultSet.next()) {
           val r: Array[Any] = columns.indices.map { i =>
             val data = resultSet.getObject(i + 1) match {
+              case value: Array[Byte] => new String(resultSet.getObject(i + 1).asInstanceOf[Array[Byte]])
               case value: Any => resultSet.getString(i + 1)
               case _ => null
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org