1

If I apply specific text formatting of header, body, and trailer to input data within Foundry via SQL, is there a way to export the output dataset as an ANSI text file?

4

1 回答 1

1

您可以将TEXT输出格式与将数据连接到单个列并合并到单个分区结合使用。此输出格式不支持数字类型,因此请确保将数字列转换为string

CREATE TABLE `/path/to/your_output` USING TEXT AS 
    SELECT /*+ COALESCE(1) */ col1 || ' ' || cast (col2 as string) as result FROM `/path/to/your_input`

生成的文件应该可以在数据集详细信息页面中下载:

文件下载示例

于 2020-10-23T20:01:35.843 回答