mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-23 20:26:15 +00:00
fix(datasource): Correct the import path for StarRocks dialect (#2456)
# Description fix https://github.com/eosphoros-ai/DB-GPT/issues/2453 Version 0.7.0 changes the code package structure, and the path to register the database dialect changes and needs to be changed # How Has This Been Tested? make fmt make mypy make test # Snapshots:  # Checklist: - [x ] My code follows the style guidelines of this project - [x] I have already rebased the commits and make the commit message conform to the project standard. - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] Any dependent changes have been merged and published in downstream modules
This commit is contained in:
commit
a115c57faa
@ -18,6 +18,6 @@ from sqlalchemy.dialects import registry
|
||||
|
||||
registry.register(
|
||||
"starrocks",
|
||||
"dbgpt.datasource.rdbms.dialect.starrocks.sqlalchemy.dialect",
|
||||
"dbgpt_ext.datasource.rdbms.dialect.starrocks.sqlalchemy.dialect",
|
||||
"StarRocksDialect",
|
||||
)
|
||||
|
@ -20,7 +20,7 @@ from sqlalchemy import exc, log, text
|
||||
from sqlalchemy.dialects.mysql.pymysql import MySQLDialect_pymysql
|
||||
from sqlalchemy.engine import Connection
|
||||
|
||||
from dbgpt.datasource.rdbms.dialect.starrocks.sqlalchemy import datatype
|
||||
from dbgpt_ext.datasource.rdbms.dialect.starrocks.sqlalchemy import datatype
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user