Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
colexec: fixed nullableArgs projection operators
Previously, the projection operators for binary or comparison expressions directly copy nulls into the output without performing the actual projection whenever either argument was null. This is incorrect because some function operators can handle null arguments, and we want the actual projection result instead. Since currently the only projection operator that needs `nullableArgs == true` behaviour is `ConcatDatumDatum`, this PR fixed this by only adding a boolean field `nullableArgs` to operators with `Datum`, `Datum`. If we later introduce another projection operation that has nullableArgs == true, we should update code accordingly. Fixes: cockroachdb#83091 Release note (bug fix): Fixed a bug in projection operators that gave output of nulls when the expression can actually handle null arguments and may result in a non-null output. Note that if we later introduce another projection operation that has nullableArgs == true, we should update code accordingly.
- Loading branch information