@@ -369,7 +369,7 @@ bool validateContents(std::shared_ptr<arrow::RecordBatch> batch)
369369
370370bool validateSchema (std::shared_ptr<arrow::Schema> schema)
371371{
372- REQUIRE (schema->num_fields () == 10 );
372+ REQUIRE (schema->num_fields () == 11 );
373373 REQUIRE (schema->field (0 )->type ()->id () == arrow::float32 ()->id ());
374374 REQUIRE (schema->field (1 )->type ()->id () == arrow::float32 ()->id ());
375375 REQUIRE (schema->field (2 )->type ()->id () == arrow::float32 ()->id ());
@@ -380,6 +380,7 @@ bool validateSchema(std::shared_ptr<arrow::Schema> schema)
380380 REQUIRE (schema->field (7 )->type ()->id () == arrow::boolean ()->id ());
381381 REQUIRE (schema->field (8 )->type ()->id () == arrow::fixed_size_list (arrow::boolean (), 2 )->id ());
382382 REQUIRE (schema->field (9 )->type ()->id () == arrow::list (arrow::int32 ())->id ());
383+ REQUIRE (schema->field (10 )->type ()->id () == arrow::int8 ()->id ());
383384 return true ;
384385}
385386
@@ -435,6 +436,7 @@ TEST_CASE("RootTree2Dataset")
435436 bool manyBool[2 ];
436437 int vla[10 ] = {0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 };
437438 int vlaSize = 0 ;
439+ char byte;
438440
439441 t->Branch (" px" , &px, " px/F" );
440442 t->Branch (" py" , &py, " py/F" );
@@ -447,6 +449,7 @@ TEST_CASE("RootTree2Dataset")
447449 t->Branch (" manyBools" , &manyBool, " manyBools[2]/O" );
448450 t->Branch (" vla_size" , &vlaSize, " vla_size/I" );
449451 t->Branch (" vla" , vla, " vla[vla_size]/I" );
452+ t->Branch (" byte" , &byte, " byte/B" );
450453 // fill the tree
451454 for (Int_t i = 0 ; i < 100 ; i++) {
452455 xyz[0 ] = 1 ;
@@ -463,6 +466,7 @@ TEST_CASE("RootTree2Dataset")
463466 manyBool[0 ] = (i % 4 == 0 );
464467 manyBool[1 ] = (i % 5 == 0 );
465468 vlaSize = i % 10 ;
469+ byte = i;
466470 t->Fill ();
467471 }
468472 }
@@ -512,7 +516,7 @@ TEST_CASE("RootTree2Dataset")
512516 auto batches = (*scanner)();
513517 auto result = batches.result ();
514518 REQUIRE (result.ok ());
515- REQUIRE ((*result)->columns ().size () == 10 );
519+ REQUIRE ((*result)->columns ().size () == 11 );
516520 REQUIRE ((*result)->num_rows () == 100 );
517521 validateContents (*result);
518522
@@ -552,7 +556,7 @@ TEST_CASE("RootTree2Dataset")
552556 auto batchesWritten = (*scanner)();
553557 auto resultWritten = batches.result ();
554558 REQUIRE (resultWritten.ok ());
555- REQUIRE ((*resultWritten)->columns ().size () == 10 );
559+ REQUIRE ((*resultWritten)->columns ().size () == 11 );
556560 REQUIRE ((*resultWritten)->num_rows () == 100 );
557561 validateContents (*resultWritten);
558562 }
@@ -586,7 +590,7 @@ TEST_CASE("RootTree2Dataset")
586590 auto rntupleBatchesWritten = (*rntupleScannerWritten)();
587591 auto rntupleResultWritten = rntupleBatchesWritten.result ();
588592 REQUIRE (rntupleResultWritten.ok ());
589- REQUIRE ((*rntupleResultWritten)->columns ().size () == 10 );
593+ REQUIRE ((*rntupleResultWritten)->columns ().size () == 11 );
590594 REQUIRE (validateSchema ((*rntupleResultWritten)->schema ()));
591595 REQUIRE ((*rntupleResultWritten)->num_rows () == 100 );
592596 REQUIRE (validateContents (*rntupleResultWritten));
0 commit comments