Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/18875#discussion_r136996807
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JacksonGenerator.scala
---
@@ -27,21 +27,45 @@ import org.apache.spark.sql.catalyst.util.{ArrayData,
DateTimeUtils, MapData}
import org.apache.spark.sql.types._
private[sql] class JacksonGenerator(
- schema: StructType,
+ childType: DataType,
+ rowSchema: StructType,
--- End diff --
We can loose the type of `rowSchema` from `StructType` to general
`DataType`. Since only `StructType` and `MapType` are valid options, we can
check this in `JacksonGenerator`'s constructor.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]