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: adapt new protocol #585

Merged
merged 25 commits into from
Feb 7, 2023
Merged

Conversation

ShiKaiWi
Copy link
Member

@ShiKaiWi ShiKaiWi commented Jan 19, 2023

Which issue does this PR close?

Closes #

Rationale for this change

Adapt to the newest protocol defined by apache/incubator-horaedb-proto#44.

What changes are included in this PR?

  • Adapt to the newest sql_query;
  • Rename all metric to table;

Are there any user-facing changes?

None.

How does this change test

Add some new UT.

@codecov-commenter
Copy link

codecov-commenter commented Jan 19, 2023

Codecov Report

Merging #585 (1654bdf) into main (13c4a0b) will increase coverage by 0.05%.
The diff coverage is 42.00%.

❗ Current head 1654bdf differs from pull request most recent head b33eeb9. Consider uploading reports for the commit b33eeb9 to get more accurate results

@@            Coverage Diff             @@
##             main     #585      +/-   ##
==========================================
+ Coverage   66.01%   66.07%   +0.05%     
==========================================
  Files         285      285              
  Lines       44358    44507     +149     
==========================================
+ Hits        29285    29408     +123     
- Misses      15073    15099      +26     
Impacted Files Coverage Δ
common_types/src/record_batch.rs 91.34% <0.00%> (-0.71%) ⬇️
interpreters/src/interpreter.rs 80.00% <ø> (ø)
router/src/cluster_based.rs 0.00% <0.00%> (ø)
router/src/rule_based.rs 0.00% <0.00%> (ø)
server/src/config.rs 27.82% <0.00%> (-1.27%) ⬇️
server/src/grpc/mod.rs 0.00% <0.00%> (ø)
server/src/grpc/remote_engine_service/mod.rs 0.00% <0.00%> (ø)
server/src/grpc/storage_service/sql_query.rs 0.00% <0.00%> (ø)
server/src/handlers/prom.rs 68.11% <0.00%> (ø)
server/src/http.rs 0.00% <0.00%> (ø)
... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

server/src/grpc/storage_service/sql_query.rs Outdated Show resolved Hide resolved
server/src/grpc/storage_service/sql_query.rs Show resolved Hide resolved
server/src/config.rs Outdated Show resolved Hide resolved
components/arrow_ext/src/ipc.rs Outdated Show resolved Hide resolved
components/arrow_ext/src/ipc.rs Outdated Show resolved Hide resolved
@ShiKaiWi ShiKaiWi added the breaking-change Contains user-facing changes label Feb 7, 2023
Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit 8407006 into apache:main Feb 7, 2023
@ShiKaiWi ShiKaiWi deleted the feat-adapt-new-protocol branch February 7, 2023 11:34
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* feat: adapt to the new grpc protocol

* remove enable_tenant_as_schema and add query_resp_batch_size

* make convertion work

* rename batch_size to min_row_per_batch

* add compression threshold

* adjust the query response according to the protocol

* refactor the making of SqlQueryResponse

* refactor convert output

* add sub-section config service

* rename service config options

* adapt to lastest changes

* add unit tests for ipc encoding/decoding

* adapt to latest ceresdb-client-rs

* make integration test work

* update deps

* update ceresdbproto git addr

* fix clippy issues

* fix integration test

* adapt to latest rust client to make integation test work

* fix failure for issue59

* compress encoded record batch in bulk rather than in stream

* support compress decision in ipc.rs

* add some comments

* Rename Compression to CompressionMethod

* fix unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Contains user-facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants