Pentaho BI 服务器 - mysql 类型 blob 显示为一组数字
我正在运行 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
所以我想对我来说这一切的简单答案是将“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.
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.