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

refactor: use enum instead of version for encoding format in pb #655

Merged
merged 7 commits into from
Feb 17, 2023

Conversation

ShiKaiWi
Copy link
Member

Which issue does this PR close?

Closes #

Rationale for this change

Currently, version number has been introduced to record the encoding format in the protobuf, and this is very messy compared with enum (one_of in the protobuf).

What changes are included in this PR?

Adapt to apache/incubator-horaedb-proto#51

Are there any user-facing changes?

None.

How does this change test

Existing tests.

@ShiKaiWi ShiKaiWi requested a review from Rachelint February 16, 2023 09:44
@ShiKaiWi ShiKaiWi added A-analytic-engine Area: Analytic Engine breaking-change Contains user-facing changes labels Feb 16, 2023
@ShiKaiWi ShiKaiWi force-pushed the fix-encode-default-values branch from e21f7e6 to 49eb4c5 Compare February 17, 2023 02:31
@codecov-commenter
Copy link

Codecov Report

Merging #655 (231bb53) into main (9e7733b) will increase coverage by 0.10%.
The diff coverage is 33.04%.

❗ Current head 231bb53 differs from pull request most recent head df29327. Consider uploading reports for the commit df29327 to get more accurate results

@@            Coverage Diff             @@
##             main     #655      +/-   ##
==========================================
+ Coverage   66.84%   66.94%   +0.10%     
==========================================
  Files         283      283              
  Lines       44006    43969      -37     
==========================================
+ Hits        29414    29437      +23     
+ Misses      14592    14532      -60     
Impacted Files Coverage Δ
analytic_engine/src/compaction/scheduler.rs 68.09% <ø> (ø)
analytic_engine/src/instance/flush_compaction.rs 66.41% <0.00%> (-0.22%) ⬇️
analytic_engine/src/sampler.rs 99.33% <0.00%> (ø)
analytic_engine/src/sst/file.rs 77.17% <ø> (+1.00%) ⬆️
analytic_engine/src/table_options.rs 64.12% <ø> (ø)
catalog_impls/src/table_based.rs 83.58% <0.00%> (ø)
catalog_impls/src/volatile.rs 0.00% <0.00%> (ø)
cluster/src/config.rs 77.77% <ø> (ø)
cluster/src/shard_tables_cache.rs 0.00% <0.00%> (ø)
common_types/src/datum.rs 50.69% <0.00%> (ø)
... and 114 more

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

Copy link
Contributor

@Rachelint Rachelint left a comment

Choose a reason for hiding this comment

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

LGTM

@Rachelint Rachelint added this pull request to the merge queue Feb 17, 2023
Merged via the queue into apache:main with commit 3865c1b Feb 17, 2023
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
…he#655)

* refactor: use enum instead of version for encoding format in pb

* fix ut

* update package fs_extra to resolve incompact issue reported by cargo

* remove wrong exmaple config

* fix integration test

* rename 'type' of cluster deployment to 'mode'

* rename wal_storage to wal
@ShiKaiWi ShiKaiWi deleted the fix-encode-default-values branch May 29, 2023 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-analytic-engine Area: Analytic Engine breaking-change Contains user-facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants