Skip to content

Commit 5df4654

Browse files
greatyaoulleo
authored andcommitted
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)
1 parent 1cf4f24 commit 5df4654

7 files changed

Lines changed: 9 additions & 5 deletions

File tree

5.9 KB
Loading
-8.48 KB
Loading

frontend/src/i18n/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@
395395
"timeout": "Connection Timeout(second)",
396396
"address": "Address",
397397
"low_version": "Compatible with lower versions",
398-
"ssl": "Enable SSL"
398+
"ssl": "Enable SSL",
399+
"file_path": "File Path"
399400
},
400401
"sync_fields": "Sync Fields",
401402
"sync_fields_success": "Sync fields successfully",

frontend/src/i18n/ko-KR.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@
395395
"timeout": "연결 시간 초과(초)",
396396
"address": "주소",
397397
"low_version": "낮은 버전 호환",
398-
"ssl": "SSL 활성화"
398+
"ssl": "SSL 활성화",
399+
"file_path": "파일 경로"
399400
},
400401
"sync_fields": "동기화된 테이블 구조",
401402
"sync_fields_success": "테이블 구조 동기화 성공",

frontend/src/i18n/zh-CN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@
395395
"timeout": "连接超时(秒)",
396396
"address": "地址",
397397
"low_version": "兼容低版本",
398-
"ssl": "启用 SSL"
398+
"ssl": "启用 SSL",
399+
"file_path": "文件路径"
399400
},
400401
"sync_fields": "同步表结构",
401402
"sync_fields_success": "同步表结构成功",

frontend/src/i18n/zh-TW.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@
395395
"timeout": "連線逾時(秒)",
396396
"address": "位址",
397397
"low_version": "相容低版本",
398-
"ssl": "啟用 SSL"
398+
"ssl": "啟用 SSL",
399+
"file_path": "文件路徑"
399400
},
400401
"sync_fields": "同步表結構",
401402
"sync_fields_success": "同步表結構成功",

frontend/src/views/ds/js/ds-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ export const dsTypeWithImg = [
4949
{ name: 'Apache Hive', type: 'hive', img: hive_icon },
5050
]
5151

52-
export const haveSchema = ['sqlServer', 'pg', 'oracle', 'dm', 'redshift', 'kingbase', 'hive']
52+
export const haveSchema = ['sqlServer', 'pg', 'oracle', 'dm', 'redshift', 'kingbase']

0 commit comments

Comments
 (0)