Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/6831#discussion_r32438164
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
@@ -1029,10 +1029,10 @@ class DataFrame private[sql](
val elementTypes = schema.toAttributes.map { attr => (attr.dataType,
attr.nullable) }
val names = schema.toAttributes.map(_.name)
+ val convert = CatalystTypeConverters.getConverterForType(schema)
--- End diff --
I think you could call `createToCatalystConverter` here, which returns an
`Any => Any` function that you can cast to the appropriate converter type.
This prevents us from having to increase the visibility of the internal
`CatalystTypeConverter` APIs.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]