lookup data source partitions, not if-else-if logic