Weird behavior on cqlsh while creating table in cassandra from putty -


i trying create 1 table in cassandra using cqlsh having following syntax.

create table usertracking (           cwc text,           cur_visit_id text,           cur_visit_datetime timestamp,           cur_visit_last_ts bigint,           prev_visit_datetime timestamp,           prev_visit_last_ts bigint,           tot_page_view bigint,           tot_time_spent bigint,           tot_visit_count bigint,           primary key (cwc)         ); 

but reason when paste syntax on cqlsh automatically converted following syntax. can please explain behavior. using putty connect cassandra cluster. running on ubuntu.

enter image description here

the problem copy pasting editor newline character @ end of every line.

write query in single line , copy , paste putty.

also if on *nix machine use terminal ssh rather using putty. have better text editing features putty


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -