Skip to content

Commit d56918c

Browse files
committed
Fix lint issues.
1 parent 41b1b0f commit d56918c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cpp/src/gandiva/tests/decimal_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,7 @@ TEST_F(TestDecimal, TestNullDecimalConstant) {
832832
{false, true, false, true});
833833

834834
// prepare input record batch
835-
auto in_batch =
836-
arrow::RecordBatch::Make(schema, num_records, {array_b, array_c});
835+
auto in_batch = arrow::RecordBatch::Make(schema, num_records, {array_b, array_c});
837836

838837
// Evaluate expression
839838
arrow::ArrayVector outputs;

cpp/src/gandiva/tree_expr_builder.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ NodePtr TreeExprBuilder::MakeNull(DataTypePtr data_type) {
9999
case arrow::Type::TIMESTAMP:
100100
return std::make_shared<LiteralNode>(data_type, LiteralHolder((int64_t)0), true);
101101
case arrow::Type::DECIMAL: {
102-
std::shared_ptr<arrow::DecimalType> decimal_type = std::dynamic_pointer_cast<arrow::DecimalType>(data_type);
102+
std::shared_ptr<arrow::DecimalType> decimal_type =
103+
std::dynamic_pointer_cast<arrow::DecimalType>(data_type);
103104
DecimalScalar128 literal(decimal_type->precision(), decimal_type->scale());
104105
return std::make_shared<LiteralNode>(data_type, LiteralHolder(literal), true);
105106
}

0 commit comments

Comments
 (0)