Граф коммитов

32086 Коммитов

Автор SHA1 Сообщение Дата
Arthur Schreiber 6b8851d007
Merge pull request #66 from github/patrickcarnahan/mysql8-lock-syntax
Add support for new lock syntax in MySQL8
2023-08-11 13:17:00 +02:00
Patrick Carnahan bc0647767a add new lock syntax for mysql8
Signed-off-by: Patrick Carnahan <patrickcarnahan@github.com>
2023-08-07 20:34:55 +00:00
Arthur Schreiber 9f9b77f5f2
Merge pull request #61 from github/merge-upstream-v15.0.3
Merge upstream v15.0.3
2023-06-20 12:18:09 +02:00
Arthur Schreiber 8ff3a8860f Merge branch 'master' of https://github.com/github/vitess-gh into merge-upstream-v15.0.3 2023-06-20 09:07:48 +00:00
Eric Yan a5fb1dc1e2
Merge pull request #63 from github/arthur/backport-vindex-lock-options
Backport `read_lock` and `no_verify` VIndex options
2023-05-16 15:51:36 +02:00
Max Englander 51f102532f add option to disable lookup read lock (#11538)
DML to lookup VIndexes unconditionally takes a row lock on rows in the
lookup VIndex backing table. Add an option to optionally elide this lock
for cases where we know via business logic that the row will not be
deleted, nor the lookup column changed.

Signed-off-by: Max Englander <max@planetscale.com>

Signed-off-by: Max Englander <max@planetscale.com>
2023-05-16 08:24:29 +00:00
Max Englander f20628fee1 optionally disable verify-after-insert behavior of lookup vindexes (#11313)
Add a VIndex option to skip verify-after-insert behavior when using INSERT...IGNORE or INSERT...ON DUPLICATE KEY UPDATE.

Co-authored-by: Harshit Gangal <harshit@planetscale.com>
Co-authored-by: Jacques Grove <aquarapid@gmail.com>

Signed-off-by: Max Englander <max@planetscale.com>

Signed-off-by: Max Englander <max@planetscale.com>
2023-05-16 08:24:25 +00:00
Brannon Jones 5c37b15e24 Merge tag 'upstream-v15.0.3' into merge-upstream-v15.0.3 2023-05-09 09:42:58 -06:00
Rashiq 1953490aae
Merge pull request #57 from github/rashiq-vitess-v1502 2023-04-26 15:01:39 +02:00
Matt Lord 652b0da1b8
Release of v15.0.3 (#12767)
* Release notes for 15.0.3

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Release commit for 15.0.3

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Rename directory

Signed-off-by: Matt Lord <mattalord@gmail.com>

* Update changelog/15.0/15.0.3/release_notes.md

Signed-off-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>

---------

Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
Co-authored-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
2023-03-30 17:37:29 +02:00
Matt Lord 54908d993a
Code freeze of release-15.0 (#12764)
Signed-off-by: Matt Lord <mattalord@gmail.com>
2023-03-29 11:49:28 -04:00
Florent Poinsard 295e22a331
vschema ddl: add grammar to accept qualified tables (#12577) (#12747)
Signed-off-by: Hormoz Kheradmand <hormoz.kheradmand@shopify.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Co-authored-by: Hormoz Kheradmand <hkdsun@users.noreply.github.com>
2023-03-29 08:51:50 +02:00
Florent Poinsard 7455d4e0e0
Reset the current lag when closing the replication lag reader. (#12683) (#12744)
* Reset the current lag when closing the replication lag reader.



* Fix tests.



---------

Signed-off-by: Johan Stenberg <johanstenberg92@github.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Co-authored-by: Johan Stenberg <johanstenberg92@github.com>
2023-03-29 08:46:26 +02:00
vitess-bot[bot] 99b88e8ff4
[release-15.0] Use a left join to make sure that tables with tablespace=innodb_system are included in the schema (#12672) (#12734)
* Use a left join to make sure that tables with tablespace=innodb_system are not skipped when loading the schema (fixes #12669)

Signed-off-by: Oleksiy Kovyrin <oleksiy.kovyrin@shopify.com>

* Set tablespace on a test table to see if it breaks vstreamer

Signed-off-by: Oleksiy Kovyrin <oleksiy.kovyrin@shopify.com>

---------

Signed-off-by: Oleksiy Kovyrin <oleksiy.kovyrin@shopify.com>
Co-authored-by: Oleksiy Kovyrin <oleksiy.kovyrin@shopify.com>
2023-03-28 09:55:33 +02:00
Andres Taylor ddeabc7598
[planner fix] make unknown column an error only for sharded queries (#12704) (#12726)
Signed-off-by: Andres Taylor <andres@planetscale.com>
2023-03-27 13:50:51 +02:00
Shlomi Noach ca73cabc44
Online DDL: ensure requested_timestamp isn't zero, before initializing table schema (#12263)
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2023-03-27 13:50:06 +02:00
vitess-bot[bot] cf41ae7edf
properly escape sequence table names (#12598)
Signed-off-by: Hormoz Kheradmand <hormoz.kheradmand@shopify.com>
Co-authored-by: Hormoz Kheradmand <hormoz.kheradmand@shopify.com>
2023-03-27 13:49:35 +02:00
vitess-bot[bot] 6998097494
[release-15.0] VReplication Last Error: retry error if it happens after timeout (#12114) (#12302)
* Retry error if it happens after timeout

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Address review comments

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Address review comments

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

* Improve unit tests

Signed-off-by: Rohit Nayak <rohit@planetscale.com>

---------

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Co-authored-by: Rohit Nayak <rohit@planetscale.com>
2023-03-27 11:25:23 +02:00
Florent Poinsard b632186a2d
[release-15.0] Auto upgrade the Golang version (#12585) (#12708)
* Auto upgrade the Golang version (#12585)

* initial addition of the go_upgrade tool to detect and bump the golang version

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* update go.mod automatically

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix isSameMajor version issue

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* update the bootstrap version automatically

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* update the bootstrap docker image changelog

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* uncomment code

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* addition of workflow

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* addition of base to create-pull-request

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* test create PR alternative

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* add flags and getter methods

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* better PR message

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix no-workflow-update flag and better PR body msg

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix PR title, branch and body format

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* test matrix and pwd path

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* enhanced matrix

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* update_workflows option

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* update workflows independently

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* test without matrix

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Add docs to go_upgrade and re-add matrix to the workflow

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* support major version upgrade

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* do not update bootstrap version if they are the same

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* migrate to cobra instead of pflags

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* remove redundant comment

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* safety net around replaceGoVersionInCodebase to avoid unrequired upgrade

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Remove double negation in workflowUpdate flag

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Use regexp instead of mere string comparison

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Proper regexp for every string comparison

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* use better regex

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* remove useless flag and improve the auto-PR body description

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* add note in the tool usage to run the tool at the root of the repo

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* add comment in .github/workflows/update_golang_version.yml

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Apply @mattlord code suggestion

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* replace usages of old filename

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Apply suggestions from code review

Co-authored-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
Co-authored-by: Matt Lord <mattalord@gmail.com>

* Fix regexp

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* remove the use of DateOnly

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <35779988+frouioui@users.noreply.github.com>
Co-authored-by: Matt Lord <mattalord@gmail.com>
2023-03-24 10:42:02 +02:00
Florent Poinsard 32a374be3c
[planner bugfix] add expressions to HAVING (#12668) (#12699)
* [planner bugfix] add expressions to HAVING

When a predicate contains aggregation, it should not
be added to the WHERE clause. It should go to the



* update test expecteations



---------

Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Co-authored-by: Andres Taylor <andres@planetscale.com>
2023-03-23 09:35:03 +02:00
Florent Poinsard 0fbe50f7a9
Backport 12634 (#12680)
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2023-03-23 08:33:52 +01:00
Manan Gupta d8c5160b4d
Fix initialization code to also stop replication to prevent crash (#12534) (#12692)
* feat: fix initialization code to also stop replication



* feat: fix tests expectations



* feat: fix wrangler tests



---------

Signed-off-by: Manan Gupta <manan@planetscale.com>
2023-03-23 09:08:05 +02:00
Florent Poinsard f56e64a5a6
[release-15.0] Make sure to not push down expressions when not possible (#12607) (#12647)
* [gen4 planner] Make sure to not push down expressions when not possible (#12607)

* Fix random aggregation to not select Null column
* stop pushing down projections that should be evaluated at the vtgate level
* undo changes to AggregateRandom
* clean up code
* fix executor test mock

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Andres Taylor <andres@planetscale.com>

* Fix schema error

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Co-authored-by: Andres Taylor <andres@planetscale.com>
2023-03-21 15:28:03 +02:00
Florent Poinsard f0cfda7983
[release-15.0] Re-organize the `releasenotes` directory into `changelog` (#12566) (#12659)
* Re-organize the `releasenotes` directory into `changelog` (#12566)

* Move all release related documents to ./release and add tool to generate READMEs

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Addition of the release.go file

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* simplify release.go

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* generate the release notes in the proper place

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* modify previous mentions of docs/releasenotes

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* re-add v17.0.0 summary

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* add new release tool to release instruction and ci

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* apply review suggestions

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* simplify release notes document path

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Apply review suggestions and fix team files

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* update the changelog dir and release_notes_label workflow

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2023-03-21 12:20:14 +02:00
Shlomi Noach f568a5ccb1
Mysqld.GetSchema: tolerate tables being dropped while inspecting schema (#12641) (#12665)
* Mysqld.GetSchema: tolerate tables being dropped while inspecting schema



* lack of primary key columns in STATISTICS does not mean table is dropped. It can also mean the table does not have PRIMARY KEY



* populate validTds rather than rely on nil hints



* re-introdce earlier check



* use validTds, sync



* due to many tests consistently failing, trying a different approach: we keep the table, but with empty column/key/fields info



* grammar



---------

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2023-03-20 14:42:34 +02:00
vitess-bot[bot] 3b0ccd0a02
Fix bug in vtexplain around JOINs (#12383)
Signed-off-by: Andres Taylor <andres@planetscale.com>
Co-authored-by: Andres Taylor <andres@planetscale.com>
2023-03-20 10:35:10 +02:00
Florent Poinsard e3d889be05
Fix `panic` when executing a prepare statement with over `65,528` parameters (#12614) (#12629)
* fix type conversion in query.go for the bitMap size



* enhance the TestHighNumberOfParams test



* fix test comment



---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2023-03-16 14:37:08 +02:00
Andrew Mason ab1d0fe888
Purge logs without panicking (#12187) (#12617)
* Purge logs without panicking



* Purge logs without panicking



* try moving the goroutine to the func itself



---------

Signed-off-by: Andrew Mason <andrew@planetscale.com>
2023-03-13 17:05:53 -04:00
Shlomi Noach 5e9de1f9fe
resolve conflict (#12591)
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2023-03-09 19:40:35 +05:30
vitess-bot[bot] 1c2ed6b1b4
[release-15.0] CI: extend timeouts in onlineddl_vrepl due to slow CI runners (#12583) (#12587)
* CI: extend timeouts in onlineddl_vrepl due to slow CI runners

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

* increase even further

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

---------

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Co-authored-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
2023-03-09 13:31:19 +02:00
Andres Taylor 2648cdb397
handle filter on top of UNION (#12543)
* handle filter on top of UNION

Signed-off-by: Andres Taylor <andres@planetscale.com>

* fix: conflict

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

---------

Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Co-authored-by: Harshit Gangal <harshit@planetscale.com>
2023-03-09 11:38:29 +05:30
Vicent Martí 01e4d8e364
collations: fix sorting in UCA900 collations (#12555) (#12562)
* collations: fix sorting in UCA900 collations

When using the fast iterator to _compare_ two strings with an UCA
collation, we need to keep in mind that the weights in the collation are
in BIG ENDIAN (this is the output format for the weight strings, so we
store the weights this way), so comparing them directly will not result
in the proper collation order. They need to be byte-swapped before they
can be compared with an arithmetic operation!



* collations: comment



---------

Signed-off-by: Vicent Marti <vmg@strn.cat>
2023-03-08 11:38:14 +01:00
Florent Poinsard af42116c8a
[release-15.0] Tooling improvements backports (#12527)
* Block merge if the `Do Not Merge` label is set (#12489)

* Block Merge if the  label is set

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix echo syntax

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Improve release process post `v16.0.0 GA` code freeze (#12487)

* Update the release instructions document with pre-requisites for release team

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Add Do Not Merge to release Pull Request upon creation

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix typo

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2023-03-07 16:08:08 +02:00
Andres Taylor 92d2af292b
[bug fix] USING planning on information_schema (#12542)
* [planner] Schema information on the information_schema views (#11941)

* add info_schema information

Signed-off-by: Andres Taylor <andres@planetscale.com>

* add SchemaInformation handling for info_schema tables

Signed-off-by: Andres Taylor <andres@planetscale.com>

* fix bad test query

Signed-off-by: Andres Taylor <andres@planetscale.com>

* add support for information_schema on mysql 5.7

Signed-off-by: Andres Taylor <andres@planetscale.com>

* columns sorted just like mysql, and tests for 5.7

Signed-off-by: Andres Taylor <andres@planetscale.com>

* test: skip test that should not run

Signed-off-by: Andres Taylor <andres@planetscale.com>

Signed-off-by: Andres Taylor <andres@planetscale.com>

* Fix for USING when column names not lower cased (#12379)

Signed-off-by: Andres Taylor <andres@planetscale.com>

---------

Signed-off-by: Andres Taylor <andres@planetscale.com>
2023-03-05 13:51:08 +05:30
Andrew Mason 7ac5c3939b
Fix `vtctldclient`'s Root command to return an error on unknown command (#12481) (#12531)
* Add a Run func to `vtctldclient`'s Root command to return an error on unknown command

Closes #12480.



* Add test



* flags test data



---------

Signed-off-by: Andrew Mason <andrew@planetscale.com>
2023-03-01 15:14:01 -05:00
Florent Poinsard 5701a05455
Make upgrade downgrade job names unique (#12498)
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2023-03-01 10:12:10 +02:00
Florent Poinsard 6fe32599ca
handle readtablet error (#12511)
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2023-03-01 10:10:59 +02:00
Florent Poinsard 7bd77855e4
Use go1.20.1 in upgrade/downgrade tests (#12512)
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2023-02-28 10:18:58 -08:00
Florent Poinsard f183ac72ca
Upgrade golang.org deps (#12405)
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2023-02-28 16:00:27 +02:00
Manan Gupta 9f173734bb
[release-15.0] BugFix: Unsharded query using a derived table and a dual table (#12484) (#12492)
* BugFix: Unsharded query using a derived table and a dual table (#12484)

* test: add failing test for a query in an unsharded keyspace using a derived table and reference table

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: fix logic to check if a single unsharded keyspace is used

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: fix test output

Signed-off-by: Manan Gupta <manan@planetscale.com>

---------

Signed-off-by: Manan Gupta <manan@planetscale.com>

* feat: remove test files

Signed-off-by: Manan Gupta <manan@planetscale.com>

---------

Signed-off-by: Manan Gupta <manan@planetscale.com>
2023-02-27 21:21:42 +05:30
Florent Poinsard b55eae3b93
Skip TestReparentDoesntHangIfPrimaryFails in vttablet v16 and above (#12387)
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2023-02-27 10:49:31 +02:00
Manan Gupta 7a594612dc
Fix scalar aggregation engine primitive for column truncation (#12468) (#12472)
* fix: scalar aggregation truncation



* test: added scalar aggr engine unit test



* remove onecase change



---------

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Co-authored-by: Harshit Gangal <harshit@planetscale.com>
2023-02-27 08:53:02 +02:00
Rameez Sajwani 911f246149
Fix vtbackup upgrade/downgrade test (#12437)
* adding check for v16 for upgrade/downgrade backup tests

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* removing TestReparentDoesntHangIfPrimaryFails

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* Removing keep-data from upgrade/downgrade workflow

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

* setting -keep-data=false in workflows

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>

---------

Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
2023-02-24 22:46:57 +05:30
Florent Poinsard c35032feee
Bug fix: Cache filtered out tablets in topology watcher to avoid unnecessary GetTablet calls to topo (#12194) (#12244)
* check filter later in loadTablets. Add tests to confirm expected behavior



* remove unnecessary assignment




* add some explanation around TestFilterByKeypsaceSkipsIgnoredTablets



* simplify filter check logic as well as major test cleanup, using testify where possible



---------

Signed-off-by: Brian Ramos <brirams@users.noreply.github.com>
Co-authored-by: Brian Ramos <brirams@users.noreply.github.com>
2023-02-17 10:43:31 +02:00
vitess-bot[bot] 1a950cd86f
only expand when we have full information (#12002)
Signed-off-by: Andres Taylor <andres@planetscale.com>
Co-authored-by: Andres Taylor <andres@planetscale.com>
2023-02-17 10:42:33 +02:00
Harshit Gangal 9f123a512b
Fix aggregation on outer joins (#12298) (#12313)
* fix: aggregation coming from right hand side of left join check for null



* test: added a sum test



* addressed review comments



---------

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
2023-02-13 15:44:43 +02:00
vitess-bot[bot] 358b68929d
fix: added null safe operator precendence rule (#12306)
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Co-authored-by: Harshit Gangal <harshit@planetscale.com>
2023-02-13 19:12:24 +05:30
Manan Gupta ad802f0d11
feat: fix release script for v15 (#12285)
Signed-off-by: Manan Gupta <manan@planetscale.com>
2023-02-09 13:36:04 +05:30
Dirkjan Bussink c1d8c14a7f
Release-15: Cherry pick vtorc no cgo (#12223)
* Move vtorc from go-sqlite3 to modernc.org/sqlite (#12214)

* Move vtorc from go-sqlite3 to modernc.org/sqlite

This moves vtorc from the go-sqlite3 library that uses CGO, to use
modernc.org/sqlite which is a pure Go implementation.

vtorc is the only component we have to build with CGO but it's causing
pain for releases since we need to build it against an old Linux for
linking against glibc.

Using modernc.org/sqlite allows for using Go only again and makes all
Vitess components buildable without CGO.

In
https://datastation.multiprocess.io/blog/2022-05-12-sqlite-in-go-with-and-without-cgo.html
someone ran some basic benchmarks. It shows that the pure Go version can
be twice as slow, but the usage of vtorc is very limited and we operate
on small datasets, so I think the performance impact purely of a
somewhat slower sqlite implementation is negligable.

None of this is in a hot query serving path or anything like that, so I
have little concern performance wise.

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>

* Fix error handling in RowToArray

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>

---------

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>

* empty-commit

Signed-off-by: Manan Gupta <manan@planetscale.com>

* Run go mod tidy

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>

---------

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Co-authored-by: Manan Gupta <manan@planetscale.com>
2023-02-06 10:26:07 +01:00
vitess-bot[bot] 91e7790c3e
[release-15.0] [Gen4] Fix lookup vindexes with `autocommit` enabled (#12172) (#12230)
* test: show that `autocommit` on lookup vindexes is broken when used after a savepoint is created

Signed-off-by: Arthur Schreiber <arthurschreiber@github.com>

* test: rework the test case to show that the problem lies with transactions

Signed-off-by: Arthur Schreiber <arthurschreiber@github.com>

* Correctly handle `autocommit` in the `VIndexLookup` primitive.

Signed-off-by: Arthur Schreiber <arthurschreiber@github.com>

* Copy the `logging` struct so autocommit queries show up correctly in `vexplain` output.

Signed-off-by: Arthur Schreiber <arthurschreiber@github.com>

---------

Signed-off-by: Arthur Schreiber <arthurschreiber@github.com>
Co-authored-by: Arthur Schreiber <arthurschreiber@github.com>
2023-02-03 18:42:16 +01:00