我有一个 avro 文件,我想根据某些条件过滤掉记录。阅读时如何从文件中删除记录?
from fastavro import reader
with open("D:///temp/load_data.avro", 'rb') as fo:
avro_reader = reader(fo)
for record in avro_reader:
if(record['NAME'] == ''):
//remove