File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -201,12 +201,15 @@ public class ArrowReader { // swiftlint:disable:this type_body_length
201
201
)
202
202
-> Result < ArrowArrayHolder , ArrowError >
203
203
{
204
- if isNestedType ( field. typeType) {
204
+ switch field. typeType {
205
+ case . struct_:
205
206
return loadStructData ( loadInfo, field: field)
206
- } else if isFixedPrimitive ( field. typeType) {
207
- return loadPrimitiveData ( loadInfo, field: field)
208
- } else {
209
- return loadVariableData ( loadInfo, field: field)
207
+ default :
208
+ if isFixedPrimitive ( field. typeType) {
209
+ return loadPrimitiveData ( loadInfo, field: field)
210
+ } else {
211
+ return loadVariableData ( loadInfo, field: field)
212
+ }
210
213
}
211
214
}
212
215
Original file line number Diff line number Diff line change @@ -262,15 +262,6 @@ func isFixedPrimitive(_ type: org_apache_arrow_flatbuf_Type_) -> Bool {
262
262
}
263
263
}
264
264
265
- func isNestedType( _ type: org_apache_arrow_flatbuf_Type_ ) -> Bool {
266
- switch type {
267
- case . struct_:
268
- return true
269
- default :
270
- return false
271
- }
272
- }
273
-
274
265
func findArrowType( // swiftlint:disable:this cyclomatic_complexity function_body_length
275
266
_ field: org_apache_arrow_flatbuf_Field
276
267
) -> ArrowType {
You can’t perform that action at this time.
0 commit comments