Skip to content

Commit c374d29

Browse files
Node: Add FT.PROFILE command (#2633)
* 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]>
1 parent 137c02e commit c374d29

File tree

6 files changed

+660
-399
lines changed

6 files changed

+660
-399
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* Node: Added `FT.CREATE` ([#2501](https://github.com/valkey-io/valkey-glide/pull/2501))
3131
* Node: Added `FT.INFO` ([#2540](https://github.com/valkey-io/valkey-glide/pull/2540))
3232
* Node: Added `FT.AGGREGATE` ([#2554](https://github.com/valkey-io/valkey-glide/pull/2554))
33+
* Node: Added `FT.PROFILE` ([#2633](https://github.com/valkey-io/valkey-glide/pull/2633))
3334
* Java: Added `JSON.DEBUG` ([#2520](https://github.com/valkey-io/valkey-glide/pull/2520))
3435
* Java: Added `JSON.ARRINSERT` and `JSON.ARRLEN` ([#2476](https://github.com/valkey-io/valkey-glide/pull/2476))
3536
* Java: Added `JSON.ARRINDEX` ([#2546](https://github.com/valkey-io/valkey-glide/pull/2546))

glide-core/src/client/value_conversion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,8 +1132,8 @@ pub(crate) fn convert_to_expected_type(
11321132
let res = vec![
11331133
convert_to_expected_type(array.remove(0), *type_of_query)?,
11341134
convert_to_expected_type(array.remove(0), Some(ExpectedReturnType::Map {
1135-
key_type: &None,
1136-
value_type: &None,
1135+
key_type: &Some(ExpectedReturnType::SimpleString),
1136+
value_type: &Some(ExpectedReturnType::Double),
11371137
}))?];
11381138

11391139
Ok(Value::Array(res))

node/npm/glide/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ function initialize() {
136136
FtAggregateSortBy,
137137
FtAggregateSortProperty,
138138
FtAggregateApply,
139+
FtAggregateReturnType,
139140
FtSearchReturnType,
141+
FtProfileOtions,
140142
GlideRecord,
141143
GlideString,
142144
JsonGetOptions,
@@ -268,7 +270,9 @@ function initialize() {
268270
FtAggregateSortBy,
269271
FtAggregateSortProperty,
270272
FtAggregateApply,
273+
FtAggregateReturnType,
271274
FtSearchReturnType,
275+
FtProfileOtions,
272276
GlideRecord,
273277
GlideJson,
274278
GlideString,

0 commit comments

Comments
 (0)