mzabaluev commented on code in PR #10485:
URL: https://github.com/apache/arrow-rs/pull/10485#discussion_r3686211496


##########
arrow-json/src/reader/mod.rs:
##########
@@ -845,9 +845,9 @@ fn make_decoder(
         DataType::BinaryView => Ok(Box::new(BinaryViewDecoder::default())),
         DataType::Map(_, _) => Ok(Box::new(MapArrayDecoder::new(ctx, 
data_type, is_nullable)?)),
         DataType::RunEndEncoded(ref r, _) => match r.data_type() {
-            DataType::Int16 => 
Ok(Box::new(RunEndEncodedArrayDecoder::<Int16Type>::new(ctx, data_type, 
is_nullable)?)),

Review Comment:
   > so a non-nullable REE but with a values field as nullable is considered 
valid?
   
   Oh sorry, I did not consider the nullable-values case in the above. This 
should not be a valid schema; or if it is, null values should not be permitted. 
So the values' decoder should be constructed with nullability of `is_nullable 
&& values_field.is_nullable()`, not `||` like it is now.



-- 
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]

Reply via email to