kou commented on PR #41750:
URL: https://github.com/apache/arrow/pull/41750#issuecomment-2123784010

   Could you try this?
   
   ```diff
   diff --git a/c_glib/test/dataset/test-file-system-dataset.rb 
b/c_glib/test/dataset/test-file-system-dataset.rb
   index a64022b618..d4bf567397 100644
   --- a/c_glib/test/dataset/test-file-system-dataset.rb
   +++ b/c_glib/test/dataset/test-file-system-dataset.rb
   @@ -63,7 +63,11 @@ class TestDatasetFileSystemDataset < Test::Unit::TestCase
      def test_record_batch_reader
        dataset, expected_table = create_dataset
        reader = dataset.to_record_batch_reader
   -    assert_equal(expected_table, reader.read_all)
   +    begin
   +      assert_equal(expected_table, reader.read_all)
   +    ensure
   +      reader.close
   +    end
      end
    
      def create_dataset
   diff --git a/c_glib/test/dataset/test-scanner.rb 
b/c_glib/test/dataset/test-scanner.rb
   index 714760d6a3..1a50b7fe68 100644
   --- a/c_glib/test/dataset/test-scanner.rb
   +++ b/c_glib/test/dataset/test-scanner.rb
   @@ -47,6 +47,11 @@ class TestDatasetScanner < Test::Unit::TestCase
      end
    
      def test_record_batch_reader
   -    assert_equal(@table, @scanner.to_record_batch_reader.read_all)
   +    reader = @scanner.to_record_batch_reader
   +    begin
   +      assert_equal(@table, reader.read_all)
   +    ensure
   +      reader.close
   +    end
      end
    end
   ```


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