Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion be/src/core/column/column.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class IColumn : public COW<IColumn> {
"Method erase is not supported for " + get_name());
}

/// cut or expand inplace. `this` would be moved, only the return value is avaliable.
/// cut or expand inplace. `this` would be moved, only the return value is available.
virtual Ptr shrink(size_t length) const final {
// NOLINTBEGIN(performance-move-const-arg)
MutablePtr res = std::move(*this).mutate();
Expand Down
4 changes: 2 additions & 2 deletions be/src/core/value/vdatetime_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ class VecDateTimeValue { // Now this type is a temp solution with little changes
void unix_timestamp(int64_t* timestamp, const cctz::time_zone& ctz) const;

//construct datetime_value from timestamp and timezone
//timestamp is an internal timestamp value representing seconds since '1970-01-01 00:00:00' UTC. negative avaliable.
//timestamp is an internal timestamp value representing seconds since '1970-01-01 00:00:00' UTC. negative available.
//we don't do any check in it because it's hot path. any usage want ensure the time legality should check itself.
bool from_unixtime(int64_t, const std::string& timezone);
void from_unixtime(int64_t, const cctz::time_zone& ctz);
Expand Down Expand Up @@ -1103,7 +1103,7 @@ class DateV2Value {
void unix_timestamp(std::pair<int64_t, int64_t>* timestamp, const cctz::time_zone& ctz) const;

//construct datetime_value from timestamp and timezone
//timestamp is an internal timestamp value representing seconds since '1970-01-01 00:00:00' UTC. negative avaliable.
//timestamp is an internal timestamp value representing seconds since '1970-01-01 00:00:00' UTC. negative available.
//we don't do any check in it because it's hot path. any usage want ensure the time legality should check itself.
bool from_unixtime(int64_t, const std::string& timezone);
void from_unixtime(int64_t, const cctz::time_zone& ctz);
Expand Down
6 changes: 3 additions & 3 deletions be/src/exec/common/string_searcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class StringSearcher<true, ASCII> : public StringSearcherBase {
template <typename CharT>
// requires (sizeof(CharT) == 1)
const CharT* search(const CharT* haystack, size_t haystack_size) const {
// cast to unsigned int8 to be consitent with needle type
// cast to unsigned int8 to be consistent with needle type
// ensure unsigned type compare
return reinterpret_cast<const CharT*>(
_search(reinterpret_cast<const uint8_t*>(haystack), haystack_size));
Expand All @@ -121,7 +121,7 @@ class StringSearcher<true, ASCII> : public StringSearcherBase {
template <typename CharT>
// requires (sizeof(CharT) == 1)
const CharT* search(const CharT* haystack, const CharT* haystack_end) const {
// cast to unsigned int8 to be consitent with needle type
// cast to unsigned int8 to be consistent with needle type
// ensure unsigned type compare
return reinterpret_cast<const CharT*>(
_search(reinterpret_cast<const uint8_t*>(haystack),
Expand All @@ -131,7 +131,7 @@ class StringSearcher<true, ASCII> : public StringSearcherBase {
template <typename CharT>
// requires (sizeof(CharT) == 1)
ALWAYS_INLINE bool compare(const CharT* haystack, const CharT* haystack_end, CharT* pos) const {
// cast to unsigned int8 to be consitent with needle type
// cast to unsigned int8 to be consistent with needle type
// ensure unsigned type compare
return _compare(reinterpret_cast<const uint8_t*>(haystack),
reinterpret_cast<const uint8_t*>(haystack_end),
Expand Down
2 changes: 1 addition & 1 deletion be/src/storage/task/engine_clone_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Status EngineCloneTask::_do_clone() {
if (tablet->replica_id() < _clone_req.replica_id) {
// `tablet` may be a dropped replica in FE, e.g:
// BE1 migrates replica of tablet_1 to BE2, but before BE1 drop this replica, another new replica of tablet_1 is migrated to BE1.
// Clone can still continue in this case. But to keep `replica_id` consitent with FE, MUST reset `replica_id` with request `replica_id`.
// Clone can still continue in this case. But to keep `replica_id` consistent with FE, MUST reset `replica_id` with request `replica_id`.
tablet->tablet_meta()->set_replica_id(_clone_req.replica_id);
}

Expand Down
2 changes: 1 addition & 1 deletion common/cpp/sync_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ auto try_any_cast_ret(std::vector<std::any>& any) {
# define TEST_SYNC_POINT_SINGLETON()
#else
// Use TEST_SYNC_POINT to specify sync points inside code base.
// Sync points can have happens-after depedency on other sync points,
// Sync points can have happens-after dependency on other sync points,
// configured at runtime via SyncPoint::load_dependency. This could be
// utilized to re-produce race conditions between threads.
# define TEST_SYNC_POINT(x) SYNC_POINT(x)
Expand Down
Loading