Skip to content

I cannot run a UNLOGGED batch #57

Open
@cecedille1

Description

@cecedille1

I try to execute a batch on a AWS Keyspace with scyllapy==1.3.3, but it fails because LOGGED batches are not supported on Keyspace. When I change the batch's type it does not work better.

from scyllapy import Scylla, InlineBatch, BatchType, Batch
sess = Scylla(['cassandra'])
await sess.startup()

batch  = InlineBatch(batch_type=BatchType.UNLOGGED)
batch.add_query('INSERT INTO spam (name, context) VALUES (?,?) ', ['foo', {'bar'}])
await sess.batch(batch

ScyllaPyDBError: Database returned an error: The query is syntactically correct but invalid, Error message: Only UNLOGGED Batches are supported at this time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions