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] [Connector-V2] Sync TDEngine to Doris,Doesn't support TDENGINE type 'NCHAR' yet. #8405

Closed
2 of 3 tasks
HelloJack0 opened this issue Dec 30, 2024 · 0 comments · Fixed by #8411
Closed
2 of 3 tasks
Assignees
Labels

Comments

@HelloJack0
Copy link

HelloJack0 commented Dec 30, 2024

Search before asking

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

What happened

Sync TDEngine to Doris,Error:Doesn't support TDENGINE type 'NCHAR' yet.

image

SeaTunnel Version

SeaTunnel Version
2.3.8

SeaTunnel Config

env {
    parallelism = 1
    job.mode = "STREAMING"
    checkpoint.interval = 60000
}

source {
    TDengine {
        url : "jdbc:TAOS-RS://192.168.1.239:6041/"
        username : "it"
        password : "123456"
        database : "TEST_cloud"
        stable : "sys_coldata"
        lower_bound : "2024-01-03 10:38:05.000"
        upper_bound : "2024-12-30 15:00:00.800"
        plugin_output = "tdengine_result"
    }

}

sink {
    Doris {
        fenodes = "192.168.1.91:8030"
        username = root
        password = ${DORIS_ROOT_PWD}
        database = TEST
        table = "${table_name}_cloud"
        sink.label-prefix = "cloud"
        sink.enable-2pc = "false"
        sink.enable-delete = "true"
        doris.config {
            format = "json"
            read_json_by_line = "true"
        }
    }
}

Running Command

./bin/seatunnel.sh --config job/td-jdbc-doris --async -n td-test

Error Exception

Exception in thread "main" org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel job executed failed
        at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:213)
        at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
        at org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
Caused by: org.apache.seatunnel.connectors.seatunnel.tdengine.exception.TDengineConnectorException: ErrorCode:[COMMON-07], ErrorDescription:[Unsupported data type] - Doesn't support TDENGINE type 'NCHAR' yet.
        at org.apache.seatunnel.connectors.seatunnel.tdengine.typemapper.TDengineTypeMapper.mapping(TDengineTypeMapper.java:150)
        at org.apache.seatunnel.connectors.seatunnel.tdengine.source.TDengineSource.getStableMetadata(TDengineSource.java:156)
        at org.apache.seatunnel.connectors.seatunnel.tdengine.source.TDengineSource.prepare(TDengineSource.java:93)
        at org.apache.seatunnel.engine.core.parse.JobConfigParser.parseSource(JobConfigParser.java:83)
        at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:370)
        at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:209)
        at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:114)
        at org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:182)
        at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:160)
        ... 2 more

Zeta or Flink or Spark Version

Zeta

Java or Scala Version

No response

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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

Successfully merging a pull request may close this issue.

2 participants