Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10930

Use dense encoding for BigQuery JSON API interactions

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • Missing
    • io-java-gcp
    • None

    Description

      Did a quick audit of java BigQueryIO, which leverages the underlying discovery client for the HTTP interactions with the BigQuery service.

       

      By default, interactions with BigQuery will use pretty-printed JSON responses which may include significant whitespace due to the complexity inherent in the BigQuery JSON response structure.  This whitespace is all unnecessary for programmatic interactions, and interactions should use dense encoding as JSON is whitespace agnostic.

      Information about the system parameters can be found at the below URL.  In particular, the prettyPrint parameter governs dense-vs-pretty JSON representation.

      https://cloud.google.com/apis/docs/system-parameters

       

      I already have a fix for this issue in progress, creating this issue in order to submit the PR for review.

       

      Attachments

        Issue Links

          Activity

            People

              shollyman Seth Hollyman
              shollyman Seth Hollyman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h