in Sources/SparkConnect/ArrowEncoder.swift [318:324]
mutating func encode<T: Encodable>(_ value: T, forKey key: Key) throws {
if ArrowArrayBuilders.isValidBuilderType(T.self) {
try encoder.doEncode(value, key: key)
} else {
throw ArrowError.invalid("Type \(T.self) is currently not supported")
}
}