You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++][Dataset] Make async Scanner the default #29013
The synchronous Scanner is not integrated with ExecPlans and doesn't offer better performance in any case than the asynchronous scanner, so we should start migrating away from the extraneous code path so it can be deprecated and then deleted.
Weston Pace / @westonpace:
Is your goal to make the async scanner the default with the sync as a valid fallback? Or to make the async scanner the default with sync deprecated? Also, I don't see any fix version, are you aiming for 5.0?
Joris Van den Bossche / @jorisvandenbossche:
In the python bindings we have a use_async keyword which currently defaults to False. As a first step (in 5.0.0?), we could already switch the default, while still leaving use_async=False as a manual fallback option for some time.
David Li / @lidavidm:
I would vote for #2 as well - maybe we don't need to add deprecation warnings yet (for 6.0.0 perhaps) especially if we want to leave it as a fallback for now while we iron out any potential kinks.
Weston Pace / @westonpace:
The PR needs some work (dataset writes still require sync scanner so we need to fallback to sync when constructing a scanner for a write) and I'm heads down on ARROW-13386 which I expect will take me the rest of the day. If this is the only thing preventing an RC then I would say to go ahead and cut the RC without this.
Weston Pace / @westonpace:
Given that we've already communicated removing this I think a better approach will be to simply remove the synchronous APIs (related: ARROW-13554). This would depend on ARROW-13542 which will provide an async dataset write (but break the sync dataset write).
Weston Pace / @westonpace:
Just an update that this is currently blocked. The async write is coming along fine and should be available for 6.0.0 but it is not clear to me yet that 6.0.0's async scanner will support back pressure. If the async scanner does not have that feature then I would be reluctant to make it the default. I will try and resolve this soon.
Weston Pace / @westonpace:
This is what I am currently working on. Switching over to the async scanner everywhere has revealed a (not related to scanning) issue with extension types. Once that is resolved I think this should be ready to go. It is still valid and I expect it to land this week or next.
Activity
asfimport commentedon Jul 14, 2021
Weston Pace / @westonpace:
Is your goal to make the async scanner the default with the sync as a valid fallback? Or to make the async scanner the default with sync deprecated? Also, I don't see any fix version, are you aiming for 5.0?
asfimport commentedon Jul 16, 2021
Joris Van den Bossche / @jorisvandenbossche:
In the python bindings we have a
use_asynckeyword which currently defaults to False. As a first step (in 5.0.0?), we could already switch the default, while still leavinguse_async=Falseas a manual fallback option for some time.asfimport commentedon Jul 16, 2021
Weston Pace / @westonpace:
I'd be on board with any of the following:
1. Leave it how it is for 5.0.0, async is an opt-in feature
2. Set async to default, leave sync alone, async is an opt-out feature
3. Set async to default, deprecate sync, async is an opt-out but strongly recommended feature
If I had to vote I'd go for 1 or 2 and probably 2.
asfimport commentedon Jul 16, 2021
David Li / @lidavidm:
I would vote for #2 as well - maybe we don't need to add deprecation warnings yet (for 6.0.0 perhaps) especially if we want to leave it as a fallback for now while we iron out any potential kinks.
asfimport commentedon Jul 19, 2021
Krisztian Szucs / @kszucs:
Since we have a PR now, do we want to include this in 5.0?
asfimport commentedon Jul 19, 2021
Weston Pace / @westonpace:
The PR needs some work (dataset writes still require sync scanner so we need to fallback to sync when constructing a scanner for a write) and I'm heads down on ARROW-13386 which I expect will take me the rest of the day. If this is the only thing preventing an RC then I would say to go ahead and cut the RC without this.
asfimport commentedon Aug 5, 2021
Weston Pace / @westonpace:
Given that we've already communicated removing this I think a better approach will be to simply remove the synchronous APIs (related: ARROW-13554). This would depend on ARROW-13542 which will provide an async dataset write (but break the sync dataset write).
asfimport commentedon Sep 7, 2021
Weston Pace / @westonpace:
Just an update that this is currently blocked. The async write is coming along fine and should be available for 6.0.0 but it is not clear to me yet that 6.0.0's async scanner will support back pressure. If the async scanner does not have that feature then I would be reluctant to make it the default. I will try and resolve this soon.
asfimport commentedon Jan 4, 2022
Alessandro Molina / @amol-:
@westonpace what's the state of this one? Is it something that was already addressed elsewhere or is a still valid issue?
asfimport commentedon Jan 4, 2022
Weston Pace / @westonpace:
This is what I am currently working on. Switching over to the async scanner everywhere has revealed a (not related to scanning) issue with extension types. Once that is resolved I think this should be ready to go. It is still valid and I expect it to land this week or next.
asfimport commentedon Jan 14, 2022
Krisztian Szucs / @kszucs:
Postponing to 8.0.
asfimport commentedon Jan 14, 2022
David Li / @lidavidm:
ARROW-13554 effectively resolved this, right? @westonpace
asfimport commentedon Jan 14, 2022
Weston Pace / @westonpace:
Yes. I will close this.
asfimport commentedon Jan 14, 2022
Weston Pace / @westonpace:
Fixed with ARROW-13554