resample with unified schema