dolphindb/DolphinDBPlugin

Server will breakdown if call feather::save function by peach

Opened this issue · 1 comments

data to be saved:
A dict which key is a date, value is a table.

code:
saveOneDay = def(data_dict, save_path, d){
file_path = save_path + '/' + format(d,'yyyy-MM-dd.pt')
&tb = data_dict[d]
feather::save(tb,file_path)
// parquet::saveParquet(tb,file_path)
return file_path
}
dates = data_dict.keys()
peach(saveOneDay{data_dict, save_path}, dates)

gdb log:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f6756510771 in arrow::internal::ChunkResolver::ChunkResolver(std::vector<std::shared_ptrarrow::Array, std::allocator<std::shared_ptrarrow::Array > > const&) () from /opt/dolphindb/server/plugins/feather/libPluginFeather.so

if we use parquet::saveParquet to replace feather::save, the code works will.

thanks for your report, we will fix it in later release.