[persistence] support stream data sources
fix plugin compilation