fix(chat): Normalize driver column keys (e.g. _u2.col → col) for chart/table binding

Backend:
- common/utils/data_format.py: normalize_qualified_sql_column_keys helpers
- apps/chat/curd/chat.py: format_json_list_data + get_chart_data_ds
- apps/chat/task/llm.py: persist normalized rows after SQL exec
- templates/sql_examples/Hive.yaml: JOIN / duplicate column alias note

Frontend — assets:
- src/assets/datasource/icon_hive.png
- src/assets/datasource/icon_sqlite.png

Frontend — i18n (datasource.form.file_path):
- src/i18n/en.json
- src/i18n/zh-CN.json
- src/i18n/zh-TW.json
- src/i18n/ko-KR.json

Frontend — datasource types:
- src/views/ds/js/ds-type.ts: haveSchema list (remove hive)
This commit is contained in:
yym
2026-05-08 11:53:08 +08:00
committed by ulleo
parent 1cf4f249ed
commit 5df4654ca2
7 changed files with 9 additions and 5 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

+2 -1
View File
@@ -395,7 +395,8 @@
"timeout": "Connection Timeout(second)",
"address": "Address",
"low_version": "Compatible with lower versions",
"ssl": "Enable SSL"
"ssl": "Enable SSL",
"file_path": "File Path"
},
"sync_fields": "Sync Fields",
"sync_fields_success": "Sync fields successfully",
+2 -1
View File
@@ -395,7 +395,8 @@
"timeout": "연결 시간 초과(초)",
"address": "주소",
"low_version": "낮은 버전 호환",
"ssl": "SSL 활성화"
"ssl": "SSL 활성화",
"file_path": "파일 경로"
},
"sync_fields": "동기화된 테이블 구조",
"sync_fields_success": "테이블 구조 동기화 성공",
+2 -1
View File
@@ -395,7 +395,8 @@
"timeout": "连接超时(秒)",
"address": "地址",
"low_version": "兼容低版本",
"ssl": "启用 SSL"
"ssl": "启用 SSL",
"file_path": "文件路径"
},
"sync_fields": "同步表结构",
"sync_fields_success": "同步表结构成功",
+2 -1
View File
@@ -395,7 +395,8 @@
"timeout": "連線逾時(秒)",
"address": "位址",
"low_version": "相容低版本",
"ssl": "啟用 SSL"
"ssl": "啟用 SSL",
"file_path": "文件路徑"
},
"sync_fields": "同步表結構",
"sync_fields_success": "同步表結構成功",
+1 -1
View File
@@ -49,4 +49,4 @@ export const dsTypeWithImg = [
{ name: 'Apache Hive', type: 'hive', img: hive_icon },
]
export const haveSchema = ['sqlServer', 'pg', 'oracle', 'dm', 'redshift', 'kingbase', 'hive']
export const haveSchema = ['sqlServer', 'pg', 'oracle', 'dm', 'redshift', 'kingbase']