{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "MergeJsonOutput",
"description": "JSON output for merge command",
"type": "object",
"properties": {
"dialect": {
"type": "string"
},
"dry_run": {
"type": "boolean"
},
"input_dir": {
"type": "string"
},
"options": {
"$ref": "#/$defs/MergeOptions"
},
"output_file": {
"type": ["string", "null"]
},
"statistics": {
"$ref": "#/$defs/MergeStatistics"
},
"tables": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"input_dir",
"dialect",
"dry_run",
"statistics",
"tables",
"options"
],
"$defs": {
"MergeOptions": {
"type": "object",
"properties": {
"header": {
"type": "boolean"
},
"transaction": {
"type": "boolean"
}
},
"required": ["transaction", "header"]
},
"MergeStatistics": {
"type": "object",
"properties": {
"bytes_written": {
"type": "integer",
"minimum": 0
},
"elapsed_secs": {
"type": "number"
},
"tables_merged": {
"type": "integer",
"minimum": 0
},
"throughput_kb_per_sec": {
"type": ["number", "null"]
}
},
"required": ["tables_merged", "bytes_written", "elapsed_secs"]
}
}
}