forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KUDU-2980: fix ORDERED scans when key columns are misordered in proje…
…ction This patch fixes KUDU-2980 by taking a stricter approach to how key columns appear in ORDERED scan projections. Any key columns already in the client-provided projection are completely ignored. Instead, when we rebuild the projection server-side, the first section (i.e. the part with the key columns) is built using the tablet's schema. After that, we incorporate any remaining columns from the client-provided projection, dropping any key columns. Finally, we add any columns necessary to satisfy predicates. The new fuzz test reproduces the bug very easily, and is expansive enough to provide additional coverage for funky projection and predicate ordering. I looped it 1000 times in dist-test without failure. Change-Id: Idb213f466c7d01b6953a863d8aa53a34b5ac8893 Reviewed-on: http://gerrit.cloudera.org:8080/14503 Tested-by: Kudu Jenkins Reviewed-by: Andrew Wong <[email protected]> (cherry picked from commit e23e52a) Reviewed-on: http://gerrit.cloudera.org:8080/14537 Reviewed-by: Alexey Serbin <[email protected]> Tested-by: Adar Dembo <[email protected]>
- Loading branch information
Showing
7 changed files
with
195 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters