Skip to content

[cloud/v3] Casting BIGINT to TIMESTAMP doesn't seem to work anymore #24581

@Notilarie

Description

@Notilarie

Steps to reproduce:
List the minimal actions needed to reproduce the behaviour.

  1. Open data explore on InfluxDB Cloud
  2. Execute the folowing query: SELECT 1705590600000000000::TIMESTAMP

Expected behaviour:
I would expect a timestamp

Actual behaviour:
An exception is thrown:
Error while planning query: Optimizer rule 'simplify_expressions' failed
caused by
Arrow error: Compute error: Overflow happened on: 1705590600000000000 * 1000000000: rpc error: code = InvalidArgument desc = Error while planning query: Optimizer rule 'simplify_expressions' failed
caused by
Arrow error: Compute error: Overflow happened on: 1705590600000000000 * 1000000000

Environment info:

  • InfluxDB Cloud

As workaround I use the following query:
SELECT 1705590600000000000::BIGINT UNSIGNED::TIMESTAMP

On older versions of InfluxDB, unsigned big ints are not allowed to cast to timestamp

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions