Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
executor: fix point get null values #7790
What problem does this PR solve?
Fix the "index out of range" panic caused by point getting all null values.
Let's say we have the following table:
drop table if exists t; create table t(a bigint primary key, b bigint, c bigint); insert into t values(1, NULL, NULL);
In master branch, the following query can reach a panic:
select * from t where a = 1;
This PR fixes the above problem.
What is changed and how it works?
if the length of the returned column values is smaller than the column offset, that indicates the value of that column is null or should be covered by the default value.
Another approach is more safe which is to modify