[BUG]Hive DESCRIBE 返回列数与 ColumnSchema 构造函数不匹配
@xuwei-fit2cloud ya está trabajando en esto.
Desde el 22/6/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
SQLBot Version
1.9.0
Run Mode
Is it running in a Docker container or running from source code?
running in a Docker container
Describe the bug
A clear and concise description of what the bug is.
连接 Hive(ArgoDB)数据源成功后,尝试获取数据表的字段信息时,后端报错:ColumnSchema.init() takes 4 positional arguments but 7 were given,导致无法查看和使用表结构。
To Reproduce
Steps to reproduce the behavior:
1.成功连接 Hive 数据源(通过额外配置传入密码参数后)
2.在数据源列表中点击该数据源
3.尝试展开数据表或同步表结构
4.页面报 ColumnSchema.init() takes 4 positional arguments but 7 were given
Expected behavior
A clear and concise description of what you expected to happen.
连接成功后,获取 Hive 数据源的表字段信息应能正常返回,不应因 DESCRIBE 命令返回额外的列而中断。
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Python backend will use DESCRIBE {table_name} SQL command to get Hive table fields(backend/apps/db/db_sql.py 第 320 行)
ArgoDB(Transwarp TDH)的 DESCRIBE 命令返回 7 列(包含分区信息等额外元数据)
ColumnSchema.init(backend/apps/datasource/models/datasource.py 第 160 行)只接受 3 个参数 (attr1, attr2, attr3)
backend/apps/db/db.py 第 508 行使用 ColumnSchema(*item) 解包整行传入,导致参数数量不匹配抛出异常
仅 Hive 数据源受影响,其他数据库类型的字段获取逻辑正常
- Lenguaje dominante
- JavaScript
- Estrellas
- 6.8k
- Forks
- 882
- Merge medio
- 4 h 41 min
- PR fusionados (30 d)
- 35
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dataease/SQLBot
-
SQLBot AbiertoFeedback required
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
[FEATURE] 语言支持泰语 AbiertoDone feature
-
[BUG]导入表头字段不能太长,有字段长度限制,删减后能正常导入 Abiertobug Done
-
bug Done
-
Done feature
Todos los issues de dataease/SQLBot
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
avniproject/avni-client#2135 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
bevyengine/bevy-website#2595 ·
-
ecosystem wording
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
matrix-org/matrix.org#3649 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
vadimdemedes/ink#1029 ·