简体   繁体   English

JAQL追加常量字符串

[英]JAQL append constant string

On JAQL Shell, I have a variable that writes into my HDFS location. 在JAQL Shell上,我有一个变量写入我的HDFS位置。 The variable use write function and writes to HDFS location. 变量使用写功能并写到HDFS位置。

I want to append two more additional constant strings. 我想附加两个额外的常量字符串。 How do I do that? 我怎么做?

If I understood correctly, you want to write varWrite variable in a delimited file with the schema you specified but the current variable doesnt contain additional constants 如果我理解正确,则希望使用指定的模式在带分隔符的文件中写入varWrite变量,但当前变量不包含其他常量

then 然后

before calling to write function do another transformation of varWrite and include all with two additional constant which you want to add varWrite -> transform { *, CONSTANT1, CONSTANT2 } -> write(del()) and modify your schema accordingly 在调用write函数之前,请对varWrite进行另一次转换,并包括所有两个要添加的附加常量varWrite-> transform {*,CONSTANT1,CONSTANT2}-> write(del())并相应地修改架构

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM