Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

schema_from_json docs and samples #1069

Closed

Description

@tswast

The schema_from_json method is useful for loading a BigQuery schema file into the Python objects expected by our client library. There are several opportunities for Python code samples in the Using a BigQuery JSON schema file section of the docs describing that format:

  • You can write an existing table schema to a local file by entering the following command [Python code] (schema_to_json sample) -- bigquery_schema_file_from_table
  • The following command [Python code] loads data into a table using the schema definition in a JSON file -- bigquery_load_with_schema_file
  • The following command [Python code] creates an empty table in an existing dataset using the schema definition in a JSON file -- bigquery_create_table_with_schema_file

Activity

  1. added
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    samplesIssues that are directly related to samples.
    on Nov 17, 2021
  2. added
    type: docsImprovement to the documentation for an API.
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    samplesIssues that are directly related to samples.
    and removed
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    samplesIssues that are directly related to samples.
    on Nov 17, 2021
  3. tswast commented on Nov 17, 2021

    @tswast
    ContributorAuthor

    In addition, I think schema_from_json is missing a return type based on what I'm seeing in the docs.

  4. tswast commented on Nov 17, 2021

    @tswast
    ContributorAuthor

    @loferris Potential task for once you've finished the code samples at #778

  5. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    and removed
    type: docsImprovement to the documentation for an API.
    on Feb 14, 2022
  6. meredithslota commented on Jun 13, 2023

    @meredithslota
    Contributor

    With the merging of #1436 and #1439 I think this is fixed, but wanted to validate that the missing return type for schema_from_json is also fixed before closing. cc: @tswast

  7. tswast commented on Jun 13, 2023

    @tswast
    ContributorAuthor

    @leahecole fixed the missing return type in https://github.com/googleapis/python-bigquery/pull/1582/files

    Makes sense to me to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.samplesIssues that are directly related to samples.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions