Package

com.spotify.scio.bigquery

types

Permalink

package types

Visibility
  1. Public
  2. All

Type Members

  1. class BigQueryType[T] extends AnyRef

    Permalink

    Type class for case class T annotated for BigQuery IO.

    Type class for case class T annotated for BigQuery IO.

    This decouples generated fields and methods from macro expansion to keep core macro free.

Value Members

  1. object BigQueryType

    Permalink

    Macro annotations and converter generators for BigQuery types.

    Macro annotations and converter generators for BigQuery types.

    The following table lists each legacy SQL data type, its standard SQL equivalent and Scala type.

    Legacy SQL      Standard SQL    Scala type
    BOOLEAN         BOOL            Boolean
    INTEGER         INT64           Long, Int
    FLOAT           FLOAT64         Double, Float
    STRING          STRING          String
    BYTES           BYTES           com.google.protobuf.ByteString, Array[Byte]
    RECORD          STRUCT          Nested case class
    REPEATED        ARRAY           List[T]
    TIMESTAMP       TIMESTAMP       org.joda.time.Instant
    DATE            DATE            org.joda.time.LocalDate
    TIME            TIME            org.joda.time.LocalTime
    DATETIME        DATETIME        org.joda.time.LocalDateTime
  2. object SchemaUtil

    Permalink

    Utility for BigQuery schemas.

Ungrouped