Skip to content

[Bug]--database parameters are not specified,When you dynamically monitor a new table, a null database is created #598

@wthub

Description

@wthub

Search before asking

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

Version

flink1.15.2
flink-doris-connector-1.15-25.1.0.jar

What's Wrong?

not specified --database
but --single-sink true
Create a new table in the upstream source database,The logs are as follows:

INFO org.apache.doris.flink.sink.schema.SchemaChangeManager [] - Execute SQL: CREATE TABLE IF NOT EXISTS null.t_test(id BIGINT COMMENT '' ) UNIQUE KEY(id) DISTRIBUTED BY HASH(id) BUCKETS AUTO PROPERTIES ('replication_num'='1','light_schema_change'='true')
INFO org.apache.doris.flink.sink.writer.serializer.jsondebezium.JsonDebeziumSchemaChangeImplV2 [] - create table ddl status: true, add tableMapping live_test.t_test,null.t_test

What You Expected?

Dynamically added tables are written to the corresponding downstream databases

How to Reproduce?

not specified --database
but --single-sink true
Create a new table in the upstream source database

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions