mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-11 02:36:54 +08:00
feat/fix(charts): Normalize qualified SQL column names for display
- Add DataFormat.normalize_qualified_sql_column_keys* so driver keys like "_u2.table_name" also expose "table_name", matching chart columns[].value. - Apply after SQL execution (LLM save path), format_json_list_data (API/history), and get_chart_data_ds (live refresh). Hive prompts: Document explicit table aliases for duplicate column names in JOINs. Frontend: Add datasource form i18n key "file_path" (en/zh-CN/zh-TW/ko-KR). Update Hive/SQLite datasource icons. Remove hive from haveSchema list.
This commit is contained in:
@@ -5,6 +5,7 @@ template:
|
||||
<note>
|
||||
1. 点号(.)不能包含在引号内,必须写成 `database`.`table`
|
||||
2. 即使标识符不含特殊字符或非关键字,也需强制加反引号
|
||||
3. 在多表关联(JOIN)/ 多子查询的 SQL 中,只要多个表 / 子查询存在 同名字段,所有引用该字段的位置,必须显式指定 表别名
|
||||
</note>
|
||||
</rule>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user