[ 
https://issues.apache.org/jira/browse/CASSANDRA-18920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17774151#comment-17774151
 ] 

Geoff Lay commented on CASSANDRA-18920:
---------------------------------------

I was looking at the latest documentation.
[https://cassandra.apache.org/doc/latest/cassandra/tools/sstable/sstabledump.html]

It appears the documentation is incorrect.  If it is agreed the documentation 
is incorrect, then this item can be closed as already implemented.  And 
replaced with an update documentation ticket.

"Use the -l option to dump each row as a separate JSON object. This will make 
the output easier to manipulate for large data sets. ref: 
issues.apache.org/jira/browse/CASSANDRA-13848


{code:json}
[
  {
    "partition" : {
      "key" : [ "3578d7de-c60d-4599-aefb-3f22a07b2bc6" ],
      "position" : 0
    },
    "rows" : [
      {
{code}

"




 

> Add jsonl support to sstabledump
> --------------------------------
>
>                 Key: CASSANDRA-18920
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18920
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Legacy/Tools
>            Reporter: Geoff Lay
>            Assignee: Geoff Lay
>            Priority: Low
>             Fix For: 5.x
>
>
> Add a new option to sstabledump to allow the generation of jsonl format.
> The -l option for sstabledump does not produce valid jsonl.
> [https://jsonlines.org/validator/]
> Valid jsonl removes whitespace, including newlines, to make the format 
> compact.  
> By adding an option to generate valid jsonl, jsonl can be generated that is 
> smaller.
> Smaller output is better for execution time, storage, and transport. 
> jsonl also allows the splitting of a file for processing at a known good line 
> for processing without parsing the file, as each row is a line.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to