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

Support new query-stream API with HTTP/2 #79

Merged
merged 20 commits into from
Aug 28, 2020
Merged

Support new query-stream API with HTTP/2 #79

merged 20 commits into from
Aug 28, 2020

Conversation

harlev
Copy link
Contributor

@harlev harlev commented Aug 22, 2020

Added optional support for the new HTTP/2 endpoint for queries, requested in #77

This is a non breaking change. The new endpoint will only be used when use_http2=True is passed into Query in the client.

Since it looks like Python's requests does not support HTTP/2, added the Hyper package.

The test for Query was enhanced to test both HTTP/1.1 and HTTP/2 with the /query and /query-stream endpoints receptively

@harlev
Copy link
Contributor Author

harlev commented Aug 23, 2020

In a later PR there should be support for the other new endpoints

  • /close-query
  • /inserts-stream

@bryanyang0528
Copy link
Owner

@harlev that's great. Let met know if you complete this cool feature.

@bryanyang0528 bryanyang0528 added this to the 0.10.2 milestone Aug 25, 2020
@harlev
Copy link
Contributor Author

harlev commented Aug 26, 2020

@bryanyang0528 last two APIs are implemented

@bryanyang0528
Copy link
Owner

@harlev I merged #78 but some conflict happened. Would you mind helping resolve the conflict and push again?

@codecov
Copy link

codecov bot commented Aug 27, 2020

Codecov Report

Merging #79 into master will decrease coverage by 10.00%.
The diff coverage is 11.84%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #79       +/-   ##
===========================================
- Coverage   75.25%   65.24%   -10.01%     
===========================================
  Files           7        7               
  Lines         396      469       +73     
  Branches       54       66       +12     
===========================================
+ Hits          298      306        +8     
- Misses         80      145       +65     
  Partials       18       18               
Impacted Files Coverage Δ
ksql/api.py 49.48% <8.95%> (-21.06%) ⬇️
ksql/client.py 73.17% <33.33%> (-6.83%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e74b650...b0d6828. Read the comment docs.

@bryanyang0528
Copy link
Owner

@harlev Thanks for your contribution. Nice implementation.

@bryanyang0528 bryanyang0528 merged commit a4a4fcf into bryanyang0528:master Aug 28, 2020
@harlev harlev deleted the query-stream branch August 28, 2020 18:04
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.

2 participants