in Sources/SparkConnect/ArrowEncoder.swift [400:408]
mutating func encode<T>(_ value: T) throws where T: Encodable {
let type = T.self
if ArrowArrayBuilders.isValidBuilderType(type) {
defer { increment() }
return try self.encoder.doEncode(value, keyIndex: self.currentIndex)
} else {
throw ArrowError.invalid("Type \(type) is currently not supported")
}
}