Skip to content

row: fix decoding bug with cfetcher and wide rows #39441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

jordanlewis
Copy link
Member

CFetcher was failing to properly decode value columns of tables that had
more than 8 columns due to an indexing bug that only manifested when the
value tag (the column id and tag, encoded as a varint) was more than a
single byte, which only occurs when the column id or type id is large
enough.

I'm not quite sure how this didn't come up before, since TPCH has tables
with more than 8 columns.

Updates #38288.

Release note: None

CFetcher was failing to properly decode value columns of tables that had
more than 8 columns due to an indexing bug that only manifested when the
value tag (the column id and tag, encoded as a varint) was more than a
single byte, which only occurs when the column id or type id is large
enough.

I'm not quite sure how this didn't come up before, since TPCH has tables
with more than 8 columns.

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jordanlewis jordanlewis requested review from a team and solongordon August 8, 2019 20:52
Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, yeah I'm also surprised we haven't hit this before. :lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @solongordon)

@jordanlewis
Copy link
Member Author

bors r+

tftr!

craig bot pushed a commit that referenced this pull request Aug 8, 2019
39441: row: fix decoding bug with cfetcher and wide rows r=jordanlewis a=jordanlewis

CFetcher was failing to properly decode value columns of tables that had
more than 8 columns due to an indexing bug that only manifested when the
value tag (the column id and tag, encoded as a varint) was more than a
single byte, which only occurs when the column id or type id is large
enough.

I'm not quite sure how this didn't come up before, since TPCH has tables
with more than 8 columns.

Updates #38288.

Release note: None

Co-authored-by: Jordan Lewis <[email protected]>
@craig
Copy link
Contributor

craig bot commented Aug 8, 2019

Build succeeded

@craig craig bot merged commit 40ace00 into cockroachdb:master Aug 8, 2019
@jordanlewis jordanlewis deleted the fix-cfetcher-wide branch August 9, 2019 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants