Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lzyy2024 committed Feb 19, 2025
1 parent e547b97 commit 0495acb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
12 changes: 6 additions & 6 deletions be/src/vec/functions/function_jsonb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ struct JsonbExtractStringImpl {
inner_loop_impl(i, res_data, res_offsets, null_map, writer, formater, l_raw, l_size,
path);
} //for
} //function
} //function
static void vector_scalar(FunctionContext* context, const ColumnString::Chars& ldata,
const ColumnString::Offsets& loffsets, const StringRef& rdata,
ColumnString::Chars& res_data, ColumnString::Offsets& res_offsets,
Expand Down Expand Up @@ -982,7 +982,7 @@ struct JsonbExtractStringImpl {
inner_loop_impl(i, res_data, res_offsets, null_map, writer, formater, l_raw, l_size,
path);
} //for
} //function
} //function
static void scalar_vector(FunctionContext* context, const StringRef& ldata,
const ColumnString::Chars& rdata,
const ColumnString::Offsets& roffsets, ColumnString::Chars& res_data,
Expand Down Expand Up @@ -1012,7 +1012,7 @@ struct JsonbExtractStringImpl {
inner_loop_impl(i, res_data, res_offsets, null_map, writer, formater, ldata.data,
ldata.size, path);
} //for
} //function
} //function
};

template <typename ValueType>
Expand Down Expand Up @@ -1140,7 +1140,7 @@ struct JsonbExtractImpl {

inner_loop_impl(i, res, null_map, l_raw_str, l_str_size, path);
} //for
} //function
} //function
static void scalar_vector(FunctionContext* context, const StringRef& ldata,
const ColumnString::Chars& rdata,
const ColumnString::Offsets& roffsets, Container& res,
Expand All @@ -1165,7 +1165,7 @@ struct JsonbExtractImpl {

inner_loop_impl(i, res, null_map, ldata.data, ldata.size, path);
} //for
} //function
} //function
static void vector_scalar(FunctionContext* context, const ColumnString::Chars& ldata,
const ColumnString::Offsets& loffsets, const StringRef& rdata,
Container& res, NullMap& null_map, bool& is_invalid_json_path) {
Expand All @@ -1188,7 +1188,7 @@ struct JsonbExtractImpl {

inner_loop_impl(i, res, null_map, l_raw_str, l_str_size, path);
} //for
} //function
} //function
};

struct JsonbTypeExists {
Expand Down
17 changes: 17 additions & 0 deletions be/src/vec/functions/string_utils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

#pragma once

#include <sys/types.h>
Expand Down

0 comments on commit 0495acb

Please sign in to comment.