From 538f187bcbe1dcd0368d0dd28f6b4614a5350b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cv=5Fkkhuang=E2=80=9D?= <“420895376@qq.com”> Date: Tue, 10 Dec 2024 14:48:32 +0800 Subject: [PATCH] Code optimization --- .../scala/org/apache/linkis/ujes/jdbc/UJESSQLResultSet.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkis-computation-governance/linkis-jdbc-driver/src/main/scala/org/apache/linkis/ujes/jdbc/UJESSQLResultSet.scala b/linkis-computation-governance/linkis-jdbc-driver/src/main/scala/org/apache/linkis/ujes/jdbc/UJESSQLResultSet.scala index 407136bf77..cbfa94b232 100644 --- a/linkis-computation-governance/linkis-jdbc-driver/src/main/scala/org/apache/linkis/ujes/jdbc/UJESSQLResultSet.scala +++ b/linkis-computation-governance/linkis-jdbc-driver/src/main/scala/org/apache/linkis/ujes/jdbc/UJESSQLResultSet.scala @@ -176,7 +176,7 @@ class UJESSQLResultSet( return } val metaTmp = resultSetResult.getMetadata - if ("NULL" == metaTmp) { + if ("NULL".equals(String.valueOf(metaTmp))) { val fileContentList = resultSetResult.getFileContent.asInstanceOf[util.List[util.List[String]]] if (null != fileContentList) { resultSetMetaData.setColumnNameProperties(1, "linkis_string")