StarRocks3.2.3/3.2.4版本JDBCCatalog连接PostgreSQL数据库错误

StarRocks3.2.3/3.2.4版本JDBCCatalog连接PostgreSQL数据库错误
报错信息如下:
SQL 错误 [1064] [42000]: open JDBCScanner failed, error: org.postgresql.util.PSQLException: ERROR: syntax error at or near “`”
Position: 111
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2713)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2401)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:368)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:498)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:415)
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:190)
at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:134)
at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
at com.starrocks.jdbcbridge.JDBCScanner.open(JDBCScanner.java:93)

open JDBCScanner failed, error: org.postgresql.util.PSQLException: ERROR: syntax error at or near “`” 这个看着是中英文符号的问题? 方便发下创建连接的语句吗 大概率是SQL 查询语句包含了 PostgreSQL 不支持的特定语法或语法结构 这个可以再check下

创建Catalog的语句:
CREATE EXTERNAL CATALOG rasesql_common_fast_db
COMMENT ‘common2_fast_db’
PROPERTIES
(
“type”=“jdbc”,
“user”="${USER}",
“password”="${PASSWORD}",
“jdbc_uri”=“jdbc:postgresql://${JDBC_URI}”,
“driver_url”=“file:///opt/starrocks/drivers/postgresql-42.6.0.jar”,
“driver_class”=“org.postgresql.Driver”
);

查询语句:
select *
from rasesql_common_fast_db.public.broker_info
where 1=1

反引号应该是MySQL里面的保留字符,不知道为什么会被用到PostgreSQL中

我也遇到了同样的问题 貌似还没有解决呢

不做等值判断 也查询报错吗

您是什么版本 可以发下具体的报错返回 我跟进下