Skip to content

[Bug] [pgsql] 配置自定义sql的时候,表名解析有误 #584

@codeAdun

Description

@codeAdun

Search before asking

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

What happened

数据源:pgsql ,配置的schema是 inter,不是默认的public

自动义:inter.表名,当自定义sql带前缀的时候 最终会解析成 inter.inter.表名,导致表名验证失败

Image

DataVines Version

DataVines Config

"sources": [
        {
            "plugin": "jdbc",
            "type": "source",
            "config": {
                "src_connector_type": "postgresql",
                "schema": "inter",
                "password": "******",
                "database": "inter",
                "driver": "org.postgresql.Driver",
                "user": "xxxx",
                "output_table": "mid_flt_price_ivs",
                "table": "inter.inter.mid_flt_price_ivs",
                "url": "jdbc:postgresql://xxx:5432/inter"
            }
        }
    ],

Running Command

Error Exception

1、加inter:com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: database "inter" does not exist

2、不加inter:sql解析错误

Engine Type

No response

Java Version

No response

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions