Export Table Contents to files on crate node machines.
COPY table_ident TO { output_uri }
[ WITH ( copy_parameter [= value] [, ... ] ) ]
Copy the contents of a table to one or many files on any cluster node containing data from the given table.
Note
Output files will always be stored on the cluster node machines, not on the client machine.
The created files are JSON formatted and contain one table row per line.
table_ident: | The name (optionally schema-qualified) of the table to be exported. |
---|
The output_uri can be any expression evaluating to a string. The resulting string should be a valid URI of one of the supporting schemes:
- file://
If no scheme is given (e.g.: ‘/path/to/file’) the default uri-scheme file:// will be used.
The optional WITH clause can specify parameters for the copy statement.
[ WITH ( copy_parameter [= value] [, ... ] ) ]
Possible copy_parameters are: