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.
[java] Favor column ids over column names in scan tokens
Previously, a scan token would use column name to map a column in its projection to a column in the target table's current schema. Therefore, a scan token couldn't be used if a column were renamed between when the token is cut and when it is rehydrated into a scanner. This adjusts the Java client to prefer ids to names, to fix this behavior. Since this involves including column ids when serializing columns to PBs as part of scan tokens, but the server does not permit clients to send column ids in most cases, this patch adds a new serialization option that includes column ids. Note that this patch does not make _scanners_ resistant to column name changes. If a scanner is opened against a table and a column name changes on a replica before the scanner opens a server-side scanner on it, the scan will fail if the column is in the projection. A follow-up will add similar capability to the C++ client. Change-Id: Ib3f05a4175c7e7bfaec2cbd3586723e6de3823f0 Reviewed-on: http://gerrit.cloudera.org:8080/13562 Reviewed-by: Mike Percy <[email protected]> Tested-by: Kudu Jenkins
- Loading branch information
1 parent
a7bdd06
commit 0f2946b
Showing
7 changed files
with
229 additions
and
67 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
Oops, something went wrong.