Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowflake ID execution in ekuiper will lose precision #3441

Open
echils opened this issue Dec 12, 2024 · 2 comments
Open

Snowflake ID execution in ekuiper will lose precision #3441

echils opened this issue Dec 12, 2024 · 2 comments
Assignees

Comments

@echils
Copy link

echils commented Dec 12, 2024

Snowflake ID execution in ekuiper will lose precision

Environment:

  • eKuiper version (e.g. 1.3.0): 1.14.0
  • Hardware configuration (e.g. lscpu): x86_64
  • OS (e.g. cat /etc/os-release): Debian GNU/Linux
  • Others:

What happened and what you expected to happen:

fix it please!

How to reproduce it (as minimally and precisely as possible):

Enter a snowflake ID in the data source

Anything else we need to know?:

@ngjaying
Copy link
Collaborator

@echils Thanks for rasing this up. We are willing to fix any problems, but before that, we need to know the problem. How to reproduce it. I am not sure this one line explanation can help or not.

@echils
Copy link
Author

echils commented Dec 12, 2024

My use case @ngjaying

  1. Create a kafka source named root ,the sample data structures are shown below
    {
      "createTime": "2024-12-12T14:34:37.516Z",
      "data": {
          "abnormal": false,
          "data": [
          {
              "field": "unit",
              "tag": false,
              "value": "m/s"
          }
          ],
          "definitionId": 1795292668348461056,
          "time": "2024-12-12 14:34:37",
          "value": 0
      },
      "definitionId": 1795292668348461056,
      "messageId": "schedule-1867095692340801536",
      "msg": null,
      "status": 200
    }
  1. Create a simple rule
 select data.definitionId from root
  1. Create a mqtt sink
  2. The mqtt result has lost accuracy
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants