@@ -1146,22 +1146,24 @@ TEST_F(TestProjector, TestCastVarbinaryFunction) {
11461146
11471147 std::shared_ptr<Projector> projector;
11481148
1149- // {cast_expr_float4, cast_expr_float8, cast_expr_int4, cast_expr_int8}
1150- auto status = Projector::Make (
1151- schema, {cast_expr_float4, cast_expr_float8, cast_expr_int4, cast_expr_int8},
1152- TestConfiguration (), &projector);
1149+ // {cast_expr_int4, cast_expr_int8}
1150+ auto status = Projector::Make (schema, {cast_expr_int4, cast_expr_int8},
1151+ TestConfiguration (), &projector);
11531152 EXPECT_TRUE (status.ok ());
11541153
11551154 // Create a row-batch with some sample data
11561155 int num_records = 4 ;
11571156
11581157 // Last validity is false and the cast functions throw error when input is empty. Should
11591158 // not be evaluated due to addition of NativeFunction::kCanReturnErrors
1160- auto array0 = MakeArrowArrayBinary ({" 25" , " -7FFFFFFF" , " 7FFFFFFF" , " 4" }, {true , true , true , false });
1159+ auto array0 = MakeArrowArrayBinary ({" 25" , " -7FFFFFFF" , " 7FFFFFFF" , " 4" },
1160+ {true , true , true , false });
11611161 auto in_batch = arrow::RecordBatch::Make (schema, num_records, {array0});
11621162
1163- auto out_int4 = MakeArrowArrayInt32 ({37 , INT32_MIN +1 , INT32_MAX , 0 }, {true , true , true , false });
1164- auto out_int8 = MakeArrowArrayInt64 ({37 , INT32_MIN +1 , INT32_MAX , 0 }, {true , true , true , false });
1163+ auto out_int4 =
1164+ MakeArrowArrayInt32 ({37 , INT32_MIN + 1 , INT32_MAX , 0 }, {true , true , true , false });
1165+ auto out_int8 =
1166+ MakeArrowArrayInt64 ({37 , INT32_MIN + 1 , INT32_MAX , 0 }, {true , true , true , false });
11651167
11661168 arrow::ArrayVector outputs;
11671169
0 commit comments