Copying Data into Cassandra table -


can import/copy multiple files acassandra table having same column name in table , in files?

copy table1(timestamp ,temp ,total_load ,designl) 'file1', 'file2' header = 'true';

i tried using above syntax: saying improper copy command.

i mean to suppose have 100's of delimiter files same columns, , want load files single cassandra table using single cql query?

is possible:?

when tried using each copy command each file table on writing data?

please me!

you can specify more tables following synax:

copy table1("timestamp", temp, total_load, designl) 'file1, file2' header = 'true'; 

or can use wildcards:

copy table1("timestamp", temp, total_load, designl) 'folder/*.csv' header = 'true'; 

two remarks however:

  • timestamp type name in cassandra, if column has name, need quote did in example above.
  • if data overwritten when executing several copy commands, overwritten if execute single copy command. if have several lines same primary key, last row win.

Comments

Popular posts from this blog

Android volley - avoid multiple requests of the same kind to the server? -

magento2 - Magento 2 admin grid add filter to collection -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -