Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Casting date to timestamp fails #114

Open
seibs opened this issue Feb 4, 2022 · 0 comments
Open

Casting date to timestamp fails #114

seibs opened this issue Feb 4, 2022 · 0 comments

Comments

@seibs
Copy link
Contributor

seibs commented Feb 4, 2022

Casting from date to timestamp results in TypeError: BigQuery does not support timestamps with timezones.

It looks like Ibis defaults to casting a date to UTC:

>>> ibis.table(ibis.schema([('date', 'date')]))['date'].cast('timestamp')
UnboundTable[r0, name=unbound_table_2]
  date date

cast(date, timestamp('UTC')): timestamp('UTC') = Cast
  date: date = r0.date
  to:
    timestamp('UTC')
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant