Skip to content

Support both seconds from epoch and timestamp string #1382

Closed

Description

@dhermes

If someone already has a timestamp string, we shouldn't force them to convert it to datetime.datetime so that we can in turn convert that into seconds. (Inspired by #1381.)

From the docs

TIMESTAMP data types can be described in two ways: UNIX timestamps or calendar datetimes. BigQuery stores TIMESTAMP data internally as a UNIX timestamp with microsecond precision.

so we could allow the user to just pass a string and we "take their word for it" that it's a valid datetime. Since Table.insert_data returns a list of errors anyhow, we wouldn't have to do much/anything to enforce this.

Activity

  1. added
    api: bigquery
    on Jan 12, 2016
  2. added
    type: feature request
    on Sep 6, 2016
  3. added a commit that references this issue on May 6, 2017
    ef76615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigquerytype: feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions