Skip to content

[BUG] Error when invoke timestamp function with two time argument in calcite #3545

@xinyual

Description

@xinyual

What is the bug?
When call timestamp(time(12:00:00), time(12:00:00)) in calcite, we will get error

UnexpectedCallException: FunctionProperties.None is a null object and not meant to be accessed.

The reason is we don't convert time to timestamp implicitly like v2.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Enable calcite and disable fallback
  2. run source=XXX| eval timestamp= timestamp(time('12:00:00'), time('12:00:00')) | fields timestamp

What is the expected behavior?
Return the tomorrow 00:00:00 of current day. For example, today is '2024-12-15', it should return '2024-12-16 00:00:00'

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcalcitecalcite migration releated

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions