Skip to content

[C++][Dataset] Make async Scanner the default #29013

Closed

Description

@asfimport

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.

Reporter: Ben Kietzman / @bkietz

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-13338. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Jul 14, 2021

    @asfimport
    Author

    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?

  2. asfimport commented on Jul 16, 2021

    @asfimport
    Author

    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.

  3. asfimport commented on Jul 16, 2021

    @asfimport
    Author

    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.

  4. asfimport commented on Jul 16, 2021

    @asfimport
    Author

    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.

  5. asfimport commented on Jul 19, 2021

    @asfimport
    Author

    Krisztian Szucs / @kszucs:
    Since we have a PR now, do we want to include this in 5.0?

  6. asfimport commented on Jul 19, 2021

    @asfimport
    Author

    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.

  7. asfimport commented on Aug 5, 2021

    @asfimport
    Author

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

  8. asfimport commented on Sep 7, 2021

    @asfimport
    Author

    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.

  9. asfimport commented on Jan 4, 2022

    @asfimport
    Author

    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?

  10. asfimport commented on Jan 4, 2022

    @asfimport
    Author

    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.

  11. asfimport commented on Jan 14, 2022

    @asfimport
    Author

    Krisztian Szucs / @kszucs:
    Postponing to 8.0.

  12. asfimport commented on Jan 14, 2022

    @asfimport
    Author

    David Li / @lidavidm:
    ARROW-13554 effectively resolved this, right? @westonpace  

  13. asfimport commented on Jan 14, 2022

    @asfimport
    Author

    Weston Pace / @westonpace:
    Yes. I will close this.

  14. asfimport commented on Jan 14, 2022

    @asfimport
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions