[ 
https://issues.apache.org/jira/browse/ARROW-13264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17376396#comment-17376396
 ] 

Joris Van den Bossche commented on ARROW-13264:
-----------------------------------------------

In https://github.com/apache/arrow/pull/10070, the case of a Scanner from 
RecordBatchReader was isolated by creating a scanner with OneShotFragments / 
OneShotScanTasks. Are there other scanners that cannot be consumed more than 
once?

> [C++][Dataset] Enforce single use of Scanner
> --------------------------------------------
>
>                 Key: ARROW-13264
>                 URL: https://issues.apache.org/jira/browse/ARROW-13264
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Ben Kietzman
>            Priority: Major
>
> Scanner is not guaranteed to be scannable more than once (for example, a 
> Scanner which wraps a RecordBatchReader cannot be rewound). However many c++ 
> unit tests reuse scanners and there aren't clear comments explaining that 
> scanners shouldn't be assumed reusable. The simplest solution is to 
> explicitly require that all Scanners be single-use



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to