We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1b464f commit 2c76a91Copy full SHA for 2c76a91
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/OptimizeJsonExprs.scala
@@ -55,7 +55,7 @@ object OptimizeJsonExprs extends Rule[LogicalPlan] {
55
val duplicateFields = c.names.map(_.toString).distinct.length != c.names.length
56
57
// If we create struct from various fields of the same `JsonToStructs` and we don't
58
- // alias field names and there is not duplicated field in the struct.
+ // alias field names and there is no duplicated field in the struct.
59
if (sameFieldName && !duplicateFields) {
60
val fromJson = jsonToStructs.head.asInstanceOf[JsonToStructs].copy(schema = c.dataType)
61
val nullFields = c.children.grouped(2).flatMap {
0 commit comments