comphead commented on issue #2450:
URL: 
https://github.com/apache/arrow-datafusion/issues/2450#issuecomment-1163751034

   @tustvold for the test, which was before. This represents roundtrip for the 
list
   ```
               ScalarValue::List(
                   Some(vec![
                       ScalarValue::Float32(Some(-213.1)),
                       ScalarValue::Float32(None),
                       ScalarValue::Float32(Some(5.5)),
                       ScalarValue::Float32(Some(2.0)),
                       ScalarValue::Float32(Some(1.0)),
                   ]),
                   Box::new(DataType::List(new_box_field(
                       "level1",
                       DataType::Float32,
                       true,
                   ))),
   ```
   
   Do you expect after change it has to be  
   ```
              ScalarValue::List(
                   Some(vec![
                       ScalarValue::Float32(Some(-213.1)),
                       ScalarValue::Float32(None),
                       ScalarValue::Float32(Some(5.5)),
                       ScalarValue::Float32(Some(2.0)),
                       ScalarValue::Float32(Some(1.0)),
                   ]),
                   new_box_field("level1", DataType::Float32, true),
               ),
   ```
   or 
   ```
              ScalarValue::List(
                   Some(vec![
                       ScalarValue::Float32(Some(-213.1)),
                       ScalarValue::Float32(None),
                       ScalarValue::Float32(Some(5.5)),
                       ScalarValue::Float32(Some(2.0)),
                       ScalarValue::Float32(Some(1.0)),
                   ]),
                   new_box_field("item", DataType::List(new_box_field("level1", 
DataType::Float32, true)), true),
               ),
   ```
   


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to