Skip to content

bug: ibis.now() has the wrong dtype on BigQuery backend #11768

@ajmarks

Description

@ajmarks

What happened?

ibis.now() is typed as a Timestamp without timezone, but the BigQuery backend renders it as CURRENT_TIMESTAMP(), which as its name indicates, returns a BigQuery TIMESTAMP (datetime with timezone) value.

Instead, it should render as CURRENT_DATETIME().

What version of ibis are you using?

10.7.0

What backend(s) are you using, if any?

BigQuery

Relevant log output

>>> bq_backend.execute(ibis.now().cast("string"))
'2025-11-19 20:47:00.004082+00'
>>> duck_db_backend.execute(ibis.now().cast("string"))
'2025-11-19 20:53:00.07'

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior inside of ibis

    Type

    No type

    Projects

    Status

    backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions