Skip to content

Commit

Permalink
add uts
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyang-li committed Sep 4, 2024
1 parent ae494af commit 2879cad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class FunctionParserTimestampSeconds : public FunctionParser
throw Exception(DB::ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH, "Function {} requires exactly one argument", getName());

const auto * arg = parsed_args[0];
const auto * precision_node = addColumnToActionsDAG(actions_dag, std::make_shared<DataTypeInt32>(), 6);
const auto * precision_node = addColumnToActionsDAG(actions_dag, std::make_shared<DataTypeUInt8>(), 6);
const auto * toDateTime64_node = toFunctionNode(actions_dag, "toDateTime64", {arg, precision_node});
return convertNodeTypeIfNeeded(substrait_func, toDateTime64_node, actions_dag);
}
Expand Down

0 comments on commit 2879cad

Please sign in to comment.