DolphinDBPlugin icon indicating copy to clipboard operation
DolphinDBPlugin copied to clipboard

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

Open reshinek opened this issue 2 years ago • 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.

reshinek avatar Nov 08 '23 08:11 reshinek

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

peeyee avatar Nov 13 '23 09:11 peeyee