Commit bc653de
fix bypass sql fallback not reading columns
Summary:
when bypass falls back to mysql execution, bypass already made changes to the field object's state, mysql skipped setting `table->read_list` bit for some columns because of this. The storage engine does not read columns not set in the `table->read_list` bitmap.
- delay making changes to field object to the execution phase
- when there is error happen in execution phase, we will only fallback when m_unsupported is set, this happens before we make changes to field objects, so when fallback happens, field objects are in 'clean' state
- minor refactor in nosql_access.cc
- new test case of verifying data read in fallback scenarios
Reviewed By: luqun, jupyung
Differential Revision: D43201630
fbshipit-source-id: 677e42e1 parent 2958c1b commit bc653de
File tree
6 files changed
+343
-206
lines changed- mysql-test/suite/rocksdb
- include
- r
- t
- storage/rocksdb
6 files changed
+343
-206
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
266 | 274 | | |
267 | 275 | | |
268 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
1862 | 1862 | | |
1863 | 1863 | | |
1864 | 1864 | | |
1865 | | - | |
| 1865 | + | |
1866 | 1866 | | |
1867 | 1867 | | |
1868 | 1868 | | |
| |||
3366 | 3366 | | |
3367 | 3367 | | |
3368 | 3368 | | |
3369 | | - | |
| 3369 | + | |
3370 | 3370 | | |
3371 | 3371 | | |
3372 | 3372 | | |
| |||
4870 | 4870 | | |
4871 | 4871 | | |
4872 | 4872 | | |
4873 | | - | |
| 4873 | + | |
4874 | 4874 | | |
4875 | 4875 | | |
4876 | 4876 | | |
| |||
6471 | 6471 | | |
6472 | 6472 | | |
6473 | 6473 | | |
6474 | | - | |
| 6474 | + | |
6475 | 6475 | | |
6476 | 6476 | | |
6477 | 6477 | | |
| |||
7975 | 7975 | | |
7976 | 7976 | | |
7977 | 7977 | | |
7978 | | - | |
| 7978 | + | |
7979 | 7979 | | |
7980 | 7980 | | |
7981 | 7981 | | |
| |||
9479 | 9479 | | |
9480 | 9480 | | |
9481 | 9481 | | |
9482 | | - | |
| 9482 | + | |
9483 | 9483 | | |
9484 | 9484 | | |
9485 | 9485 | | |
| |||
10983 | 10983 | | |
10984 | 10984 | | |
10985 | 10985 | | |
10986 | | - | |
| 10986 | + | |
10987 | 10987 | | |
10988 | 10988 | | |
10989 | 10989 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
1862 | 1862 | | |
1863 | 1863 | | |
1864 | 1864 | | |
1865 | | - | |
| 1865 | + | |
1866 | 1866 | | |
1867 | 1867 | | |
1868 | 1868 | | |
| |||
3366 | 3366 | | |
3367 | 3367 | | |
3368 | 3368 | | |
3369 | | - | |
| 3369 | + | |
3370 | 3370 | | |
3371 | 3371 | | |
3372 | 3372 | | |
| |||
4870 | 4870 | | |
4871 | 4871 | | |
4872 | 4872 | | |
4873 | | - | |
| 4873 | + | |
4874 | 4874 | | |
4875 | 4875 | | |
4876 | 4876 | | |
| |||
6471 | 6471 | | |
6472 | 6472 | | |
6473 | 6473 | | |
6474 | | - | |
| 6474 | + | |
6475 | 6475 | | |
6476 | 6476 | | |
6477 | 6477 | | |
| |||
7975 | 7975 | | |
7976 | 7976 | | |
7977 | 7977 | | |
7978 | | - | |
| 7978 | + | |
7979 | 7979 | | |
7980 | 7980 | | |
7981 | 7981 | | |
| |||
9479 | 9479 | | |
9480 | 9480 | | |
9481 | 9481 | | |
9482 | | - | |
| 9482 | + | |
9483 | 9483 | | |
9484 | 9484 | | |
9485 | 9485 | | |
| |||
10983 | 10983 | | |
10984 | 10984 | | |
10985 | 10985 | | |
10986 | | - | |
| 10986 | + | |
10987 | 10987 | | |
10988 | 10988 | | |
10989 | 10989 | | |
| |||
0 commit comments