[fix](column_complex) wrong type of Field returned by ColumnComplex (#43515) (#43860)

This commit is contained in:
Jerry Hu
2024-11-13 19:07:00 +08:00
committed by GitHub
parent d723aa3e78
commit 1101fbaf04
31 changed files with 193 additions and 113 deletions

View File

@ -99,7 +99,7 @@ TEST_F(TableFunctionTest, vexplode_outer) {
// explode_outer(Array<String>)
{
InputTypeSet input_types = {TypeIndex::Array, TypeIndex::String};
Array vec = {std::string("abc"), std::string(""), std::string("def")};
Array vec = {Field(std::string("abc")), Field(std::string("")), Field(std::string("def"))};
InputDataSet input_set = {{Null()}, {Array()}, {vec}};
InputTypeSet output_types = {TypeIndex::String};
@ -146,7 +146,7 @@ TEST_F(TableFunctionTest, vexplode) {
// explode(Array<String>)
{
InputTypeSet input_types = {TypeIndex::Array, TypeIndex::String};
Array vec = {std::string("abc"), std::string(""), std::string("def")};
Array vec = {Field(std::string("abc")), Field(std::string("")), Field(std::string("def"))};
InputDataSet input_set = {{Null()}, {Array()}, {vec}};
InputTypeSet output_types = {TypeIndex::String};