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 add sharding #304

Merged
merged 20 commits into from
Sep 19, 2022
Merged

Conversation

xuanyuan300
Copy link
Contributor

@xuanyuan300 xuanyuan300 commented Sep 19, 2022

What is changed and how it works?

What's Changed:

  1. Add sharding feature.

ref: #257

@xuanyuan300 xuanyuan300 added the app:pisa-proxy Pisa-Proxy related changes label Sep 19, 2022
@xuanyuan300 xuanyuan300 added this to the v0.3.0 milestone Sep 19, 2022
@codecov
Copy link

codecov bot commented Sep 19, 2022

Codecov Report

❗ No coverage uploaded for pull request base (sharding-dev@dcc1fcb). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             sharding-dev     #304   +/-   ##
===============================================
  Coverage                ?   70.30%           
===============================================
  Files                   ?        6           
  Lines                   ?      495           
  Branches                ?        0           
===============================================
  Hits                    ?      348           
  Misses                  ?      137           
  Partials                ?       10           
Flag Coverage Δ
unittests 70.30% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@xuanyuan300 xuanyuan300 self-assigned this Sep 19, 2022
@mlycore mlycore merged commit bc9c113 into database-mesh:sharding-dev Sep 19, 2022
@xuanyuan300 xuanyuan300 added the in:sharding Sharding related changes label Sep 19, 2022
@xuanyuan300 xuanyuan300 changed the title Reat rewrite9 Feat add sharding Sep 19, 2022
xuanyuan300 added a commit that referenced this pull request Sep 26, 2022
* Reat rewrite9 (#304)

* feat(pisa-proxy, rewrite): WIP

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, rewrite): WIP add rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, rewrite): WIP: add rewrtite

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, rewrite): WIP: add rewrite, complete database sharding
stratey

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, strategy): fix unit test failed for rewritesplitting
Signed-off-by: xuanyuan300 <[email protected]>

* chore(pisa-proxy, rewrite): WIP: remove comments
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, rewrite): WIP: fix unit test failed
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: update config, strategy

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: update strategy, update RouteInput

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): rewriter integrated to reqContext

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add route_sharding, update server

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add executor

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add stmt_cache, prepare_sharding_inner,
executor

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add shard_execute_executor, update
stmt_cache

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add shard_query_inner

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: update get_conn for fsm, update
sharding routestrategy

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix get_conn in fsma, add check shading
config whether is valid

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP:  add shard_conn_cache in fsm

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: update stmt_cache
Signed-off-by: xuanyuan300 <[email protected]>

