Skip to content

Commit

Permalink
Node: Add FT.PROFILE command (#2633)
Browse files Browse the repository at this point in the history
* Node: Add FT.PROFILE command

---------

Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Co-authored-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
acarbonetto and Yury-Fridlyand authored Nov 12, 2024
1 parent 137c02e commit c374d29
Show file tree
Hide file tree
Showing 6 changed files with 660 additions and 399 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* Node: Added `FT.CREATE` ([#2501](https://github.com/valkey-io/valkey-glide/pull/2501))
* Node: Added `FT.INFO` ([#2540](https://github.com/valkey-io/valkey-glide/pull/2540))
* Node: Added `FT.AGGREGATE` ([#2554](https://github.com/valkey-io/valkey-glide/pull/2554))
* Node: Added `FT.PROFILE` ([#2633](https://github.com/valkey-io/valkey-glide/pull/2633))
* Java: Added `JSON.DEBUG` ([#2520](https://github.com/valkey-io/valkey-glide/pull/2520))
* Java: Added `JSON.ARRINSERT` and `JSON.ARRLEN` ([#2476](https://github.com/valkey-io/valkey-glide/pull/2476))
* Java: Added `JSON.ARRINDEX` ([#2546](https://github.com/valkey-io/valkey-glide/pull/2546))
Expand Down
4 changes: 2 additions & 2 deletions glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,8 @@ pub(crate) fn convert_to_expected_type(
let res = vec![
convert_to_expected_type(array.remove(0), *type_of_query)?,
convert_to_expected_type(array.remove(0), Some(ExpectedReturnType::Map {
key_type: &None,
value_type: &None,
key_type: &Some(ExpectedReturnType::SimpleString),
value_type: &Some(ExpectedReturnType::Double),
}))?];

Ok(Value::Array(res))
Expand Down
4 changes: 4 additions & 0 deletions node/npm/glide/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ function initialize() {
FtAggregateSortBy,
FtAggregateSortProperty,
FtAggregateApply,
FtAggregateReturnType,
FtSearchReturnType,
FtProfileOtions,
GlideRecord,
GlideString,
JsonGetOptions,
Expand Down Expand Up @@ -268,7 +270,9 @@ function initialize() {
FtAggregateSortBy,
FtAggregateSortProperty,
FtAggregateApply,
FtAggregateReturnType,
FtSearchReturnType,
FtProfileOtions,
GlideRecord,
GlideJson,
GlideString,
Expand Down
Loading

0 comments on commit c374d29

Please sign in to comment.