Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
yiguolei committed Nov 21, 2024
1 parent 6ea3f9f commit 36f50a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions be/src/vec/runtime/vdatetime_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static constexpr uint32_t DATETIMEV2_MONTH_WIDTH = 4;

static RE2 time_zone_offset_format_reg(R"(^[+-]{1}\d{2}\:\d{2}$)");

uint8_t mysql_week_mode(uint32_t mode);
uint8_t mysql_week_mode(uint8_t mode);

struct DateV2ValueType {
uint32_t day_ : 5;
Expand Down Expand Up @@ -668,7 +668,7 @@ class VecDateTimeValue { // Now this type is a temp solution with little changes
return (daynr() - rhs.daynr()) * SECOND_PER_HOUR * HOUR_PER_DAY + time_part_diff(rhs);
}

void set_type(int type);
void set_type(uint16_t type);

int type() const { return _type; }

Expand Down Expand Up @@ -704,10 +704,10 @@ class VecDateTimeValue { // Now this type is a temp solution with little changes
_type = TIME_DATETIME;
}

bool get_date_from_daynr(uint64_t);
bool get_date_from_daynr(uint32_t);

// reset 0
void reset_zero_by_type(int type) { set_zero(type); }
void reset_zero_by_type(uint16_t type) { set_zero(type); }

private:
// Used to make sure sizeof VecDateTimeValue
Expand Down Expand Up @@ -743,7 +743,7 @@ class VecDateTimeValue { // Now this type is a temp solution with little changes
bool disable_lut = false);

// Helper to set max, min, zero
void set_zero(int type);
void set_zero(uint16_t type);
void set_max_time(bool neg);

bool from_date_format_str(const char* format, int format_len, const char* value,
Expand Down Expand Up @@ -1190,7 +1190,7 @@ class DateV2Value {
uint32_t set_date_uint32(uint32_t int_val);
uint64_t set_datetime_uint64(uint64_t int_val);

bool get_date_from_daynr(uint64_t);
bool get_date_from_daynr(uint32_t);

template <TimeUnit unit>
[[nodiscard]] bool set_time_unit(uint32_t val) {
Expand Down

0 comments on commit 36f50a5

Please sign in to comment.