jest-dynalite icon indicating copy to clipboard operation
jest-dynalite copied to clipboard

partiQL Support?

Open mikewolfd opened this issue 2 years ago • 4 comments

Hello,

Does this package support running queries using the partiQL statement execution syntax? I'm trying to do it now but am running into UnknownOperationException errors.

mikewolfd avatar Dec 02 '21 22:12 mikewolfd

It could be that partiQL is generating a query which is not supported? For example transactions are not yet supported by dynalite, nor are streams.

freshollie avatar Dec 04 '21 11:12 freshollie

@mikewolfd it's been a while since this was opened, but do you happen to remember if you were able to get around it?

I just hit this issue, not sure what would be incorrect about the PartiQL statement I'm trying to run as a dummy test...

const statement = {
  Statement: `SELECT * FROM "MyTableName" WHERE id='${someId}' AND typeId='${someTypeId}'`
};
await ddb.executeStatement(statement).promise();

The same type of select statement works just fine from the AWS console. I've tried every which way I can think of to change single vs. double quotes, no quotes, etc. but still get an UnknownOperationException when running the executeStatement in a test.

Just updated to latest [email protected] and [email protected]

Jack-Barry avatar Feb 15 '23 21:02 Jack-Barry

@Jack-Barry Did you find a way to work around? I'm at your situation now.

khoaleanhvn avatar Nov 17 '23 11:11 khoaleanhvn

@khoaleanhvn I never did, ended up punting on using PartiQL, partly because of this issue

Jack-Barry avatar Nov 17 '23 16:11 Jack-Barry