Skip to content

Commit 46f9351

Browse files
authored
FT.EXPLAINCLI intentionally raising NotImplementedError (#1705)
1 parent c8cb715 commit 46f9351

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

redis/commands/search/commands.py

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
ADDHASH_CMD = "FT.ADDHASH"
1818
DROP_CMD = "FT.DROP"
1919
EXPLAIN_CMD = "FT.EXPLAIN"
20+
EXPLAINCLI_CMD = "FT.EXPLAINCLI"
2021
DEL_CMD = "FT.DEL"
2122
AGGREGATE_CMD = "FT.AGGREGATE"
2223
CURSOR_CMD = "FT.CURSOR"
@@ -376,6 +377,9 @@ def explain(self, query):
376377
args, query_text = self._mk_query_args(query)
377378
return self.execute_command(EXPLAIN_CMD, *args)
378379

380+
def explain_cli(self, query): # noqa
381+
raise NotImplementedError("EXPLAINCLI will not be implemented.")
382+
379383
def aggregate(self, query):
380384
"""
381385
Issue an aggregation query

tests/test_search.py

+6
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,12 @@ def test_explain(client):
611611
assert res
612612

613613

614+
@pytest.mark.redismod
615+
def test_explaincli(client):
616+
with pytest.raises(NotImplementedError):
617+
client.ft().explain_cli("foo")
618+
619+
614620
@pytest.mark.redismod
615621
def test_summarize(client):
616622
createIndex(client.ft())

0 commit comments

Comments
 (0)