File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,15 @@ case class HiveTableScan(
80
80
ColumnProjectionUtils .appendReadColumnIDs(hiveConf, neededColumnIDs)
81
81
ColumnProjectionUtils .appendReadColumnNames(hiveConf, attributes.map(_.name))
82
82
83
+ val td = relation.tableDesc
84
+ val deClass = td.getDeserializerClass;
85
+ val de = deClass.newInstance();
86
+ de.initialize(hiveConf, td.getProperties);
87
+
83
88
// Specifies types and object inspectors of columns to be scanned.
84
89
val structOI = ObjectInspectorUtils
85
90
.getStandardObjectInspector(
86
- relation.tableDesc.getDeserializer .getObjectInspector,
91
+ de .getObjectInspector,
87
92
ObjectInspectorCopyOption .JAVA )
88
93
.asInstanceOf [StructObjectInspector ]
89
94
You can’t perform that action at this time.
0 commit comments