Skip to content

[C++][Dataset] Use an ExecPlan for synchronous scans or drop synchronous scans #29004

Closed

Description

@asfimport

ARROW-13238 ensured that asynchronous dataset scans are internally backed by ExecPlans, allowing easier integration with new ExecNode sinks.

However synchronous scans are still backed by FilterAndProjectScanTask and are not consumable using ExecNodes. Ideally, we should route synchronous scans through an ExecPlan as well.

Reporter: Ben Kietzman / @bkietz

Related issues:

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

Activity

  1. asfimport commented on Jul 13, 2021

    @asfimport
    Author
  2. asfimport commented on Jul 13, 2021

    @asfimport
    Author

    David Li / @lidavidm:
    Is this worth doing over just dropping synchronous scans?

  3. asfimport commented on Jul 13, 2021

    @asfimport
    Author

    Eduardo Ponce / @edponce:
    What are the benefits/differences between using synchronous vs asynchronous scans (besides the obvious synchronization behavior)? For example, in the context of reproducibility, testing, and benchmarking.

  4. asfimport commented on Jul 13, 2021

    @asfimport
    Author

    Weston Pace / @westonpace:
    The asynchronous scanner can (and does) read synchronously when it is warranted (e.g. IPC).  So at the moment the asynchronous scanner is as fast or faster in (I think) all cases but only noticeably faster when you're actually reading from I/O.  If the data is all in memory there isn't much difference.

    The synchronous scanner is less complex and was kept around in case there was a bug detected in the asynchronous scanner it would allow a fallback to the synchronous scanner to avoid regressions.

    I agree with David though that we can, at some point, just get rid of the synchronous scanner.  I think Ben encountered several bugs (which were addressed) in his use of the async scanner for ARROW-13238 so it's probably not bug free.  On the other hand, we've been using it for a while now and I wouldn't say we've run into anything major.

  5. asfimport commented on Jul 14, 2021

    @asfimport
    Author

    David Li / @lidavidm:
    Maybe we should start thinking of a deprecation timeline for the sync scanner, then, and whether we want the async scanner to be default in 5.0.

  6. asfimport commented on Jul 14, 2021

    @asfimport
    Author

    Ben Kietzman / @bkietz:
    Deprecating the synchronous Scanner is definitely preferable and if we're going to do this sooner than later then we can leave FilterAndProjectScanTask be for a while longer.

  7. asfimport commented on Jul 16, 2021

    @asfimport
    Author

    Joris Van den Bossche / @jorisvandenbossche:

    On the other hand, we've been using it for a while now and I wouldn't say we've run into anything major.

    I think in the bindings (at least Python, where there is a use_async=False), we are still using the sync scanner by default, though. So while we are running our tests with both the async / sync scanner, I suppose the async one hasn't seen much "real world" usage by users?

  8. asfimport commented on Jul 16, 2021

    @asfimport
    Author

    Joris Van den Bossche / @jorisvandenbossche:
    Which raises the question of course: should we maybe switch the default for pyarrow 5.0.0? (EDIT, ah I see that's ARROW-13338 linked by Ben above)

  9. asfimport commented on Jan 14, 2022

    @asfimport
    Author

    Weston Pace / @westonpace:
    ARROW-13554 removed synchronous scans.

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