Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Query timeout #165

Merged

Conversation

Sciator
Copy link
Contributor

@Sciator Sciator commented Nov 10, 2023

Closes #164

Proposed Changes

stream timeout for query (grpc timeout)

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • Tests pass
  • Commit messages are conventional
  • Sign CLA (if not already signed)

@Sciator Sciator linked an issue Nov 10, 2023 that may be closed by this pull request
@Sciator Sciator force-pushed the 164-query-execution-stops-and-code-exits-without-throwing-any-error branch from 1ae4c26 to 41f1b8e Compare November 10, 2023 14:57
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1711672) 95.99% compared to head (2bf9dd8) 95.99%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #165   +/-   ##
=======================================
  Coverage   95.99%   95.99%           
=======================================
  Files          22       22           
  Lines         848      848           
  Branches      198      198           
=======================================
  Hits          814      814           
  Misses          9        9           
  Partials       25       25           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Sciator Sciator requested a review from bednar November 14, 2023 08:44
bednar
bednar previously requested changes Nov 14, 2023
Copy link
Member

@bednar bednar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The client currently encounters issues with data retrieval and error propagation. Please prioritize testing and implementation in these specific scenarios:

  1. Execute scripts multiple times. The results should display immediately without the need for setting a timeout.
  2. Introduce invalid SQL in scripts. Then, run these scripts multiple times to ensure that the error is consistently and correctly propagated.
  3. Execute scripts in parallel and verify that both results and errors are accurately displayed.

@bednar bednar added this to the 0.5.0 milestone Nov 14, 2023
@Sciator Sciator force-pushed the 164-query-execution-stops-and-code-exits-without-throwing-any-error branch from 639c506 to 6717e1e Compare November 15, 2023 13:18
packages/client/src/options.ts Outdated Show resolved Hide resolved
@bednar bednar merged commit 3060411 into main Nov 16, 2023
7 checks passed
@bednar bednar deleted the 164-query-execution-stops-and-code-exits-without-throwing-any-error branch November 16, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Query execution stops and code exits without throwing any error
2 participants