You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Mike Percy (Code Review)" <ge...@cloudera.org> on 2019/02/08 22:11:59 UTC
[kudu-CR] KUDU-2645: schema: Add support for virtual columns in projections
Hello Will Berkeley, Kudu Jenkins, Adar Dembo,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/12204
to look at the new patch set (#2).
Change subject: KUDU-2645: schema: Add support for virtual columns in projections
......................................................................
KUDU-2645: schema: Add support for virtual columns in projections
* Do not validate that virtual columns appearing in a user projection
also appear in the tablet schema because virtual columns are not
physically present and so should never appear in a tablet schema.
* Generate artificial column ids for virtual columns so that we can map
the virtual columns onto a scanner schema that includes column ids,
like a tablet iterator. Schemas have the invariant that either there
are no column ids present in a schema or all columns in the schema are
mapped to a column id.
This patch adds a simple unit test for Schema::GetMappedReadProjection()
that includes the use of a virtual column.
Change-Id: I06a69ab9d65245e25b1a955765a3a1ebdb9655d3
---
M src/kudu/common/schema-test.cc
M src/kudu/common/schema.cc
2 files changed, 44 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/04/12204/2
--
To view, visit http://gerrit.cloudera.org:8080/12204
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I06a69ab9d65245e25b1a955765a3a1ebdb9655d3
Gerrit-Change-Number: 12204
Gerrit-PatchSet: 2
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>