如何在 Pentaho 中的转换属性页的参数表中键入选项卡

发布于 2025-01-12 19:38:07 字数 378 浏览 2 评论 0原文

我正在尝试在 Pentaho 中创建一个转换,它应该检查文件字段分隔符(这是分隔文件中不同字段的字符 - 例如,在 csv 文件中,分隔符是 ,)是否是制表符。

我创建了一个名为 FieldDelimiter 的参数(在 Pentaho 转换的属性部分)。现在,我想将此参数的“默认值”指定为选项卡。但是,当我按下 Tab 键时,它实际上并没有在“默认值”列中插入选项卡(事实上,“默认值”列中没有插入任何内容)。有什么办法可以在此列中插入选项卡吗?

输入图片此处描述

I am trying to create a transformation in Pentaho which should check if a file field delimiter (this is a character which separates the different fields in a file--in a csv file, for example, the delimiter is a ,) is a tab.

I have created a parameter called FieldDelimiter (in the properties section of my Pentaho transformation). Now, I want to specify the "Default Value" for this parameter to be a tab. However, when I hit the tab key, it doesn't actually insert a tab in the "Default Value" column (in fact, nothing gets inserted in the "Default Value" column). Is there any way I can insert a tab in this column?

enter image description here

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

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

发布评论

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

评论(1

-小熊_ 2025-01-19 19:38:07

我认为仍然不可能使用制表符作为变量中的默认值。旧 Pentaho 论坛中的这个帖子建议使用修改的 Javascript Value 步骤来计算分隔符并将其作为参数传递给读取文件的转换: pentaho.com/threads/231143-Handling-tab-separated-values-and-comma-separated-values-in-text-file-input/" rel="nofollow noreferrer">https://forums.pentaho.com/threads/231143-Handling-tab-seperated-values-and-comma-separated-values-in-text-file-input/

你没有通过将制表符作为默认值,但计算分隔符,然后让 Pentaho 在内部将制表符作为变量值处理,无论它使用什么。

I don't think it is possible still to use a tab as a default value in a variable. This thread in the old Pentaho forum propose to use a Modified Javascript Value step to calculate the separator and pass it as a parameter to the transformation reading the file: https://forums.pentaho.com/threads/231143-Handling-tab-seperated-values-and-comma-separated-values-in-text-file-input/

You don't pass the tab as a default value, but calculate the separator and then let Pentaho internally to handle the tab as variable value with whatever it uses.

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