Skip to content

Instantly share code, notes, and snippets.

View spark2ignite's full-sized avatar

Vadim Solovey spark2ignite

View GitHub Profile
package main
import (
"context"
"fmt"
"os"
"cloud.google.com/go/bigquery"
)
@igrigorik
igrigorik / json-bq-schema-generator.rb
Last active November 3, 2022 17:34
BigQuery JSON schema generator
require 'open-uri'
require 'zlib'
require 'yajl'
# References
# - https://developers.google.com/bigquery/preparing-data-for-bigquery#dataformats
# - https://developers.google.com/bigquery/docs/data#nested
#
def type(t)