branch-2.1: [fix](nereids) fix create view use null literal #49881 (#51006)

Cherry-picked from #49881

Co-authored-by: feiniaofeiafei <moailing@selectdb.com>
This commit is contained in:
github-actions[bot]
2025-05-19 15:11:32 +08:00
committed by GitHub
parent 51b39d0992
commit edb8a51414
4 changed files with 79 additions and 7 deletions

View File

@ -1136,7 +1136,7 @@ public class VectorColumn {
}
}
}
childColumns[0].appendObjectColumn(nested, isNullable);
childColumns[0].appendObjectColumn(nested, true);
}
public ArrayList<Object> getArray(int rowId) {
@ -1198,8 +1198,8 @@ public class VectorColumn {
}
}
}
childColumns[0].appendObjectColumn(keys, isNullable);
childColumns[1].appendObjectColumn(values, isNullable);
childColumns[0].appendObjectColumn(keys, true);
childColumns[1].appendObjectColumn(values, true);
}
public HashMap<Object, Object> getMap(int rowId) {
@ -1260,7 +1260,7 @@ public class VectorColumn {
appendIndex++;
}
for (int j = 0; j < childColumns.length; ++j) {
childColumns[j].appendObjectColumn(columnData[j], isNullable);
childColumns[j].appendObjectColumn(columnData[j], true);
}
}