feat: support TDengine STable/TAGS and 3.0 syntax adaptation#463
Open
Guan-Meng-Yuan wants to merge 5 commits intodromara:mainfrom
Open
feat: support TDengine STable/TAGS and 3.0 syntax adaptation#463Guan-Meng-Yuan wants to merge 5 commits intodromara:mainfrom
Guan-Meng-Yuan wants to merge 5 commits intodromara:mainfrom
Conversation
added 5 commits
March 31, 2026 14:36
…tCatalog returns null
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
针对 TDengine 的数据模型(STable/TAGS)及 DDL 语法限制(3.0+)进行了全面的适配和优化:
1. 核心功能支持 (STable & TAGS)
TAGS子句。2. 字段类型与长度优化 (针对 3.0+ 语法)
TSDBMigrationEntityParser。针对INT,BIGINT,SMALLINT,TINYINT,FLOAT,DOUBLE,BOOL,TIMESTAMP等内置类型,去除了 DDL 中的显示宽度/长度参数(如不再输出INT(11))。boolean准确映射为 TDengine 的BOOL类型,而非 MySQL 风格的TINYINT(1)。replaceSqlTypeLength中增加了拦截逻辑,确保即使在实体上配置了length属性,对于上述固定长度类型也会自动过滤。3. DDL 迁移语法修正 (
TSDBDatabaseMigrationProvider)NULL/NOT NULL声明。addColumn:采用了符合 TDengine 规范的ADD COLUMN语法。renameColumn:适配了 TDengine 3.x 的RENAME COLUMN语法,替代了不兼容的CHANGE语法。4. 代码修正与清理
TSDBDatabaseConfiguration中的服务注册引用逻辑,清理了冗余引用(如 UUID),优化了代码质量。本 PR 提供的改动已在本地通过了 TDengine 3.x 环境的实测,能够确保表结构自动迁移的准确性和稳定性。