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: use int to record string length instead of map #2044

Merged
merged 4 commits into from
Jul 1, 2022

Conversation

mangoGoForward
Copy link
Contributor

Signed-off-by: mango [email protected]

@github-actions github-actions bot added the sdk openmldb java/python sdk label Jun 29, 2022
@codecov
Copy link

codecov bot commented Jun 29, 2022

Codecov Report

Merging #2044 (c14164d) into main (38b1e9b) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #2044      +/-   ##
============================================
+ Coverage     75.66%   75.71%   +0.04%     
  Complexity      347      347              
============================================
  Files           615      615              
  Lines        116794   116901     +107     
  Branches       1015     1015              
============================================
+ Hits          88378    88513     +135     
+ Misses        28207    28179      -28     
  Partials        209      209              
Impacted Files Coverage Δ
...openmldb/sdk/impl/InsertPreparedStatementImpl.java 40.72% <100.00%> (-0.39%) ⬇️
src/zk/dist_lock.cc 81.81% <0.00%> (-1.52%) ⬇️
src/catalog/tablet_catalog.cc 70.77% <0.00%> (-0.81%) ⬇️
src/schema/schema_adapter.cc 40.43% <0.00%> (-0.31%) ⬇️
src/client/tablet_client.cc 55.36% <0.00%> (-0.29%) ⬇️
hybridse/src/codec/fe_row_codec.cc 78.33% <0.00%> (-0.16%) ⬇️
src/sdk/sql_cluster_router.cc 54.92% <0.00%> (-0.13%) ⬇️
src/nameserver/name_server_impl.cc 42.79% <0.00%> (-0.03%) ⬇️
src/zk/zk_client.cc 83.37% <0.00%> (ø)
src/catalog/client_manager.cc 42.49% <0.00%> (+0.28%) ⬆️
... and 6 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 38b1e9b...c14164d. Read the comment docs.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 29, 2022

SDK Test Report

  75 files    75 suites   5m 36s ⏱️
163 tests 161 ✔️ 2 💤 0
204 runs  202 ✔️ 2 💤 0

Results for commit c14164d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 29, 2022

Linux Test Report

       54 files       196 suites   51m 53s ⏱️
  9 008 tests   9 004 ✔️ 4 💤 0
13 259 runs  13 255 ✔️ 4 💤 0

Results for commit c14164d.

♻️ This comment has been updated with latest results.

@@ -367,9 +367,7 @@ public void testInsertPreparedState(SqlExecutor router) {
insert = "insert into tsql1010 values(?, ?, ?, ?, ?);";
PreparedStatement impl3 = router.getInsertPreparedStmt(dbname, insert);
impl3.setLong(1, 1003);
impl3.setString(3, "zhejiangxx");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mind that do not delete these lines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got, I think use List or Map more better instead of int, because we want to implement multiple set and save the last value. So this issue and PR may unnecessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, reverted

Copy link
Collaborator

@tobegit3hub tobegit3hub left a comment

Choose a reason for hiding this comment

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

LGTM

@dl239 dl239 merged commit d5a6a1f into 4paradigm:main Jul 1, 2022
@mangoGoForward mangoGoForward deleted the fix/type_stringLen_int branch July 1, 2022 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sdk openmldb java/python sdk
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use int value to record string length instead of Map in InsertPreparedStatementImpl
5 participants