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

sr使用jdbc外表的方式查询达梦数据库表,查询效率变慢 例如:select * from 表名 where 字段名 in (子查询) #45710

Open
Qinghan25 opened this issue May 16, 2024 · 0 comments
Labels
type/enhancement Make an enhancement to StarRocks

Comments

@Qinghan25
Copy link

Enhancement

--建立external 资源,
CREATE EXTERNAL RESOURCE EXTjdbcdm4
PROPERTIES (
"type" = "jdbc",
"user" = "XXX",
"password" = "XXXX",
"jdbc_uri" = "jdbc:dm://XXXX:5236/XXX",
"driver_url" = "file:///home/rim/DmJdbcDriver18-8.1.1.193.jar",
"driver_class" = "dm.jdbc.driver.DmDriver"
);
建立外表:
create external table jdbc_tbl7(
INDI_ID VARCHAR(20) NULL,
INDI_NAME VARCHAR(255) NULL,
CLASSIFY_ID VARCHAR(20) NULL,
INDI_COMMENT VARCHAR(255) NULL,
INDI_TYPE VARCHAR(20) NULL,
INCLUDE_CHILD VARCHAR(2) NULL
)
ENGINE=jdbc
PROPERTIES (
"resource" = "EXTjdbcdm4",
"table" = "XXXXX.xxxI"
);

@Qinghan25 Qinghan25 added the type/enhancement Make an enhancement to StarRocks label May 16, 2024
@Qinghan25 Qinghan25 changed the title sr使用jdbc外表的方式查询达梦数据库表,查询效率变慢 sr使用jdbc外表的方式查询达梦数据库表,查询效率变慢 例如:select * from 表名 where 字段名 in (子查询) May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Make an enhancement to StarRocks
Projects
None yet
Development

No branches or pull requests

1 participant