use schema service directly in dataset statistics