tolbertam / sstable-tools

Tools for parsing, creating and doing other fun stuff with sstables
Apache License 2.0
162 stars 31 forks source link

Could not import schema error #72

Open sedulam opened 5 years ago

sedulam commented 5 years ago

I'm trying to import a simple schema into cqlsh but I'm getting the error:

cqlsh> schema /home/pedro/software/schema.cql
Could not import schema from '/home/pedro/software/schema.cql': line 4:0 mismatched input 'CREATE' expecting EOF (...  AND durable_writes = true;[CREATE]...).

I generated this schema file with "cqlsh -e "describe schema". I'm attaching it to this issue. schema.txt

clohfink commented 5 years ago

Just include the create statement for the table of the sstable your reading, not the entire schema.