Skip to content

Commit

Permalink
lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
taytzehao committed Sep 26, 2023
1 parent b6108b5 commit aa1caed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expr/src/vector_op/jsonb_concat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use serde_json::{json, Value};
/// SELECT 'null'::jsonb || '[1,2]'::jsonb;
/// ----
/// [null, 1, 2]
///
///
/// query T
/// SELECT 'null'::jsonb || '1'::jsonb;
/// ----
Expand Down Expand Up @@ -89,7 +89,7 @@ pub fn jsonb_cat(left: JsonbRef<'_>, right: JsonbRef<'_>) -> JsonbVal {
// This would insert the non-array value as another element into the array
// Eg left:{'a':1} right:[1,2] -> [{'a':1},1,2]
(single_val, Value::Array(mut right_arr)) => {
right_arr.insert(0,single_val);
right_arr.insert(0, single_val);
JsonbVal::from(Value::Array(right_arr))
}

Expand Down

0 comments on commit aa1caed

Please sign in to comment.