Skip to content

Commit

Permalink
remove code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mryange committed Nov 17, 2024
1 parent 6bff40d commit 1fbccca
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions be/src/vec/functions/function_date_or_datetime_computation.h
Original file line number Diff line number Diff line change
Expand Up @@ -479,34 +479,6 @@ struct DateTimeOp {
}
}

// use for (const DateTime, ColumnNumber) -> other_type
static void constant_vector(const FromType1& from, PaddedPODArray<ToType>& vec_to,
NullMap& null_map, const IColumn& delta) {
size_t size = delta.size();
vec_to.resize(size);
null_map.resize_fill(size, false);

for (size_t i = 0; i < size; ++i) {
vec_to[i] = Transform::execute(from, delta.get_int(i),
reinterpret_cast<bool&>(null_map[i]));
}
}
static void constant_vector(const FromType1& from, PaddedPODArray<ToType>& vec_to,
const IColumn& delta) {
size_t size = delta.size();
vec_to.resize(size);
bool invalid = true;

for (size_t i = 0; i < size; ++i) {
vec_to[i] = Transform::execute(from, delta.get_int(i), invalid);

if (UNLIKELY(invalid)) {
throw Exception(ErrorCode::OUT_OF_BOUND, "Operation {} {} {} out of range",
Transform::name, from, delta.get_int(i));
}
}
}

static void constant_vector(const FromType1& from, PaddedPODArray<ToType>& vec_to,
NullMap& null_map, const PaddedPODArray<FromType2>& delta) {
size_t size = delta.size();
Expand Down

0 comments on commit 1fbccca

Please sign in to comment.