Skip to content

Support for CALL procedures#7287

Merged
harshit-gangal merged 31 commits intovitessio:masterfrom
planetscale:call-proc
Jan 27, 2021
Merged

Support for CALL procedures#7287
harshit-gangal merged 31 commits intovitessio:masterfrom
planetscale:call-proc

Conversation

@systay
Copy link
Collaborator

@systay systay commented Jan 12, 2021

This PR makes it possible to run CALL queries against vtgate.

For now, this is only allowed if either specifically target specific shards, or if you are running on an unsharded keyspace.

  • Parsing CALL
  • vtgate/vttablet planning of CALL
  • Table should read multi results from MySQL server
    - [x] Send multi results from tablet over grpc
    - [ ] Send multi results from vtgate to client over mysql protocol
  • Write docs CALL proc is now supported website#672
  • Check the state of the connection to MySQL from the tablet after running a sproc, so no transactions are left open
    - [ ] Make sure CALL works in both streaming and non-streaming modes It will be handled in separate PR

@systay systay marked this pull request as ready for review January 15, 2021 07:32
systay and others added 14 commits January 20, 2021 14:35
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
… transaction

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
… open

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…ing stored procedure

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
* make sure to rewrite queries when vtgate plans
* make sure to use the generated query on the tablet
* check for INOUT/OUT params errors and rewrite the error message

Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
@harshit-gangal harshit-gangal mentioned this pull request Jan 27, 2021
9 tasks
@harshit-gangal harshit-gangal merged commit 68286d9 into vitessio:master Jan 27, 2021
@harshit-gangal harshit-gangal deleted the call-proc branch January 27, 2021 12:30
@askdba askdba added this to the v10.0 milestone Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants