Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4089

Make JSON pretty printing configurable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.4.0
    • None
    • None

    Description

      Currently JSON record writer emits records pretty-printed and there is no way to configure this behavior. This issue proposes to make this configurable via a prettyPrint switch in storage execution configuration with default value of true to ensure backward compatibility.

      As a guideline, the following should be used to dictate Drill to emit records in JSON.

      alter [session|sytem] set `store.format`='json';
      

      and this new switch should be used to turn off pretty printing:

      alter [session|sytem] set `store.json.writer.uglify`=true;
      

      By default, Drill will use system dependent line feed to seperate JSON blobs when pretty printing turned off.

      Attachments

        Activity

          People

            hgunes Hanifi Gunes
            hgunes Hanifi Gunes
            Khurram Faraaz Khurram Faraaz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: