Hi Chevaris,

Unfortunately, it is not possible to scape commas inside the arguments 
parameter when executing a function from gfsh.

Alberto
________________________________
From: evaristo.camar...@yahoo.es <evaristo.camar...@yahoo.es>
Sent: Saturday, May 22, 2021 2:52 PM
To: user@geode.apache.org <user@geode.apache.org>
Subject: How to escape comma on 'gfsh execute function with arguments'

Hi there,

I have a function that accepts multiple arguments (using an String[] to receive 
arguments)

For troubleshooting, it is quite interesting the ability to execute query via 
gfsh, using syntax that allows to build the arguments using a comma separated 
list of arguments. The problem is that first argument is an OQL query that can 
potentially contain also comma (for instance IN SET(value1,value2))

For example

gfsh>execute function --id="OQLOnPrimaryBuckets" --arguments="SELECT COUNT (*) 
FROM /LdapSubsData e WHERE ( e.map['attr1'] IN SET(22,23) ),activateLog" 
--region=/MyRegion

- First comma is part of the first argument (part of the OQL string)
- Second command used to separate 2 different arguments


My question is if there is any way to escape comma from inside an argument to 
distinguish the comma used to separate different arguments.

Thanks in advance,

/Chevaris

Reply via email to