Skip to content
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

colexec: clean up materializer a bit #48548

Merged
merged 1 commit into from
May 12, 2020
Merged

Conversation

yuzefovich
Copy link
Member

While working on cfetcher + materializer instead of table reader,
I noticed something weird - that we get OutputTypes in the
materializer, and use those when converting physical vectors to datums.
I thought this was a bug because OutputTypes returns the type schema
after post-processing stage, and internal type schema of a processor
could be different. It turns out we simply always pass in empty
PostProcessSpec into the materializer because we expect the input
operator to handle the post-processing itself. This commit cleans it up
by removing that unused argument and the call to ProcessRowHelper.

Release note: None

@yuzefovich yuzefovich requested review from asubiotto and a team May 7, 2020 19:31
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@asubiotto asubiotto left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 11 of 11 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented May 12, 2020

Merge conflict (retrying...)

@yuzefovich
Copy link
Member Author

bors r-

@craig
Copy link
Contributor

craig bot commented May 12, 2020

Canceled

While working on cfetcher + materializer instead of table reader,
I noticed something weird - that we get `OutputTypes` in the
materializer, and use those when converting physical vectors to datums.
I thought this was a bug because `OutputTypes` returns the type schema
after post-processing stage, and internal type schema of a processor
could be different. It turns out we simply always pass in empty
`PostProcessSpec` into the materializer because we expect the input
operator to handle the post-processing itself. This commit cleans it up
by removing that unused argument and the call to `ProcessRowHelper`.

Release note: None
@yuzefovich
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented May 12, 2020

Build succeeded

@craig craig bot merged commit 8a04d0a into cockroachdb:master May 12, 2020
@yuzefovich yuzefovich deleted the materializer branch May 12, 2020 19:01
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