From 55b378d8d8d0aab84cb39f1d3928f2696a84f191 Mon Sep 17 00:00:00 2001 From: Suraj Naik Date: Fri, 14 Jun 2024 04:00:54 +0000 Subject: [PATCH] Clean up code --- .../org/apache/gluten/backendsapi/velox/VeloxBackend.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxBackend.scala b/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxBackend.scala index a5b66e3847ae..158be10f486c 100644 --- a/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxBackend.scala +++ b/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxBackend.scala @@ -189,8 +189,9 @@ object VeloxBackendSettings extends BackendSettingsApi { val fileSinkConfField = format.getClass.getDeclaredField("fileSinkConf") fileSinkConfField.setAccessible(true) val fileSinkConf = fileSinkConfField.get(hiveFileFormat) - val getTableInfoMethod = fileSinkConf.getClass.getDeclaredMethod("getTableInfo") - val tableInfo = getTableInfoMethod.invoke(fileSinkConf) + val tableInfoField = fileSinkConf.getClass.getDeclaredField("tableInfo") + tableInfoField.setAccessible(true) + val tableInfo = tableInfoField.get(fileSinkConf) val getOutputFileFormatClassNameMethod = tableInfo.getClass .getDeclaredMethod("getOutputFileFormatClassName") val outputFileFormatClassName = getOutputFileFormatClassNameMethod.invoke(tableInfo)