1

I'm trying to execute multiples commands with cqlSession inside spark, but the commands is very slow and didn't respect the order and fail to create the table. i need to wait delete to create a new table.

delete:

connector.withSessionDo(cqlSession => cqlSession.execute("DROP TABLE IF EXISTS person"))

create:

connector.withSessionDo(cqlSession => cqlSession.execute("CREATE TABLE IF EXISTS person(id text)"))
Autumn88
  • 351
  • 1
  • 11
Alan Miranda
  • 125
  • 1
  • 8
  • Can you include some minimal code sample which replicates the issue? Cheers! – Erick Ramirez Jun 01 '22 at 04:32
  • delete and create are in methods exactly as code above. I call fisrt delete() after create(). – Alan Miranda Jun 01 '22 at 13:48
  • 2
    @AlanMiranda Amazon Keyspaces performs ddl operations asynchronously. https://docs.aws.amazon.com/keyspaces/latest/devguide/functional-differences.html#functional-differences.table-keyspace-management – MikeJPR Jun 01 '22 at 16:56

0 Answers0