xyr801 opened a new issue, #59628:
URL: https://github.com/apache/doris/issues/59628

   # Power BI 通过 ODBC 连接 Doris 
时,“单条数据下钻”报错:enable_server_side_prepared_statement 和 BLOB 类型不支持
   
   ## 问题描述
   
   在使用 Power BI Desktop 通过 **Apache Doris 官方 ODBC 驱动** 连接 Doris 表时,进行可视化分析中的 
**“单条数据下钻”操作**(点击某一行数据的下钻按钮)会触发以下两个错误:
   
   1. `Failed to prepare statement: try to set 
enable_server_side_prepared_statement = true`
   2. `OLE DB 或 ODBC 错误: 权限拒绝 [MySQL][ODBC 5.3(w) Driver][mysqld-5.7.99] 
AnalysisException, msg: Unsupported MySQL type: BLOB.`
   
   > ⚠️ 注意:
   > - 表中字段实际为 `VARCHAR` 类型,并非 `BLOB`;
   > - 数据量很小(仅几百条);
   > - **点击“整体”下钻正常,只有“单条数据”下钻失败**。
   > - 连接方式:DirectQuery
   
   ## 复现步骤
   1. 获取数据源--某个语义模型
   2. 创建任意可视化图表(矩阵类型)
   3. 点击某一行数据右侧的 **“下钻”图标(单条数据)**,弹出错误:
   Failed to prepare statement: try to set 
enable_server_side_prepared_statement = true
   
   <img width="370" height="315" alt="Image" 
src="https://github.com/user-attachments/assets/6a6b54b8-526e-456b-ac3b-d96a905da718";
 />
   
   4.点击 **“整体”下钻**(非单条)则完全正常,无任何报错
   
   <img width="144" height="42" alt="Image" 
src="https://github.com/user-attachments/assets/9aca9dcd-7a0c-43ad-afa5-8cfbbf33fb6a";
 />
   
   
   5. 尝试将doris的 `enable_server_side_prepared_statement设置为true` 后重试
   6. 此时报新错误:OLE DB 或 ODBC 错误: 权限拒绝 [MySQL][ODBC 5.3(w) Driver][mysqld-5.7.99] 
AnalysisException, msg: Unsupported MySQL type: BLOB.
   
   ## 补充说明
   
   - 该问题严重影响 Power BI 用户的交互分析体验;
   - 怀疑是 Power BI 在单条下钻时使用了参数化查询(prepared statement),而 Doris ODBC 驱动对此处理不完善;
   - 已确认表结构中无任何 `BLOB`/`TEXT` 类型字段。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to