-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
distsql: the Context used for expression evaluation (EvalCtx.Ctx) is wrong #15670
Comments
This still seems important and should be done earlier, to avoid another last-minute scramble. Is this doable for 1.1? |
I don't know how much work it is to fix this, I have to look at the code. But I don't think it's a particularly big deal; I think this just affects the log messages from expression evaluation. |
Ah, from the description it seemed that this is about an |
EvalCtx.Ctx
used for expression evaluation is wrongEvalCtx.Ctx
) is wrong
EvalCtx.Ctx
) is wrong
Seems out of date - either fixed or different now. Closing. |
Why does it seem out of date or different? If you look for uses of cockroach/pkg/sql/distsqlrun/sorter.go Line 225 in b1d18df
Also all the expression evaluation done by DistSQL. |
Looks like this was fixed for most processors at some point: |
As indicated by the TODO here: https://github.com/cockroachdb/cockroach/blob/549631b/pkg/sql/distsqlrun/server.go#L180
Each processor that needs to evaluate expressions should initialize the
Ctx
inside theEvalCtx
. This would probably be made easier by making the EvalCtx immutable and passing it by value more.The text was updated successfully, but these errors were encountered: