Preetham created ASTERIXDB-3430:
-----------------------------------

             Summary: Log schema as a one-liner JSON
                 Key: ASTERIXDB-3430
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3430
             Project: Apache AsterixDB
          Issue Type: Task
          Components: *DB - AsterixDB
            Reporter: Preetham


Currently, the schema is logged as follows:
{noformat} root
|-- sensor_id (0): bigint <level: 1, index: 0>
|-- report_time (1): bigint <level: 1, index: 1>
|-- sensor_info (2): object <level: 1>
|    |-- location (3): array <level: 2>
|    |    |-- item: double <level: 3, index: 2>
|    |-- firmware_version (4): bigint <level: 2, index: 3>
|    |-- name (5): string <level: 2, index: 4>
|    |-- battery_status (6): double <level: 2, index: 5>
|    |-- connection_status (7): double <level: 2, index: 6>
|-- readings (8): array <level: 1>
|    |-- item: object <level: 2>
|    |    |-- timestamp (9): bigint <level: 3, index: 7>
|    |    |-- temp (10): bigint <level: 3, index: 8> {noformat}
Although it is more human-friendly, the multilines of the schemas can make the 
log file hard to manipulate. We should log the schema as one-liner JSON.



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

Reply via email to