alamb commented on code in PR #11181:
URL: https://github.com/apache/arrow-rs/pull/11181#discussion_r4234158470
##########
arrow-json/src/reader/mod.rs:
##########
@@ -4381,4 +4381,68 @@ mod tests {
let err = read(false);
assert!(err.contains("returned 0 values for 1 rows"), "{err}");
}
+
+ #[test]
+ fn test_scalar_promoted_to_list() {
+ let buf = r#"{"a": 1}
Review Comment:
is that really what we want here? to promote a scalar to a list? It seems
strange to me.
Can someone check how other systems handle this case?
@Rafferty97 's initial description in
https://github.com/apache/arrow-rs/issues/9484 says:
> Personally, I would prefer the former, as this "scalar-to-list promotion"
logic feels like an unconventional and unexpected feature to have for a JSON
parser.
I agree
--
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]