mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 11:22:01 +00:00
Implementing json2sstable functionality. It allows generating an sstable from a JSON description of its content. Uses identical schema to dump-data, so it is possible to regenerate an existing sstable, by feeding the output of dump-data to write. Most of the scylla storage engine features are supported. The only non-supported features are counters and non-strictly atomic data types (including frozen collections, tuples and UDTs). Example invocation: ``` scylla sstable write --system-schema system_schema.columns --input-file ./input.json --generation 0 ``` Refs: https://github.com/scylladb/scylladb/issues/9681 Future plans: * Complete support for remaining features (counters and non-atomic types). * Make sstable format configurable on the command line. Closes #11181 * github.com:scylladb/scylladb: test/cql-pytest: test_tools.py: add test for sstable write test/cql-pytest: test-tools.py actually test with multiple sstables test/cql-pytest: test_tools.py: reduce the number of test-cases tools/scylla-sstable: introduce the write operation tools/scylla-sstable: add support for writer operations tools/scylla-sstable: dump-data: write bound-weight as int tools/scylla-sstable: dump-data: always write deletion time for cell tombstones tools/scylla-sstable: dump-data: add timezone to deletion_time types: publish timestamp_from_string()