--server {servername}:{port} \
--catalog cassandra --schema {demo} --user admin \
--execute "SELECT * from users" \
--output-format CSV > result.csv
but it is not working giving "mismatched input ''. Expecting: " error
--server {servername}:{port} \
--catalog cassandra --schema {demo} --user admin \
--execute "SELECT * from users" \
--output-format CSV > result.csv
but it is not working giving "mismatched input ''. Expecting: " error
The issue here appears to be related to special characters and quoting. I have changed a couple things in your CLI command below:
With all three in place the query should run and export properly. From there, remove parts as necessary to find the one or many that was causing the error.
--server {servername}:{port} \
--catalog cassandra --schema "{demo}" --user admin \
--execute 'SELECT * from "users"' \
--output-format CSV > result.csv