byzer-lang icon indicating copy to clipboard operation
byzer-lang copied to clipboard

Save Function - Export Data into a Excel File with Multiple Sheets

Open Lori-Lu opened this issue 2 years ago • 0 comments

Code: -- save insights into a new sheet in the original Excel file -- use append mode here to keep the original data select count(*) as order_num from order as output;

save append output as excel../sample_data/sales/sales.xlsx where header="true" and sheetName = "Insights";

Issue 1: 试了几次不同的方式save append/overwrite。基本上操作过一次之后 就开始报类似的错误 原始文件不在了 image

issue 2: 本来我是想save 数据到原始文件 只是加新的sheet 发现不太行 - 比如 我原来文件有2个sheet 我append 之后 原始文件还是2个 第二sheet 被overwrite了 其实 新的sheet的name 并没有被改写 还是default name - sheet 2

Lori-Lu avatar Apr 14 '22 07:04 Lori-Lu