datastax / dsbulk

DataStax Bulk Loader (DSBulk) is an open-source, Apache-licensed, unified tool for loading into and unloading from Apache Cassandra(R), DataStax Astra and DataStax Enterprise (DSE)
Apache License 2.0
85 stars 30 forks source link

Escape character when unloading #487

Open ustndagsemih opened 1 year ago

ustndagsemih commented 1 year ago

Hello, I am trying to unload a keyspace table.

When using cqlsh to export the table, I have the following output:

111111111,200,0,"{1: 505, 2: 504, 3: 1023, 4: 506, 5: 507, 6: 502, 7: 506, 8: 465, 9: 328, 10: 376, 11: 496, 12: 344, 13: 504, 14: 162, 15: 120}"

However when using dsbulk to export, I am getting the following: 222222222,"{\"1\":505,\"2\":504,\"3\":1023,\"4\":505,\"5\":504,\"6\":504,\"7\":506,\"8\":504,\"9\":448,\"10\":232,\"11\":296,\"12\":448}",70,0

There is an escape option but it is only supported when loading data. When unloading, how can I handle this situation?