Skip to content

[Bug] [SQL] NOW()函数调用的时间异常 #9439

Open
@304792747

Description

@304792747

Search before asking

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

What happened

在transform中的sql插件里使用 now()函数调用到的时候不是当前服务器的时间,而是 UTC 时间。这个很影响使用

SeaTunnel Version

2.3.11

SeaTunnel Config

"transform": [
        {
            "query": "select *, now() sync_datetime from dual",
            "plugin_name": "Sql"
        } 
    ],

Running Command

nohup sh ./bin/seatunnel-cluster.sh 2>&1 &

Error Exception

Zeta or Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

Image
左边是同步来的时间,右边是本地时间,
原因就是少了时区 8 小时

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions