Insert overwrite LOCAL directory 'file:///xx/xx/xxx' ROW format delimited fields terminated BY "\t"
上面是hive中将查询语句的结果插入到文件夹的方法。
presto的方法如下:
presto --server ip:port --catalog hive --schema default --execute "
这里放执行的语句
" --output-format CSV > /xx/xx/xxx/file_name