Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in complex arbitrary command #153

Closed
CacaoGatto opened this issue Jan 14, 2021 · 1 comment · May be fixed by #154
Closed

Error in complex arbitrary command #153

CacaoGatto opened this issue Jan 14, 2021 · 1 comment · May be fixed by #154

Comments

@CacaoGatto
Copy link

I want to test the performance of RedisGraph with memtier benchmark, and my input is:

memtier_benchmark --server 127.0.0.1 --port 6379 -n 1000 -c 1 -t 1 --hide-histogram --command="graph.query GRAPH1 \"MATCH (s:vertex)-[*6]->(t) WHERE id_in_graph(s)=__key__ RETURN count(t)\"" --key-maximum=100000 --distinct-client-seed --command-key-pattern G

and the benchmark raised an error:

error: key placeholder can't combined with other data

So I checked the source code:

            if (current_arg->data.length() != strlen(KEY_PLACEHOLDER)) {
                benchmark_error_log("error: key placeholder can't combined with other data\n");
                return false;
            }

Maybe my quoted command is treated as a whole parameter? And how to enable my command?
Thanks

@CacaoGatto
Copy link
Author

#154 solves this problem. Thanks @filipecosta90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant