Yicong-Huang opened a new issue, #4729:
URL: https://github.com/apache/texera/issues/4729
### What happened?
`common/workflow-core/src/main/scala/org/apache/texera/amber/util/JSONUtils.scala::JSONToMap`
docstring claims that `{"E":["X","Y"]}` with `flatten=true` produces
`{"E1":"X","E2":"Y"}`. The implementation only emits an entry when the
recursive call iterates an *object* node — recursing into a value node returns
an empty map, so primitives inside an array are silently dropped.
### How to reproduce?
```scala
val node = JSONUtils.objectMapper.readTree("""{"a":"x","arr":["X","Y"]}""")
JSONUtils.JSONToMap(node, flatten = true)
// Returns Map("a" -> "x")
// Docstring would predict Map("a" -> "x", "arr1" -> "X", "arr2" -> "Y")
```
### Version
1.1.0-incubating (Pre-release/Master)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]