如何在 Pentaho 中的转换属性页的参数表中键入选项卡
我正在尝试在 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为仍然不可能使用制表符作为变量中的默认值。旧 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.