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

fix(#1761): explain require next <cr> and space ending problem #1820

Merged
merged 7 commits into from
May 23, 2022

Conversation

aceforeverd
Copy link
Collaborator

@aceforeverd aceforeverd commented May 16, 2022

close #1761

two problem in cli:

  1. explain result missing a <CR>
  2. fail to precess ending space
  • What is the new behavior (if this is a feature change)?

@github-actions github-actions bot added execute-engine hybridse sql engine storage-engine openmldb storage engine. nameserver & tablet labels May 16, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2022

SDK Test Report

  74 files    74 suites   5m 42s ⏱️
175 tests 172 ✔️ 3 💤 0
216 runs  213 ✔️ 3 💤 0

Results for commit 4534d97.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2022

HybridSE Linux Test Report

       67 files       235 suites   5m 24s ⏱️
19 059 tests 19 057 ✔️ 2 💤 0

Results for commit 4534d97.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2022

HybridSE Mac Test Report

       67 files       235 suites   6m 46s ⏱️
19 059 tests 19 057 ✔️ 2 💤 0

Results for commit 4534d97.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented May 16, 2022

Linux Test Report

       57 files       187 suites   1h 7m 19s ⏱️
  8 548 tests   8 540 ✔️ 8 💤 0
12 534 runs  12 526 ✔️ 8 💤 0

Results for commit 4534d97.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented May 16, 2022

Codecov Report

Merging #1820 (4534d97) into main (b6f1227) will decrease coverage by 0.01%.
The diff coverage is 84.61%.

@@             Coverage Diff              @@
##               main    #1820      +/-   ##
============================================
- Coverage     73.75%   73.74%   -0.02%     
  Complexity      347      347              
============================================
  Files           614      614              
  Lines        120314   120324      +10     
  Branches       1015     1015              
============================================
- Hits          88732    88727       -5     
- Misses        31373    31388      +15     
  Partials        209      209              
Impacted Files Coverage Δ
src/sdk/sql_cluster_router.cc 54.84% <40.00%> (-0.30%) ⬇️
src/cmd/sql_cmd.h 27.34% <92.30%> (+8.94%) ⬆️
hybridse/src/vm/sql_compiler.cc 78.20% <100.00%> (ø)
src/cmd/sql_cmd_test.cc 99.55% <100.00%> (+<0.01%) ⬆️
...s/query_response_time/deploy_query_response_time.h 81.25% <0.00%> (-18.75%) ⬇️
...atistics/query_response_time/query_response_time.h 78.26% <0.00%> (-4.35%) ⬇️
.../query_response_time/deploy_query_response_time.cc 97.10% <0.00%> (-2.90%) ⬇️
src/sdk/db_sdk.cc 62.13% <0.00%> (-2.27%) ⬇️
src/zk/dist_lock.cc 81.81% <0.00%> (-1.52%) ⬇️
src/log/log_reader.cc 78.52% <0.00%> (-0.59%) ⬇️
... and 3 more

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 eaa843c...4534d97. Read the comment docs.

@aceforeverd aceforeverd changed the title fix(#1761): problem one, explain require next <cr> fix(#1761): explain require next <cr> and space ending problem May 16, 2022
@aceforeverd aceforeverd self-assigned this May 16, 2022
@aceforeverd aceforeverd added this to the v0.6 milestone May 16, 2022
src/cmd/sql_cmd.h Outdated Show resolved Hide resolved
@@ -1969,6 +1969,27 @@ TEST_P(DBSDKTest, DeployStatsOnlyCollectDeployProcedure) {
}
}

class StripSpaceTest : public ::testing::TestWithParam<std::pair<std::string_view, std::string_view>> {};

std::vector<std::pair<std::string_view, std::string_view>> strip_cases = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

how about "show\ncomponents\n;"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

statement str inside is handle by zetasql, should be fine.

anyway case like show components; set val = '; ' probably not work as expect

@aceforeverd
Copy link
Collaborator Author

Bugs (Normal)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
execute-engine hybridse sql engine storage-engine openmldb storage engine. nameserver & tablet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Solve problems in SQL commands
3 participants