* chore(pisa-proxy, sharding): WIP: remove unused imports
Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* feat(sharding): add table strategy (#305)

Signed-off-by: wangbo <[email protected]>

Signed-off-by: wangbo <[email protected]>
Co-authored-by: wangbo <[email protected]>

* chore(sharding): update sharding return value (#306)

* chore(sharding): update test case

Signed-off-by: wangbo <[email protected]>

* delete: delete unuse code

Signed-off-by: wangbo <[email protected]>

Signed-off-by: wangbo <[email protected]>
Co-authored-by: wangbo <[email protected]>

* Feat(pisa-proxy, sharding): add insert statement rewrite (#308)

* fix(pisa-proxy, sharding): fix unit test failed, add insert rewrite
Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix unit test failed
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy): add sharding-column to `RewriteOutput` (#309)

* fix(pisa-proxy, sharding): fix unit test failed, add insert rewrite
Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix unit test failed
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add sharding_column to `RewriteOutput`
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add sharding_column to `RewriteOutput`
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): Add merge sort by sharding column (#310)

* feat(pisa-proxy, sharding): WIP: fix merge sort

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix table_iproduct sharding_column
Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* Optimize(pisa-proxy, sharding): optimize sharding_rewrite (#311)

1. Add `ShardingMeta` trait.
Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): add generic_meta.rs (#312)

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix rewrite is null when table_name contains backquote

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, parser): fix parse like `db.`table`` sql failed

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, shardind): fix run delete and update statement faild in sharding mode (#314)

* fix(pisa-proxy): fix run delete and update statement faild in sharding
mode

Signed-off-by: xuanyuan300 <[email protected]>

* chore(pisa-proxy, sharding):  uncomments for meta
Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix change database contains backquote

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* feat(sharding): add avg sql rewrite (#313)

* chore(sharding): delete unuse code

Signed-off-by: wangbo <[email protected]>

* feat(sharding): add avg sql rewrite

Signed-off-by: wangbo <[email protected]>

* feat(sharding): add avg sharding rewrite

Signed-off-by: wangbo <[email protected]>

* chore(sharding): update test case

Signed-off-by: wangbo <[email protected]>

* chore(sharding): delete unuse code

Signed-off-by: wangbo <[email protected]>

* chore(sharding): delete unuse code

Signed-off-by: wangbo <[email protected]>

* feat(sharding): update rewriteoutput

Signed-off-by: wangbo <[email protected]>

* feat(sharding): add comment

Signed-off-by: wangbo <[email protected]>

* feat(sharding): add comment

Signed-off-by: wangbo <[email protected]>

Signed-off-by: wangbo <[email protected]>
Co-authored-by: wangbo <[email protected]>

* feat(pisa-proxy, sharding): support  use db, optimize MergeStream (#315)

* feat(pisa-proxy, sharding): Add use db support

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add limit buf to mergestream

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add set_state for merge_stream

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* feat(sharding): add order by & group by sql rewrite (#316)

* feat(sharding): add order by & group by sql rewrite

Signed-off-by: wangbo <[email protected]>

* feat(sharding): optimize sql rewrite

Signed-off-by: wbtlb <[email protected]>

* feat(sharding): optimize sql rewrite

Signed-off-by: wbtlb <[email protected]>

* feat(sharding): optimize sql rewrite

Signed-off-by: wbtlb <[email protected]>

* feat(sharding): optimize sql rewrite

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wangbo <[email protected]>
Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wangbo <[email protected]>

* chore(sharding): optimize sharding sort (#321)

* chore(sharding): optimize sharding sort

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): optimize sharding sort

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): remove clone

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* Fix(pisa-proxy, sharding): fix prepare execute failed in the sharding mode (#322)

* feat(pisa-proxy, sharding): Add use db support

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add limit buf to mergestream

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add set_state for merge_stream

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add limit buf to mergestream

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add set_state for merge_stream

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix prepare execute failed in sharding mode

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* chore(sharding): optimize order group by sql rewrite (#323)

* chore(sharding): optimize order group by sql rewrite

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): optimize order group by sql rewrite

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* feat(sharding): add sharding order group change meta (#324)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* feat(sharding): add sharding order group change meta

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* chore(sharding): add rewrite_outputs into ReqContext (#325)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): add rewrite_outputs into ReqContext

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): add rewrite_outputs into ReqContext

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* feat(docs): add sharding docs (#328)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* feat(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

* feat(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

* feat(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

* feat(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* chore(sharding): rename nodegroup (#330)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): rename nodegroup

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* chore(docs): add sharding docs (#334)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* chore(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

* chore(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* fix(pisa-proxy, sharding): fix sql execute failed when in sharding and rw mode (#335)

* feat(pisa-proxy, sharding): add use has_rw to generate data_soruce for
rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add use has_rw to generate data_soruce for
rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix sql execute failed for sharding and readwritesplitting.

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* chore(docs): update docs (#336)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* chore(docs): update docs

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* chore(pisa-proxy, sharding): remove unsed println! (#337)

* feat(pisa-proxy, sharding): add use has_rw to generate data_soruce for
rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add use has_rw to generate data_soruce for
rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix sql execute failed for sharding and readwritesplitting.

Signed-off-by: xuanyuan300 <[email protected]>

* chore(pisa-proxy, sharding): remove unused println

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>
Signed-off-by: wangbo <[email protected]>
Signed-off-by: wbtlb <[email protected]>
Co-authored-by: Jack <[email protected]>
Co-authored-by: wangbo <[email protected]>
xuanyuan300 added a commit to xuanyuan300/pisanix that referenced this pull request Oct 10, 2022
…sh#338)

* Reat rewrite9 (database-mesh#304)

* feat(pisa-proxy, rewrite): WIP

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, rewrite): WIP add rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, rewrite): WIP: add rewrtite

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, rewrite): WIP: add rewrite, complete database sharding
stratey

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, strategy): fix unit test failed for rewritesplitting
Signed-off-by: xuanyuan300 <[email protected]>

* chore(pisa-proxy, rewrite): WIP: remove comments
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, rewrite): WIP: fix unit test failed
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: update config, strategy

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: update strategy, update RouteInput

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): rewriter integrated to reqContext

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add route_sharding, update server

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add executor

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add stmt_cache, prepare_sharding_inner,
executor

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add shard_execute_executor, update
stmt_cache

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add shard_query_inner

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: update get_conn for fsm, update
sharding routestrategy

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix get_conn in fsma, add check shading
config whether is valid

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP:  add shard_conn_cache in fsm

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: update stmt_cache
Signed-off-by: xuanyuan300 <[email protected]>

* chore(pisa-proxy, sharding): WIP: remove unused imports
Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* feat(sharding): add table strategy (database-mesh#305)

Signed-off-by: wangbo <[email protected]>

Signed-off-by: wangbo <[email protected]>
Co-authored-by: wangbo <[email protected]>

* chore(sharding): update sharding return value (database-mesh#306)

* chore(sharding): update test case

Signed-off-by: wangbo <[email protected]>

* delete: delete unuse code

Signed-off-by: wangbo <[email protected]>

Signed-off-by: wangbo <[email protected]>
Co-authored-by: wangbo <[email protected]>

* Feat(pisa-proxy, sharding): add insert statement rewrite (database-mesh#308)

* fix(pisa-proxy, sharding): fix unit test failed, add insert rewrite
Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix unit test failed
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy): add sharding-column to `RewriteOutput` (database-mesh#309)

* fix(pisa-proxy, sharding): fix unit test failed, add insert rewrite
Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix unit test failed
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add sharding_column to `RewriteOutput`
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): WIP: add sharding_column to `RewriteOutput`
Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): Add merge sort by sharding column (database-mesh#310)

* feat(pisa-proxy, sharding): WIP: fix merge sort

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix table_iproduct sharding_column
Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* Optimize(pisa-proxy, sharding): optimize sharding_rewrite (database-mesh#311)

1. Add `ShardingMeta` trait.
Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): add generic_meta.rs (database-mesh#312)

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix rewrite is null when table_name contains backquote

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, parser): fix parse like `db.`table`` sql failed

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, shardind): fix run delete and update statement faild in sharding mode (database-mesh#314)

* fix(pisa-proxy): fix run delete and update statement faild in sharding
mode

Signed-off-by: xuanyuan300 <[email protected]>

* chore(pisa-proxy, sharding):  uncomments for meta
Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix change database contains backquote

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* feat(sharding): add avg sql rewrite (database-mesh#313)

* chore(sharding): delete unuse code

Signed-off-by: wangbo <[email protected]>

* feat(sharding): add avg sql rewrite

Signed-off-by: wangbo <[email protected]>

* feat(sharding): add avg sharding rewrite

Signed-off-by: wangbo <[email protected]>

* chore(sharding): update test case

Signed-off-by: wangbo <[email protected]>

* chore(sharding): delete unuse code

Signed-off-by: wangbo <[email protected]>

* chore(sharding): delete unuse code

Signed-off-by: wangbo <[email protected]>

* feat(sharding): update rewriteoutput

Signed-off-by: wangbo <[email protected]>

* feat(sharding): add comment

Signed-off-by: wangbo <[email protected]>

* feat(sharding): add comment

Signed-off-by: wangbo <[email protected]>

Signed-off-by: wangbo <[email protected]>
Co-authored-by: wangbo <[email protected]>

* feat(pisa-proxy, sharding): support  use db, optimize MergeStream (database-mesh#315)

* feat(pisa-proxy, sharding): Add use db support

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add limit buf to mergestream

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add set_state for merge_stream

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* feat(sharding): add order by & group by sql rewrite (database-mesh#316)

* feat(sharding): add order by & group by sql rewrite

Signed-off-by: wangbo <[email protected]>

* feat(sharding): optimize sql rewrite

Signed-off-by: wbtlb <[email protected]>

* feat(sharding): optimize sql rewrite

Signed-off-by: wbtlb <[email protected]>

* feat(sharding): optimize sql rewrite

Signed-off-by: wbtlb <[email protected]>

* feat(sharding): optimize sql rewrite

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wangbo <[email protected]>
Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wangbo <[email protected]>

* chore(sharding): optimize sharding sort (database-mesh#321)

* chore(sharding): optimize sharding sort

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): optimize sharding sort

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): remove clone

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* Fix(pisa-proxy, sharding): fix prepare execute failed in the sharding mode (database-mesh#322)

* feat(pisa-proxy, sharding): Add use db support

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add limit buf to mergestream

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add set_state for merge_stream

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add limit buf to mergestream

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add set_state for merge_stream

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix prepare execute failed in sharding mode

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* chore(sharding): optimize order group by sql rewrite (database-mesh#323)

* chore(sharding): optimize order group by sql rewrite

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): optimize order group by sql rewrite

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* feat(sharding): add sharding order group change meta (database-mesh#324)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* feat(sharding): add sharding order group change meta

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* chore(sharding): add rewrite_outputs into ReqContext (database-mesh#325)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): add rewrite_outputs into ReqContext

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): add rewrite_outputs into ReqContext

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* feat(docs): add sharding docs (database-mesh#328)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* feat(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

* feat(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

* feat(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

* feat(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* chore(sharding): rename nodegroup (database-mesh#330)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* chore(sharding): rename nodegroup

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* chore(docs): add sharding docs (database-mesh#334)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* chore(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

* chore(docs): add sharding docs

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* fix(pisa-proxy, sharding): fix sql execute failed when in sharding and rw mode (database-mesh#335)

* feat(pisa-proxy, sharding): add use has_rw to generate data_soruce for
rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add use has_rw to generate data_soruce for
rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix sql execute failed for sharding and readwritesplitting.

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

* chore(docs): update docs (database-mesh#336)

* chore(sharding): add avg meta data

Signed-off-by: wbtlb <[email protected]>

* chore(docs): update docs

Signed-off-by: wbtlb <[email protected]>

Signed-off-by: wbtlb <[email protected]>
Co-authored-by: wbtlb <[email protected]>

* chore(pisa-proxy, sharding): remove unsed println! (database-mesh#337)

* feat(pisa-proxy, sharding): add use has_rw to generate data_soruce for
rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* feat(pisa-proxy, sharding): add use has_rw to generate data_soruce for
rewrite

Signed-off-by: xuanyuan300 <[email protected]>

* fix(pisa-proxy, sharding): fix sql execute failed for sharding and readwritesplitting.

Signed-off-by: xuanyuan300 <[email protected]>

* chore(pisa-proxy, sharding): remove unused println

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>

Signed-off-by: xuanyuan300 <[email protected]>
Signed-off-by: wangbo <[email protected]>
Signed-off-by: wbtlb <[email protected]>
Co-authored-by: Jack <[email protected]>
Co-authored-by: wangbo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:pisa-proxy Pisa-Proxy related changes in:sharding Sharding related changes size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants