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

exec: Add informative k/v tracing to cfetcher. #38938

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Jul 17, 2019

This PR adds K/V tracing similar to that of the distsql fetcher to the cfetcher used by the vectorized engine.

For reviewing purposes, please look at the latest commit. This PR depends on a helper function added in the builtin functions support PR which has not landed yet.

@rohany rohany requested review from jordanlewis and a team July 17, 2019 18:34
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @rohany)


pkg/sql/distsqlrun/column_exec_setup.go, line 644 at r1 (raw file):

		for _, e := range t.Exprs {
			var err error
			// TODO: This could be done better, especially in the case of

nit: I thought our linters caught this, but it's a convention in our codebase to always have TODO(somebody).


pkg/sql/row/cfetcher.go, line 789 at r2 (raw file):

			if idx != -1 {
				dVal := exec.PhysicalTypeColElemToDatum(rf.machine.colvecs[idx], rf.machine.rowIdx, rf.table.da, rf.table.keyValTypes[idx])
				fmt.Println(dVal, dVal.String())

This probably needs to go away.

This PR adds more logging to the cfetcher so that
it outputs the same logging information as the fetcher.

Release note: None
@rohany
Copy link
Contributor Author

rohany commented Jul 17, 2019

bors r=jordanlewis

craig bot pushed a commit that referenced this pull request Jul 17, 2019
38938: exec: Add informative k/v tracing to cfetcher. r=jordanlewis a=rohany

This PR adds K/V tracing similar to that of the distsql fetcher to the cfetcher used by the vectorized engine.

For reviewing purposes, please look at the latest commit. This PR depends on a helper function added in the builtin functions support PR which has not landed yet.

Co-authored-by: Rohan Yadav <rohany@alumni.cmu.edu>
@craig
Copy link
Contributor

craig bot commented Jul 17, 2019

Build succeeded

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