Skip to content

Return query ID before query completesΒ #28

@johallar

Description

@johallar

Feature proposal

The query method of the API currently returns a Promise of a PrestoQuery object, but in certain cases (longer running queries particularly) a user may want to have the query ID returned first so they can look up query info as it's running.

I propose adding an additional query method (could be implemented as an async generator), first returning the query ID, and then returning the PrestoQuery response before completing. Would love to hear thoughts, and I would be happy to help implement that solution as well!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions