Pentaho BI 服务器 - mysql 类型 blob 显示为一组数字

发布于 2024-12-26 14:28:01 字数 151 浏览 3 评论 0原文

我正在运行 Pentaho BI Server 并添加了 mysql 数据源。 我已经成功地获得了一些使用简单表的报告,但我在处理数据类型为 blob 的列时遇到了问题。

当报告中使用“blob”数据类型的列时,它仅显示为数字而不是文本。

有什么想法吗?

I'm running Pentaho BI Server and added a mysql data source.
I've managed to get a few reports working with simple tables but I'm having a problem with columns with data type - blob.

When a column of a "blob" data type is used in the report it just shows up as number and not text.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不弃不离 2025-01-02 14:28:01

所以我想对我来说这一切的简单答案是将“blob”数据类型更改为“text”。因为我没有使用“blob”来存储任何二进制文件。

So I guess that the simple answer to all this in my cause was to change the "blob" datatype to "text". Since I was not using the "blob" to store any binary.

月朦胧 2025-01-02 14:28:01

Blob 是二进制大型对象。因此,就文本打印而言,它是二进制垃圾。在 PRD 中,blob 以字节数组的形式返回,并且在打印时(使用最新版本的 PRD)数组将被拆分为其组件(此处为字节)并打印为逗号分隔的列表。

如果您想传输二进制对象,BLOB 有其用处。如果您将图像存储在数据库中,并且图像字段将很乐意读取该图像并正确显示它,则可以使用它们。

如果数据库中存储了大量文本,那么 CLOB 更适合您。

A blob is a Binary Large OBject. So it is binary garbage as far as text printing is concerned. In PRD, blobs are returned as byte-array, and when printed (with the latest version of PRD) arrays are split into their components (bytes here) and printed as comma-separated list.

BLOBs have their uses if you want to transfer binary objects around. They can be used if you store images in your database and the image-field will happily read that image and display it properly.

If you have huge amounts of text stored in your database, a CLOB is more what you need.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文