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

[Bug] [taier-ui] 同步任务使用变量报 task params content can not be null #1154

Open
2 of 3 tasks
caiyuyux opened this issue Feb 27, 2024 · 0 comments
Open
2 of 3 tasks
Assignees
Labels
bug Something isn't working

Comments

@caiyuyux
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

1.4.0 版本

场景一

同步任务向导模式,配置了系统变量,点击转化成脚本模式报异常

image

场景二

同步任务脚本模式,脚本中存在系统变量,任务保存失败

image

What you expected to happen

任务保存成功或脚本转化成功

How to reproduce

# 示例脚本
{
  "job": {
    "content": [
      {
        "reader": {
          "parameter": {
            "url": "xxx",
            "fetchSize": 1000,
            "collectionName": "AlarmType",
            "filter": "{tenantId:'system'}",
            "column": [
              {
                "name": "_id",
                "type": "string"
              },
              {
                "name": "notificationMode",
                "type": "string",
                "value": "${bdp.system.cyctime}"
              }
            ]
          },
          "name": "mongodbreader"
        },
        "writer": {
          "parameter": {
            "mode": "update",
            "postSql": [],
            "password": "xxx",
            "uniqueKey": [
              "id"
            ],
            "column": [
              {
                "name": "id",
                "type": "string"
              },
              {
                "name": "notificationMode",
                "type": "string"
              }
            ],
            "connection": [
              {
                "jdbcUrl": "xxxx",
                "table": [
                  "alarm_type"
                ]
              }
            ],
            "username": "root"
          },
          "name": "mysqlwriter"
        }
      }
    ]
  }
}

Anything else

No response

Version

v1.4

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@caiyuyux caiyuyux added the bug Something isn't working label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants