lf-edge / ekuiper

Lightweight data stream processing engine for IoT edge

Home Page:https://ekuiper.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

date_calc function not support in the second argument duration like "10h"

MhamedHr opened this issue · comments

Environment:

  • eKuiper version (e.g. 1.3.0): ekuiper:1.11.4
  • Hardware configuration (e.g. lscpu):
  • OS (e.g. cat /etc/os-release): Ubunutu[WSL]
  • Others:

What happened and what you expected to happen:
I can't create rule using date_calc(date, duration) function

How to reproduce it (as minimally and precisely as possible):
When i create rule based in this formula : date_calc(varDate, "10h2m") => varDate de type datetime

Anything else we need to know?:

@MhamedHr
Could you provide the rule, input data, actual output result and expected result.

commented

@MhamedHr Could you provide some more information? When I ran unit tests with your input arguments, there were no errors and the result was as expected.

Hello @yai-dev, @Yisaer,
I had the same error too using eKuiper 1.11.4

image

commented

@younes199511 @MhamedHr Hi there, I has founded why and create new PR to fix it.