Skip to content

Commit

Permalink
[GLUTEN-6989][CH] Remove condition when trim col contains null
Browse files Browse the repository at this point in the history
  • Loading branch information
lwz9103 committed Aug 27, 2024
1 parent cebb7c1 commit 14d502c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cpp-ch/local-engine/Functions/SparkFunctionTrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,6 @@ namespace

void trim(const char * src, const size_t src_size, const char *& dst, size_t & dst_size, const std::bitset<256> & trim_set) const
{
// If trim column is not constant and contains null value
if (trim_set.none())
{
dst = src;
dst_size = src_size;
return;
}

const char * src_end = src + src_size;
if constexpr (TrimMode::trim_left)
while (src < src_end && trim_set.test((unsigned char)*src))
Expand Down

0 comments on commit 14d502c

Please sign in to comment.